aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xservo/templates/orders/devices.html21
1 files changed, 14 insertions, 7 deletions
diff --git a/servo/templates/orders/devices.html b/servo/templates/orders/devices.html
index fb98862..9098cfe 100755
--- a/servo/templates/orders/devices.html
+++ b/servo/templates/orders/devices.html
@@ -72,6 +72,20 @@
{% endif %}
<a href="{% url 'orders-history' order.pk device.pk %}" class="btn btn-small" data-modal="#modal"><i class="icon-time"></i> {% trans "History" %}</a>
<div class="btn-group">
+ <a class="btn btn-small dropdown-toggle" data-toggle="dropdown">
+ <i class="icon-cog"></i> {% trans "Diagnostics" %} <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ {% if device.is_ios %}
+ <li><a href="{% url 'devices-diagnostics' device.pk %}?a=init&amp;order={{ order.pk|safe }}" data-modal="#modal">{% trans "Initiate Diagnostics" %}</a></li>
+ {% else %}
+ <li class="disabled"><a href="#" data-modal="#modal">{% trans "Initiate Diagnostics" %}</a></li>
+ {% endif %}
+ <li><a href="{% url 'devices-diagnostics' device.pk %}" data-modal="#modal">{% trans "Fetch Diagnostics" %}</a></li>
+ <li><a href="{% url 'devices-diagnostics' device.pk %}" data-modal="#modal">{% trans "Open Diagnostics Console" %}</a></li>
+ </ul>
+ </div>
+ <div class="btn-group">
<a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-cog"></i> <span class="caret"></span>
</a>
@@ -101,13 +115,6 @@
<li class="divider"></li>
<li><a href="{% url 'devices-update_gsx_details' device.pk %}" class="spin">{% trans "Update Warranty Status" %}</a></li>
<li class="divider"></li>
- {% if device.is_ios %}
- <li><a href="{% url 'devices-diagnostics' device.pk %}?a=init&amp;order={{ order.pk|safe }}" data-modal="#modal">{% trans "Initiate Diagnostics" %}</a></li>
- {% else %}
- <li class="disabled"><a href="#" data-modal="#modal">{% trans "Initiate Diagnostics" %}</a></li>
- {% endif %}
- <li><a href="{% url 'devices-diagnostics' device.pk %}" data-modal="#modal">{% trans "Fetch Diagnostics" %}</a></li>
- <li class="divider"></li>
<li><a href="{{ device.get_absolute_url }}">{% trans "Show Device" %}</a></li>
{% if device.sn == '' %}
<li class="disabled"><a href="#" target="_blank">{% trans "Show Barcode" %}</a></li>