{% extends "social/comment_thread_layout.html" %} {% if not session["user_logged"] or not session["user_can_edit"][current_repository] %} {% set readonly="readonly" %} {% else %} {% set readonly=False %} {% endif %} {% block title %}{{super()}}{% endblock title %} {% block head %} {{super()}} {% endblock head%} {% block navbar_items %} {{super()}}
  • >
  • Social
  • >
  • Discussion
  • {% endblock navbar_items %} {% block comment_posting_target %}{{url_for("social.discussion", discussion_id=discussion_id, repository=current_repository)}}{% endblock %} {% block comment_thread_options %} {% for count in [10, 30, 50, 100] %} {% endfor %} {% endblock comment_thread_options %} {% block back_link %}{{ url_for('social.discussions_index', repository=current_repository)}}{% endblock back_link %} {% block page_content %} {% if discussion_id == "new" %}

    CatEdit - {{current_repository}}

    Nouvelle discussion

    {% if comment_form.comment_field.errors or comment_form.discussion_title.errors %}
    Erreur: Vous devez renseigner un titre pour votre discussion.
    {% endif %}
    {{ comment_form.hidden_tag() }}

    {{ comment_form.discussion_title.label }} {{ comment_form.discussion_title(class="form-control", readonly=readonly) }}
    {{ comment_form.comment_field.label }} {{ comment_form.comment_field(class="form-control", readonly=readonly) }}
    Retour
    {% else %} {{super()}} {% endif %} {% endblock page_content %}