forked from zestedesavoir/zds-site
-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
90 additions
and
1 deletion.
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,32 @@ | ||
{% load i18n %} | ||
|
||
{% if user.is_authenticated %} | ||
{% if user not in authors.all %} | ||
<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" %}" method="post" > | ||
<p> | ||
{% trans "J'ai trouvé une faute dans l'article" %} | ||
: | ||
</p> | ||
{% csrf_token %} | ||
<input type="hidden" name="article_pk" value="{{ article.pk }}"> | ||
<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