|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
<ion-content class="custom-content" padding>
|
|
|
- <form (ngSubmit)="publishPost()" #postForm="ngForm">
|
|
|
+ <form (ngSubmit)="publishPost()">
|
|
|
|
|
|
<div class="input-container">
|
|
|
<ion-item lines="none">
|
|
@@ -31,13 +31,13 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="input-container">
|
|
|
- <input type="text" id="input-title" [(ngModel)]="postTitle" name="title" required>
|
|
|
+ <input type="text" id="input-title" [(ngModel)]="postTitle" name="postTitle" required>
|
|
|
<label for="input-title" class="label">标题</label>
|
|
|
<div class="underline"></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="input-container">
|
|
|
- <textarea id="input-content" [(ngModel)]="postContent" name="content" required></textarea>
|
|
|
+ <textarea id="input-content" [(ngModel)]="postContent" name="postContent" required></textarea>
|
|
|
<label for="input-content" class="label">正文</label>
|
|
|
<div class="underline"></div>
|
|
|
</div>
|
|
@@ -55,7 +55,7 @@
|
|
|
<ion-item class="custom-select">
|
|
|
<ion-icon name="lock-open"></ion-icon>
|
|
|
<ion-label>可见性</ion-label>
|
|
|
- <ion-select [(ngModel)]="visibility" name="publicVisibility" slot="end">
|
|
|
+ <ion-select [(ngModel)]="visibility" name="visibility" slot="end">
|
|
|
<ion-select-option value="none">全部可见</ion-select-option>
|
|
|
<ion-select-option value="onlyTo">仅给谁看</ion-select-option>
|
|
|
<ion-select-option value="mutualFriends">仅互关好友可见</ion-select-option>
|
|
@@ -67,7 +67,7 @@
|
|
|
<!-- 高级选项 -->
|
|
|
<ion-item class="custom-gaoji" lines="none">
|
|
|
<ion-label>高级选项</ion-label>
|
|
|
- <ion-toggle [(ngModel)]="saveToAlbum" slot="end">保存到相册</ion-toggle><br /><br />
|
|
|
+ <ion-toggle [(ngModel)]="saveToAlbum" name="saveToAlbum" slot="end">保存到相册</ion-toggle><br /><br />
|
|
|
</ion-item>
|
|
|
|
|
|
</form>
|
|
@@ -75,7 +75,7 @@
|
|
|
|
|
|
|
|
|
<ion-footer>
|
|
|
- <ion-button type="submit" form="postForm" expand="block" class="custom-button" (click)="publishPost()">
|
|
|
+ <ion-button type="submit" expand="block" class="custom-button" (click)="publishPost()">
|
|
|
发布笔记
|
|
|
</ion-button>
|
|
|
</ion-footer>
|