Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
uzulla committed Jan 16, 2014
1 parent 1eb7146 commit 11ed418
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions templates/_Parts/Form.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% autoescape true %}
<div class="postform">
<h3>投稿フォーム</h3>
<form method="post" action="/post/commit">
<input type="hidden" name="{{csrf_key}}" value="{{csrf_token}}">
<div class="form-group {% if error_list.nickname %}has-error{% endif %}">
<label>ニックネーム<em>(半角英数16文字まで)</em></label><br>
<input type="text" name="nickname" value="{{ params.nickname }}"
placeholder="ニックネームを入力してください" class="form-control">
<p class="text-warning">{{error_list.nickname}}</p>
</div>

<div class="form-group {% if error_list.body %}has-error{% endif %}">
<label>テキスト<em>(1000文字まで)</em></label>
<textarea name="body" placeholder="本文を入力してください"
class="form-control" >{{params.body}}</textarea>
<p class="text-warning">{{error_list.body}}</p>
</div>

<input type="submit" class="btn btn-primary btn-block" value="投稿する">
</form>
</div>
{% endautoescape %}

0 comments on commit 11ed418

Please sign in to comment.