aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/repairs
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/repairs')
-rwxr-xr-xservo/templates/repairs/add_part.html22
-rwxr-xr-xservo/templates/repairs/check_parts.html10
-rwxr-xr-xservo/templates/repairs/delete_part.html12
-rwxr-xr-xservo/templates/repairs/delete_repair.html16
-rwxr-xr-xservo/templates/repairs/get_details.html27
-rwxr-xr-xservo/templates/repairs/part_menu.html33
6 files changed, 120 insertions, 0 deletions
diff --git a/servo/templates/repairs/add_part.html b/servo/templates/repairs/add_part.html
new file mode 100755
index 0000000..2236631
--- /dev/null
+++ b/servo/templates/repairs/add_part.html
@@ -0,0 +1,22 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+ {% blocktrans with repair=repair.confirmation %}Add part to repair {{ repair }}?{% endblocktrans %}
+{% endblock header %}
+
+{% block body %}
+<form method="post" action="{{ action }}">
+ <div class="media">
+ <a class="pull-left" href="#">
+ <img class="media-object" src="{{ item.product.get_photo }}" style="width:120px"/>
+ </a>
+ <div class="media-body">
+ <h4 class="media-heading">{{ item.code }}</h4>
+ <p>{{ item.title }}</p>
+ <p>{{ item.get_comptia_code_display }}, {{ item.get_price_category_display }}</p>
+ </div>
+ </div>
+ {% csrf_token %}
+</form>
+{% endblock body %}
diff --git a/servo/templates/repairs/check_parts.html b/servo/templates/repairs/check_parts.html
new file mode 100755
index 0000000..519044e
--- /dev/null
+++ b/servo/templates/repairs/check_parts.html
@@ -0,0 +1,10 @@
+{% load servo_tags %}
+{% for p in parts %}
+ <label class="checkbox">
+ <input type="checkbox" {% if p.pk in checked_parts %}checked="checked"{% endif %} class="toggle_part" name="parts" value="{{ p.pk|safe }}"/><small><strong>{{ p.code }}</strong></small>
+ <small class="pull-right">{{ p.price|currency }}</small>
+ </label>
+ <small class="muted">{{ p.title }}</small><br/>
+ <small class="muted">{{ p.get_price_category_display }} - {{ p.warranty_status }}</small>
+ <hr class="dashed"/>
+{% endfor %}
diff --git a/servo/templates/repairs/delete_part.html b/servo/templates/repairs/delete_part.html
new file mode 100755
index 0000000..4a80824
--- /dev/null
+++ b/servo/templates/repairs/delete_part.html
@@ -0,0 +1,12 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+{% trans "Remove this part from the GSX repair?" %}
+{% endblock header %}
+
+{% block footer %}
+<form method="post" action="{{ action }}">{% csrf_token %}
+ <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
+</form>
+{% endblock footer %}
diff --git a/servo/templates/repairs/delete_repair.html b/servo/templates/repairs/delete_repair.html
new file mode 100755
index 0000000..3f68478
--- /dev/null
+++ b/servo/templates/repairs/delete_repair.html
@@ -0,0 +1,16 @@
+{% extends "snippets/modal.html" %}
+{% load i18n %}
+
+{% block header %}
+{% trans "Delete this GSX repair?" %}
+{% endblock header %}
+
+{% block body %}
+{% trans "Only repairs that have not been submitted can be deleted." %}
+{% endblock body %}
+
+{% block footer %}
+<form method="post" action="{{ action }}">{% csrf_token %}
+ <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
+</form>
+{% endblock footer %}
diff --git a/servo/templates/repairs/get_details.html b/servo/templates/repairs/get_details.html
new file mode 100755
index 0000000..a6fe914
--- /dev/null
+++ b/servo/templates/repairs/get_details.html
@@ -0,0 +1,27 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+ {{ repair.dispatch_id }}
+{% endblock header %}
+
+{% block body %}
+<dl class="dl-horizontal">
+ <dt>{% trans "Service Order" %}</dt>
+ <dd>{{ repair.po_number|safe }}</dd>
+ <dt>{% trans "Warranty Coverage" %}</dt>
+ <dd>{{ repair.status_description|default:"-" }}</dd>
+ <dt>{% trans "CS Code" %}</dt>
+ <dd>{{ repair.cs_code|default:"-" }}</dd>
+ <dt>{% trans "Notes" %}</dt>
+ <dd>{{ repair.notes|default:"-" }}</dd>
+ <dt>{% trans "Tracking Number" %}</dt>
+ <dd>{{ repair.tracking_number|default:"-" }}</dd>
+ <dt>{% trans "Parts" %}</dt>
+ <dd>
+ {% for p in repair.parts %}
+ <strong>{{ p.partNumber }}</strong> {{ p.partDescription }}<br/>
+ {% endfor %}
+ </dd>
+</dl>
+{% endblock body %}
diff --git a/servo/templates/repairs/part_menu.html b/servo/templates/repairs/part_menu.html
new file mode 100755
index 0000000..c314496
--- /dev/null
+++ b/servo/templates/repairs/part_menu.html
@@ -0,0 +1,33 @@
+{% load i18n %}
+<ul class="dropdown-menu">
+{% if part.can_return %}
+ <li><a href="{% url 'parts-return_label' repair.pk part.pk %}" class="window">{% trans "Print Return Label" %}</a></li>
+ <li><a href="{% url 'parts-register_return' part.pk %}">{{ part.get_return_title }}</a></li>
+{% else %}
+ <li class="disabled"><a href="#" title="{% trans 'Part has no return order number' %}">{% trans "Print Return Label" %}</a></li>
+ <li class="disabled"><a href="#">{% trans "Register for Return" %}</a></li>
+{% endif %}
+{% if part.can_update_sn %}
+ <li><a href="{% url 'repairs-update_sn' repair.pk part.pk %}">{% trans "Update Serial Numbers" %}</a></li>
+{% else %}
+ <li class="disabled"><a href="#">{% trans "Update Serial Numbers" %}</a></li>
+{% endif %}
+ <li class="divider"></li>
+{% if repair.is_open %}
+ <li><a href="{% url 'shipments-update_part' part=part.pk return_type=1 %}" data-modal="#modal" class="spin">{% trans "Return DOA" %}</a></li>
+ <li><a href="{% url 'shipments-update_part' part=part.pk return_type=2 %}" data-modal="#modal" class="spin">{% trans "Return Good Part" %}</a></li>
+ <li><a href="{% url 'shipments-update_part' part=part.pk return_type=3 %}" data-modal="#modal" class="spin">{% trans "Convert to Stock" %}</a></li>
+ <li class="divider"></li>
+{% if part.line_number %}
+ <li><a href="{% url 'repairs-remove_part' repair.pk part.pk %}" data-modal="#modal">{% trans "Remove from Repair" %}</a></li>
+{% else %}
+ <li class="disabled"><a href="#">{% trans "Remove from Repair" %}</a></li>
+{% endif %}
+{% else %}
+ <li class="disabled"><a href="#">{% trans "Return DOA" %}</a></li>
+ <li class="disabled"><a href="#">{% trans "Return Good Part" %}</a></li>
+ <li class="disabled"><a href="#">{% trans "Convert to Stock" %}</a></li>
+ <li class="divider"></li>
+ <li class="disabled"><a href="#">{% trans "Remove from Repair" %}</a></li>
+{% endif %}
+</ul>