diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/edit.html | 20 |
2 files changed, 13 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html index c79aa4d..55109a5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -72,7 +72,7 @@ <div class="ui-widget ui-state-default ui-corner-all navlist toolbar"> <ul> {% if render.edit %} - <li><a class="tip" title="Modify access rights" href="/name/{{name.id}}/editacl"><span class="ui-icon ui-icon-unlocked"></span></a></li> + <li><a class="tip" title="Modify access rights" href="/name/{{name.id}}/link/0"><span class="ui-icon ui-icon-unlocked"></span></a></li> {% endif %} {% if render.edit %} <li><a class="tip" title="Modify" href="/name/{{name.id}}/edit"><span class="ui-icon ui-icon-wrench"></span></a></li> diff --git a/templates/edit.html b/templates/edit.html index 7ada9a1..404751a 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -4,19 +4,23 @@ $('#id_description').wysiwyg(); {% endblock %} {% block content %} + {% block beforeform %} + {% endblock %} <form method="POST"> <div class="ui-widget-content ui-corner-all infopanel"> <h1>{{formtitle}}</h1> - <table> + <table class="formtable"> {% for field in form %} <tr> - {% if field.errors %} - <td colspan="2">{{ field.errors }}</td> - {% endif %} - </tr> - <tr> - <td>{{ field.label_tag }}</td> - <td><div class="ui-widget">{{ field }}</div></td> + <td> + {% if not field.is_hidden %} + <div class="ui-widget fieldlabel">{{ field.label_tag }}</div> + {% endif %} + {% if field.errors %} + <div class="ui-widget ui-state-error">{{ field.errors }}</div> + {% endif %} + <div class="ui-widget">{{ field }}</div> + </td> </tr> {% endfor %} </table> |