]> git.parisson.com Git - telemeta.git/commitdiff
fixed delete item button
authorriccardo <riccardo@parisson.com>
Wed, 22 Jun 2011 16:29:26 +0000 (18:29 +0200)
committerriccardo <riccardo@parisson.com>
Wed, 22 Jun 2011 16:29:26 +0000 (18:29 +0200)
telemeta/htdocs/js/locale.js
telemeta/templates/telemeta_default/base.html
telemeta/templates/telemeta_default/mediaitem_detail.html

index 55853c38bc54e1da6da694d518b214d6bf3a8f5a..6df8ea5c2b289c0a4034b21c0aeb5bccb3049b9a 100644 (file)
@@ -9,6 +9,7 @@ var localeStrings = {
     'If you exit the page you will loose your changes' : gettext('If you exit the page you will loose your changes'),
     'author' : gettext('author'),
     'Paste HTML to embed player in website': gettext('Paste HTML to embed player in website'),
+    'delete the item permanently?' : gettext('delete the item permanently?')
 };
 
 function gettrans(str){
index c68227337838c16eb57f6bc8f6974c1c8a9c1b55..8edfd331371b923d3be8d0a4042bf83e9980a395 100644 (file)
     </tr></table>
 {% block content %}{% endblock %}
 <div class="nett"></div>
+{% block deleteitem %}{% endblock %}
 </div>
 
 {% block footer %}
index 331136edbdf611ec286d02a89e5d301caa97f424..865eeb89f7ecb7c8e0bf0f4eb5355ca269354761 100644 (file)
     {% endblock infos %}
 </div> <!-- with-rightcol -->
 {% if user.is_authenticated and perms.telemeta.delete_mediaitem %}
-<div style="float: right;">
- <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">{% trans "Delete" %}</a>
-</div>
 {% endif %}
 {% endblock %}
+{% block deleteitem %}
+ <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>
+{% endblock %}
 {% else %}
 <p>No such item</p>
 {% endif %}