aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/devices/search_gsx_parts.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-11 15:43:55 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-11 15:43:55 +0200
commit19444b3b1c3d80b860d9d749942b7d2558950bcb (patch)
tree0942f5e005b7f607ee64d73978a6cf7912945adc /servo/templates/devices/search_gsx_parts.html
parentf51bc293756243e6880a1419a82fb51ea1733a30 (diff)
downloadServo-19444b3b1c3d80b860d9d749942b7d2558950bcb.tar.gz
Servo-19444b3b1c3d80b860d9d749942b7d2558950bcb.tar.bz2
Servo-19444b3b1c3d80b860d9d749942b7d2558950bcb.zip
Refactored searches into separate module
Diffstat (limited to 'servo/templates/devices/search_gsx_parts.html')
-rwxr-xr-xservo/templates/devices/search_gsx_parts.html46
1 files changed, 23 insertions, 23 deletions
diff --git a/servo/templates/devices/search_gsx_parts.html b/servo/templates/devices/search_gsx_parts.html
index 63bfdb9..48ba7a7 100755
--- a/servo/templates/devices/search_gsx_parts.html
+++ b/servo/templates/devices/search_gsx_parts.html
@@ -3,28 +3,28 @@
{% autoescape on %}
{% for p in results %}
- <tr>
- <td><a href="{% url 'products-view_product' code=p.code %}">{{ p.code }}</a></td>
- <td>{{ p.title }}<br/><span class="muted small" title="{{ p.eee_code }}">{{ p.eee_code|truncatechars:40 }}</td>
- <td>{{ p.price_sales_exchange|currency }}</td>
- <td>{{ p.price_sales_stock|currency }}</td>
- <td>0</td>
- <td>
- <div class="btn-group pull-right">
- <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="icon-cog"></i> <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li{% if not perms.servo.add_product %} class="disabled"{% endif %}>
- {% if device %}
- <a href="{% url 'products-create' group=device.get_product_category code=p.code %}">{% trans "Create Product" %}</a>
- {% else %}
- <a href="{% url 'products-create' code=p.code %}">{% trans "Create Product" %}</a>
- {% endif %}
- </li>
- </ul>
- </div>
- </td>
- </tr>
+<tr>
+ <td><a href="{% url 'products-view_product' code=p.code %}">{{ p.code }}</a></td>
+ <td>{{ p.title }}<br/><span class="muted small" title="{{ p.eee_code }}">{{ p.eee_code|truncatechars:40 }}</td>
+ <td>{{ p.price_sales_exchange|currency }}</td>
+ <td>{{ p.price_sales_stock|currency }}</td>
+ <td>0</td>
+ <td>
+ <div class="btn-group pull-right">
+ <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
+ <i class="icon-cog"></i> <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ <li{% if not perms.servo.add_product %} class="disabled"{% endif %}>
+ {% if device %}
+ <a href="{% url 'products-create' group=device.get_product_category code=p.code %}">{% trans "Create Product" %}</a>
+ {% else %}
+ <a href="{% url 'products-create' code=p.code %}">{% trans "Create Product" %}</a>
+ {% endif %}
+ </li>
+ </ul>
+ </div>
+ </td>
+</tr>
{% endfor %}
{% endautoescape %}