aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/admin/locations
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/admin/locations
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/admin/locations')
-rw-r--r--servo/templates/admin/locations/form.html40
-rw-r--r--servo/templates/admin/locations/index.html6
2 files changed, 46 insertions, 0 deletions
diff --git a/servo/templates/admin/locations/form.html b/servo/templates/admin/locations/form.html
new file mode 100644
index 0000000..777c9ab
--- /dev/null
+++ b/servo/templates/admin/locations/form.html
@@ -0,0 +1,40 @@
+{% extends "admin/locations/index.html" %}
+{% load i18n %}
+
+{% block third_column %}
+<ul class="nav nav-tabs">
+ <li class="active"><a href="#tab1" data-toggle="tab">{% trans "General" %}</a></li>
+ <li><a href="#tab3" data-toggle="tab">{% trans "GSX" %}</a></li>
+</ul>
+
+<form method="post" action="" accept-charset="utf-8" enctype="multipart/form-data" class="form-horizontal">
+ {% csrf_token %}
+ <div class="tab-content">
+ <div class="tab-pane active" id="tab1">
+ {% include "form_field_snippet.html" with field=form.title %}
+ {% include "form_field_snippet.html" with field=form.email %}
+ {% include "form_field_snippet.html" with field=form.phone %}
+ {% include "form_field_snippet.html" with field=form.address %}
+ {% include "form_field_snippet.html" with field=form.zip_code %}
+ {% include "form_field_snippet.html" with field=form.city %}
+ {% include "form_field_snippet.html" with field=form.timezone %}
+ {% include "form_field_snippet.html" with field=form.notes %}
+ {% include "form_field_snippet.html" with field=form.logo %}
+ {% include "form_field_snippet.html" with field=form.enabled %}
+ </div>
+ <div class="tab-pane" id="tab3">
+ {% include "form_field_snippet.html" with field=form.gsx_shipto %}
+ {% include "form_field_snippet.html" with field=form.gsx_accounts %}
+ {% include "form_field_snippet.html" with field=form.gsx_tz %}
+ </div>
+ </div>
+ <div class="form-actions">
+ {% if location.pk %}
+ <a class="btn btn-danger" data-modal="#modal" href="{% url 'admin-delete_location' location.pk %}">{% trans "Delete" %}</a>
+ {% else %}
+ <a class="btn btn-danger disabled">{% trans "Delete" %}</a>
+ {% endif %}
+ <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
+ </div>
+</form>
+{% endblock third_column %}
diff --git a/servo/templates/admin/locations/index.html b/servo/templates/admin/locations/index.html
new file mode 100644
index 0000000..92fe940
--- /dev/null
+++ b/servo/templates/admin/locations/index.html
@@ -0,0 +1,6 @@
+{% extends "generic/admin_list.html" %}
+{% load i18n %}
+
+{% block toolbar %}
+ <a href="{% url 'admin-create_location' %}" class="btn btn-default navbar-btn"><i class="icon-plus"></i> {% trans "New Location" %}</a>
+{% endblock toolbar %}