diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
commit | 63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch) | |
tree | 555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/admin/sites | |
download | Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2 Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip |
Initial commit
First public commit
Diffstat (limited to 'servo/templates/admin/sites')
-rw-r--r-- | servo/templates/admin/sites/edit_site.html | 9 | ||||
-rw-r--r-- | servo/templates/admin/sites/index.html | 23 |
2 files changed, 32 insertions, 0 deletions
diff --git a/servo/templates/admin/sites/edit_site.html b/servo/templates/admin/sites/edit_site.html new file mode 100644 index 0000000..5c0004a --- /dev/null +++ b/servo/templates/admin/sites/edit_site.html @@ -0,0 +1,9 @@ +{% extends "admin/sites/index.html" %} + +{% block detail_block %} + <form method="post" action="" class="form-horizontal"> + {% csrf_token %} + {% include "form_snippet.html" %} + {% include "form_buttons.html" %} + </form> +{% endblock detail_block %} diff --git a/servo/templates/admin/sites/index.html b/servo/templates/admin/sites/index.html new file mode 100644 index 0000000..4cf96f3 --- /dev/null +++ b/servo/templates/admin/sites/index.html @@ -0,0 +1,23 @@ +{% extends "admin/index.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} + <a href="{% url 'admin-create_site' %}" class="btn btn-inverse"><i class="fa fa-plus icon-white"></i> {% trans "New Site" %}</a> +{% endblock toolbar %} + +{% block second_column %} +<div class="span3"> + <ul class="nav nav-list"> + <li class="nav-header">{% trans "Sites" %}</li> + {% for i in sites %} + <li class="{% active request "sites" i.pk %}"><a href="{% url 'admin-edit_site' i.pk %}">{{ i.name }}</a></li> + {% endfor %} + </ul> +</div> +<div class="span9"> + {% block detail_block %} + <h1 class="text-muted">{% trans "No site selected" %}</h1> + {% endblock detail_block %} +</div> +{% endblock second_column %} |