aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-15 16:26:50 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-15 16:26:50 +0300
commit06fc5a6b43744799060ce8fdaa78a2ecb034802c (patch)
tree1789000e325834245964fbaa452f634694203887 /servo/templates
parentf38838154defe15e0b2d043c19f6985484993423 (diff)
downloadServo-06fc5a6b43744799060ce8fdaa78a2ecb034802c.tar.gz
Servo-06fc5a6b43744799060ce8fdaa78a2ecb034802c.tar.bz2
Servo-06fc5a6b43744799060ce8fdaa78a2ecb034802c.zip
Added symptom/issue fields
Diffstat (limited to 'servo/templates')
-rwxr-xr-xservo/templates/orders/gsx_repair_form.html20
-rw-r--r--servo/templates/repairs/issue_code_menu.html3
2 files changed, 22 insertions, 1 deletions
diff --git a/servo/templates/orders/gsx_repair_form.html b/servo/templates/orders/gsx_repair_form.html
index 512ce5a..2751b5e 100755
--- a/servo/templates/orders/gsx_repair_form.html
+++ b/servo/templates/orders/gsx_repair_form.html
@@ -47,6 +47,14 @@
<div class="tab-pane active" id="tab1">
{% include "form_field_snippet.html" with field=repair_form.symptom %}
{% include "form_field_snippet.html" with field=repair_form.diagnosis %}
+ <div class="row-fluid">
+ <div class="span6">
+ {% include "form_field_snippet.html" with field=repair_form.symptom_code %}
+ </div>
+ <div class="span6">
+ {% include "form_field_snippet.html" with field=repair_form.issue_code %}
+ </div>
+ </div>
{% include "form_field_snippet.html" with field=repair_form.tech_id %}
</div>
<div class="tab-pane" id="tab2">
@@ -90,5 +98,15 @@
{% endblock crumbs %}
{% block media %}
-{{ repair_form.media }}
+ {{ repair_form.media }}
+ <script type="text/javascript">
+ $('#id_symptom_code').change(function(e){
+ var c = $(e.target).val();
+ $('.wrapper').spin();
+ $.get('?c='+c).success(function(r) {
+ $('#id_issue_code').html(r);
+ $('.wrapper').spin(false);
+ });
+ });
+ </script>
{% endblock media %}
diff --git a/servo/templates/repairs/issue_code_menu.html b/servo/templates/repairs/issue_code_menu.html
new file mode 100644
index 0000000..8697803
--- /dev/null
+++ b/servo/templates/repairs/issue_code_menu.html
@@ -0,0 +1,3 @@
+{% for k, v in choices %}
+ <option value="{{ k|safe }}">{{ v }}</option>
+{% endfor %}