OSDN Git Service

js: clean up article editor related codes
[newslash/newslash.git] / src / newslash_web / templates / common / comment / comment_form.html.tt2
1 <form class="form post-comment" v-if="isFormVisible">
2   <label>コメントタイトル:
3     <input id="post-title" type="text" name="title" v-model="rawTitle" placeholder="タイトル(必須)" />
4   </label>
5
6   <label>コメント本文:
7     <textarea id="post-introtext" name="introtext" class="taller" v-model="rawComment" placeholder="本文をここに記述してください(必須)" ></textarea>
8   </label>
9
10   <div>
11     <button type="submit" @click.prevent="doPreview()" :class="{disabled: !isItemFilled}">投稿確認</button>
12     <!-- <button type="reset" class="btn">リセット</button> -->
13     <button v-if="cancelable" @click.prevent="cancelEdit()">キャンセル</button>
14   </div>
15 </form>
16
17 <form id="post-submit" v-if="isPreviewVisible">
18   <div>
19     <!-- <comment :comment="reply"></comment> -->
20     <button type="submit" @click.prevent="postComment()">投稿</button>
21     <button type="button" @click.prevent="leavePreview()">戻る</button>
22   </div>
23 </form>
24
25 [%- INCLUDE common/captcha/recaptcha -%]