form.html 837 B

12345678910111213141516171819
  1. <div class="panel panel-default">
  2. {% if g.user.is_authenticated %}
  3. <div class="panel-heading"> {{ _('Reply this topic') }} </div>
  4. <div class="panel-body">
  5. <form action="{{ url_for('topic.reply_list',topicId=topic.id)}}" method="POST">
  6. {{ form.hidden_tag() }}
  7. {{ form.content(class='form-control',rows=4)}}
  8. <button class="btn btn-sm btn-primary" type="submit" style="margin-top:10px;">{{ _('Post reply') }}</button>
  9. </form>
  10. </div>
  11. {% else %}
  12. <div class="panel-body" style="border:1px dashed #337ab7;margin:5px;">
  13. <span class="text-center" style="display:block;width:100%;color:#999">
  14. <i class="fa fa-lock" style="font-size:16px;"></i>
  15. {{_('You need')}} <a href="{{ url_for('auth.login') }}">{{ _('Login')}}</a> {{_('before you can reply.')}}
  16. </span>
  17. </div>
  18. {% endif %}
  19. </div>