diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-11 15:43:55 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-11 15:43:55 +0200 |
commit | 19444b3b1c3d80b860d9d749942b7d2558950bcb (patch) | |
tree | 0942f5e005b7f607ee64d73978a6cf7912945adc /servo/templates/devices/search_gsx.html | |
parent | f51bc293756243e6880a1419a82fb51ea1733a30 (diff) | |
download | Servo-19444b3b1c3d80b860d9d749942b7d2558950bcb.tar.gz Servo-19444b3b1c3d80b860d9d749942b7d2558950bcb.tar.bz2 Servo-19444b3b1c3d80b860d9d749942b7d2558950bcb.zip |
Refactored searches into separate module
Diffstat (limited to 'servo/templates/devices/search_gsx.html')
-rwxr-xr-x | servo/templates/devices/search_gsx.html | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/servo/templates/devices/search_gsx.html b/servo/templates/devices/search_gsx.html index 4f06b81..007befe 100755 --- a/servo/templates/devices/search_gsx.html +++ b/servo/templates/devices/search_gsx.html @@ -3,39 +3,38 @@ {% block second_column %} {% block tabs %} - <ul class="nav nav-tabs" id="gsx-tabs"> - {% if param == 'serialNumber' or param == 'alternateDeviceId' %} - <li><a href="{% url 'devices-search_gsx' 'warranty' param query %}">{% trans "Device" %}</a></li> - {% else %} - <li class="disabled"><a href="#">{% trans "Device" %}</a></li> - {% endif %} - {% if param == 'serialNumber' or param == 'alternateDeviceId' %} - <li><a href="{% url 'devices-search_gsx' 'orders' param query %}">{% trans "Orders" %}</a></li> - {% else %} - <li class="disabled"><a href="#">{% trans "Orders" %}</a></li> - {% endif %} - {% if param == 'serialNumber' or param == 'partNumber' %} - <li><a href="{% url 'devices-search_gsx' 'parts' param query %}">{% trans "Parts" %}</a></li> - {% else %} - <li class="disabled"><a href="#">{% trans "Parts" %}</a></li> - {% endif %} - {% if param == 'serialNumber' or param == 'dispatchId' %} - <li><a href="{% url 'devices-search_gsx' 'repairs' param query %}">{% trans "Repairs" %}</a></li> - {% else %} - <li class="disabled"><a href="#">{% trans "Repairs" %}</a></li> - {% endif %} - </ul> +<ul class="nav nav-tabs" id="gsx-tabs"> +{% if param == 'serialNumber' or param == 'alternateDeviceId' %} + <li><a href="{% url 'search-search_gsx' 'warranty' param query %}">{% trans "Device" %}</a></li> +{% else %} + <li class="disabled"><a href="#">{% trans "Device" %}</a></li> +{% endif %} +{% if param == 'serialNumber' or param == 'alternateDeviceId' %} + <li><a href="{% url 'search-search_gsx' 'orders' param query %}">{% trans "Orders" %}</a></li> + {% else %} + <li class="disabled"><a href="#">{% trans "Orders" %}</a></li> + {% endif %} + {% if param == 'serialNumber' or param == 'partNumber' %} + <li><a href="{% url 'search-search_gsx' 'parts' param query %}">{% trans "Parts" %}</a></li> + {% else %} + <li class="disabled"><a href="#">{% trans "Parts" %}</a></li> + {% endif %} + {% if param == 'serialNumber' or param == 'dispatchId' %} + <li><a href="{% url 'search-search_gsx' 'repairs' param query %}">{% trans "Repairs" %}</a></li> + {% else %} + <li class="disabled"><a href="#">{% trans "Repairs" %}</a></li> + {% endif %} +</ul> {% endblock tabs %} {% block results %} - {% include "devices/search_gsx_results.html" %} + {% include "devices/search_gsx_results.html" %} {% endblock results %} - {% endblock second_column %} {% block media %} <script type="text/javascript"> - var loc = location.pathname + location.search; - $('#gsx-tabs>li>a[href="'+loc+'"]').parent().addClass('active'); + var loc = location.pathname + location.search; + $('#gsx-tabs>li>a[href="'+loc+'"]').parent().addClass('active'); </script> {% endblock media %} |