aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/orders/devices.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-08 10:49:27 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-10-08 10:49:27 +0300
commit26227527adc81d82bbfe80b42c2838bfd04dd4bc (patch)
treee82d0d19513b570711b717755367bb375d155bec /servo/templates/orders/devices.html
parent7a3a9f2d3d86d23669fad14cc93a365cc2136b4b (diff)
downloadServo-26227527adc81d82bbfe80b42c2838bfd04dd4bc.tar.gz
Servo-26227527adc81d82bbfe80b42c2838bfd04dd4bc.tar.bz2
Servo-26227527adc81d82bbfe80b42c2838bfd04dd4bc.zip
Move diagnostics to own menu
Diffstat (limited to 'servo/templates/orders/devices.html')
-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>