]> git.parisson.com Git - telemeta.git/commitdiff
fix delete button in templates
authoryomguy <yomguy@parisson.com>
Fri, 24 Jun 2011 07:22:11 +0000 (09:22 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 24 Jun 2011 07:22:11 +0000 (09:22 +0200)
telemeta/templates/telemeta_default/collection_add.html
telemeta/templates/telemeta_default/collection_detail.html
telemeta/templates/telemeta_default/collection_edit.html
telemeta/templates/telemeta_default/mediaitem_add.html
telemeta/templates/telemeta_default/mediaitem_copy.html
telemeta/templates/telemeta_default/mediaitem_detail.html
telemeta/templates/telemeta_default/mediaitem_edit.html

index 036d66bdd3027e6fe159f1d69ae085ea4aef8087..49cf82a37b43eda5618d8ddee22303e676705f75 100644 (file)
@@ -33,5 +33,5 @@
         </div>
 {% endblock infos%}
 
-{% block deleteitem %}
+{% block delete %}
 {% endblock %}
index 5d2401f003259ee4d69621dfbcda8e588123343f..a85ad3ab7a7c75668b20fae5ea11a28a0525a723 100644 (file)
     </div>
 {% endblock %}
 
-{% block deleteitem %}
+{% block delete %}
 {% if user.is_authenticated and perms.telemeta.delete_mediacollection %}
  <a href="#" onclick="if(confirm(gettrans('delete the collection permanently?'))){window.location.href='{% url telemeta-collection-delete collection.public_id %}';};return false;"
         class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>
index 42e3601f691438a85e4957e48d680dcb5b5373c8..62331a7d4078ae67185f13fa4e89a005bdbff34e 100644 (file)
@@ -31,3 +31,6 @@
       </form>
      </div>
 {% endblock infos%}
+
+{% block delete %}
+{% endblock %}
index 005aee312a172655626305f425659b539e1e3d3e..03615c75a3186cb932f0a1e4a27fe29f5a35b1f0 100644 (file)
   {% endblock infos %}
 </div> <!-- with-rightcol -->
 {% endblock %}
+
+{% block delete %}
+{% endblock %}
+
 {% else %}
 <p>No such item</p>
 {% endif %}
index cfdbe6feefc5e8a551936f86d52771abe5175601..6fb91f95e44999a086fb7897aba02fc4bc907bd3 100644 (file)
@@ -48,3 +48,7 @@
     </div>
   {% endblock infos %}  
 {% endblock %}
+
+{% block delete %}
+{% endblock %}
+
index 8ae24e34feedcdd217354cf9ecfe08b87965de99..651cfa570ba554b3a01adf552c5e3e795a33cc63 100644 (file)
 
 {% endblock %}
 
-{% block deleteitem %}
+{% block delete %}
 {% if user.is_authenticated and perms.telemeta.delete_mediaitem %}
  <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url telemeta-item-delete item.public_id %}';};return false;"  
         class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>
index 740620d043b3334c4d10fd2644a42ed7058885b4..c916ea7eddbb226afcacbd2013e54dd498692120 100644 (file)
@@ -47,3 +47,6 @@ onclick="var d=document; d.getElementById('wait-img').style.display='inline'; se
     </form>
 </div>
 {% endblock infos %}
+
+{% block delete %}
+{% endblock %}