simple-web-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

reply_form.html (970B)


      1 <div class="reply-page">
      2   <h2>Reply</h2>
      3 
      4   <div class="parent-comment">
      5     <div class="parent-header">
      6       {% match parent_author %}
      7       {% when Some with (author) %}
      8       <a href="/user/{{ author }}">{{ author }}</a> wrote:
      9       {% when None %}
     10       anonymous wrote:
     11       {% endmatch %}
     12     </div>
     13     <blockquote class="parent-text">{{ parent_text }}</blockquote>
     14   </div>
     15 
     16   {% match error %}
     17   {% when Some with (err) %}
     18   <div class="error-message">{{ err }}</div>
     19   {% when None %}
     20   {% endmatch %}
     21 
     22   <form action="/comment/{{ comment_id }}/reply" method="post" class="reply-form">
     23     <input type="hidden" name="story_id" value="{{ story_id }}" />
     24     <div class="form-group">
     25       <textarea name="text" rows="6" required placeholder="Write your reply..."></textarea>
     26     </div>
     27     <div class="form-actions">
     28       <button type="submit">Reply</button>
     29       <a href="/story/{{ story_id }}" class="cancel-link">Cancel</a>
     30     </div>
     31   </form>
     32 </div>