summaryrefslogtreecommitdiff
path: root/templates/apps/name/edit.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-08-04 14:13:48 +0200
committerLeif Johansson <leifj@sunet.se>2010-08-04 14:13:48 +0200
commit6785fc8ab29495d12cfde8caa3d07375aa2e6246 (patch)
tree3bbe2ba2b75aee5c59142e5dec300c4d400cfd1d /templates/apps/name/edit.html
parent6a03d844b20b7f145f6ef8aaf91b851c7a383863 (diff)
separated-out the invitation model again
Diffstat (limited to 'templates/apps/name/edit.html')
-rw-r--r--templates/apps/name/edit.html66
1 files changed, 1 insertions, 65 deletions
diff --git a/templates/apps/name/edit.html b/templates/apps/name/edit.html
index d18cbec..ab833ad 100644
--- a/templates/apps/name/edit.html
+++ b/templates/apps/name/edit.html
@@ -1,65 +1 @@
-{% extends "base.html" %}
-{% block js %}
-<script type="text/javascript">
-$(function() {
- $("#members").accordion({
- header: 'h3'
- });
- $('#tree').jstree({
- 'json_data': {
- 'ajax': {
- 'url': function(n) {
- if (n == -1) {
- return {% if name %}"/rtree/"+{{name.id}}+".json"{% else %}"/rtree.json"{% endif %};
- } else {
- return "/ctree/"+n.attr('id')+".json";
- }
- }
- },
- "progressive_render" : true,
- 'animation': 0,
- },
- 'plugins': ['themeroller','json_data']
- });
-});
-</script>
-{% endblock %}
-{% block headline %}{% if name %}{{name.shortname}}{% else %}(){% endif %}{% endblock %}
-{% block title %}COIP{% if name %} - {{name.shortname}}{% endif %}{% endblock %}
-{% block main %}
-<div style="float: left; width: 30%;">
- {% if name %}
- {% if name.parent %}
- <a href="/name/id/{{name.parent.id}}">.. (up one level)</a>
- {% else %}
- <a href="/name">.. (up one level)</a>
- {% endif %}
- {% endif %}
- <div style="height: 100%;" id="tree"></div>
-</div>
-<div style="float: right; width: 60%; padding-left: 20px;">
- <form method="POST">
- <div class="ui-widget-content ui-corner-all infopanel">
- <h3>{{formtitle}}</h3>
- <table>
- {% 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>
- </tr>
- {% endfor %}
- </table>
- </div>
- <br/>
- <div class="button">
- <input type="submit" value="{{submitname}}" />
- <input type="button" onClick="document.location='/name/id/{{name.id}}'" value="Cancel"/>
- </div>
- </form>
-</div>
-{% endblock %} \ No newline at end of file
+{% extends "edit.html" %} \ No newline at end of file