aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/customers/index.html
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/customers/index.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/customers/index.html')
-rwxr-xr-xservo/templates/customers/index.html84
1 files changed, 84 insertions, 0 deletions
diff --git a/servo/templates/customers/index.html b/servo/templates/customers/index.html
new file mode 100755
index 0000000..84407d9
--- /dev/null
+++ b/servo/templates/customers/index.html
@@ -0,0 +1,84 @@
+{% extends "default.html" %}
+{% load servo_tags %}
+{% load i18n %}
+
+{% block toolbar %}
+<div class="btn-group">
+ <a class="btn" href="{% url 'customers-create_customer' group=group %}"><i class="icon-plus"></i> {% trans "New Customer" %}</a>
+ <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
+ <ul class="dropdown-menu">
+ {% if customer.is_company %}
+ <li><a href="{% url 'customers-create_contact' parent_id=customer.id %}">{% trans "New Contact" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#">{% trans "New Contact" %}</a></li>
+ {% endif %}
+ <li class="divider"></li>
+ <li><a href="{% url 'customers-create_group' %}" data-modal="#modal">{% trans "New Group" %}</a></li>
+ </ul>
+</div>
+<div class="btn-group">
+ <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
+ <i class="icon-cog"></i> <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'customers-upload' group=group %}" data-modal="#modal">{% trans "Import" %}</a></li>
+ <li><a href="{% url 'customers-download' group=group %}">{% trans "Export" %}</a></li>
+ <li class="divider"></li>
+ {% if group != 'all' %}
+ <li><a href="{% url 'customers-edit_group' group %}" data-modal="#modal">{% trans "Edit Group" %}</a></li>
+ <li><a href="{% url 'customers-delete_group' group %}" data-modal="#modal">{% trans "Delete Group" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#">{% trans "Edit Group" %}</a></li>
+ <li class="disabled"><a href="#">{% trans "Delete Group" %}</a></li>
+ {% endif %}
+ </ul>
+</div>
+{% endblock toolbar %}
+
+{% block content %}
+
+<div class="row-fluid">
+ <div class="span12">
+ <ul class="nav nav-tabs" style="margin-top:30px">
+ {% block tabs %}
+ <li class="active"><a href="{% url 'customers-list_all' %}">{% trans "Browse" %}</a></li>
+ <li><a href="{% url 'customers-find' %}">{% trans "Search" %}</a></li>
+ {% endblock tabs %}
+ </ul>
+ </div>
+</div>
+
+<div class="row-fluid">
+{% block customers %}
+ <div class="span2">
+ {% block first_column %}
+ <ul class="nav nav-list">
+ <li class="nav-header">{% trans "Groups" %}</li>
+ <li {% if group == 'all' %}class="active"{% endif %}>
+ <a href="{% url 'customers-list_all' %}">{% trans "All" %}<span class="badge pull-right">{{ customer_count }}</span></a>
+ </li>
+ {% for i in groups %}
+ <li class="{% active request i.slug "/" %}">
+ <a href="{% url 'customers-list' group=i.slug %}">{{ i.name|truncatechars:16 }}<span class="badge pull-right">{{ i.customer_set.all.count }}</span></a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endblock first_column %}
+ </div>
+ <div class="span3">
+ {% block second_column %}
+ {% include "customers/list.html" %}
+ {% endblock second_column %}
+ </div>
+ <div class="span7">
+ {% block third_column %}
+ <h2 class="muted text-center">{% trans "No customer selected" %}</h2>
+ {% endblock third_column %}
+ </div>
+{% endblock customers %}
+</div>
+{% endblock content %}
+
+{% block crumbs %}
+<li class="active">{% trans "Customers" %}</li>
+{% endblock crumbs %}