Display the create wikipedia checkbox on homonyms links. Correct bug #17631.
authorymh <ymh.work@gmail.com>
Mon, 29 Jul 2013 21:04:05 +0200
changeset 79 c7de7a56164d
parent 78 51e52d321841
child 80 3851909cb730
Display the create wikipedia checkbox on homonyms links. Correct bug #17631.
src/jocondelab/templates/jocondelab/term_edit.html
--- a/src/jocondelab/templates/jocondelab/term_edit.html	Mon Jul 29 20:50:23 2013 +0200
+++ b/src/jocondelab/templates/jocondelab/term_edit.html	Mon Jul 29 21:04:05 2013 +0200
@@ -114,11 +114,13 @@
             <a href="{{term.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_right.png" >&nbsp;{{term.wp_label}}</a>
             {% else %}
             <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/wikipedia_search.png" ></a>
-            </span>
-            <span>
-            {% trans 'Créer page WK' %}&nbsp;: <input type="checkbox" id="{{term.id}}-wikipedia-edition" class="wikipedia_edition" name="wikipedia_edition" {% if term.wikipedia_edition %}checked="checked"{%endif%} {%if term.validated%}disabled="disabled"{% endif %} alt="{% trans 'Need wikipedia article'%}"/>
             {% endif %}
             </span>
+            {% if not term.wikipedia_url or term.url_status == 2 %}
+            <span>
+            {% trans 'Créer page WK' %}&nbsp;: <input type="checkbox" id="{{term.id}}-wikipedia-edition" class="wikipedia_edition" name="wikipedia_edition" {% if term.wikipedia_edition %}checked="checked"{%endif%} {%if term.validated%}disabled="disabled"{% endif %} alt="{% trans 'Need wikipedia article'%}"/>            
+            </span>
+            {% endif %}
             <span>
             {% if term.wikipedia_revision_id  %}
             <a href="{{term.wikipedia_revision_permalink}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/clock_arrow.png" ></a>