-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
235 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% load i18n %} | ||
|
||
{% if user.is_authenticated and on_line %} | ||
|
||
{% if user not in authors.all and authors_reachable|length >= 1 %} | ||
|
||
<a href="#warn-typo-modal" class="open-modal btn btn-grey ico-after edit blue"> | ||
{% trans "Signaler une faute dans l'article" %} | ||
</a> | ||
<form class="modal modal-big" id="warn-typo-modal" action="{% url "zds.article.views.warn_typo" article_pk=article.pk %}" method="post" > | ||
<p> | ||
{% trans "J'ai trouvé une faute dans l'article" %} | ||
: | ||
</p> | ||
{% csrf_token %} | ||
<p> | ||
<textarea name="explication" placeholder="{% blocktrans %}Expliquez ici la faute{% endblocktrans %}" required="required"></textarea> | ||
</p> | ||
<p> | ||
{% trans "Pas assez de place ?" %} | ||
<a href="{% url 'mp-new' %}?title={% trans "Je voudrais signaler une faute dans l'article" %} "{{ article.title }}"{% for username in authors.all %}&username={{ username }}{% endfor %}" > | ||
{% trans "Envoyez un MP" %} | ||
{% if tutorial.authors.all|length > 1 %} | ||
{% trans "aux auteurs" %} | ||
{% else %} | ||
{% trans "à l'auteur" %} | ||
{% endif %} | ||
</a> | ||
</p> | ||
<button type="submit">{% trans "Envoyer" %}</button> | ||
</form> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters