From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/checkin/confirmation.html | 13 +++ servo/templates/checkin/customer_form.html | 87 +++++++++++++++++ servo/templates/checkin/device_form.html | 62 ++++++++++++ servo/templates/checkin/error.html | 15 +++ servo/templates/checkin/index.html | 95 +++++++++++++++++++ servo/templates/checkin/newindex.html | 146 +++++++++++++++++++++++++++++ servo/templates/checkin/status-show.html | 35 +++++++ servo/templates/checkin/status.html | 21 +++++ servo/templates/checkin/terms.html | 9 ++ servo/templates/checkin/thanks.html | 26 +++++ 10 files changed, 509 insertions(+) create mode 100644 servo/templates/checkin/confirmation.html create mode 100644 servo/templates/checkin/customer_form.html create mode 100644 servo/templates/checkin/device_form.html create mode 100644 servo/templates/checkin/error.html create mode 100644 servo/templates/checkin/index.html create mode 100644 servo/templates/checkin/newindex.html create mode 100644 servo/templates/checkin/status-show.html create mode 100644 servo/templates/checkin/status.html create mode 100644 servo/templates/checkin/terms.html create mode 100644 servo/templates/checkin/thanks.html (limited to 'servo/templates/checkin') diff --git a/servo/templates/checkin/confirmation.html b/servo/templates/checkin/confirmation.html new file mode 100644 index 0000000..00125c3 --- /dev/null +++ b/servo/templates/checkin/confirmation.html @@ -0,0 +1,13 @@ +{% extends "checkin/index.html" %} +{% load i18n %} + +{% block main %} + +
+ {% csrf_token %} + {% include "form_snippet.html" %} + +
+{% endblock main %} diff --git a/servo/templates/checkin/customer_form.html b/servo/templates/checkin/customer_form.html new file mode 100644 index 0000000..305c67a --- /dev/null +++ b/servo/templates/checkin/customer_form.html @@ -0,0 +1,87 @@ +{% load i18n %} +{% load bootstrap3 %} + +
+
+ {% bootstrap_field customer_form.phone %} +
+
+ {% bootstrap_field customer_form.email %} +
+
+ +
+
+ {% bootstrap_field customer_form.fname %} +
+
+ {% bootstrap_field customer_form.lname %} +
+
+
+
+ {% bootstrap_field customer_form.address %} +
+
+ {% bootstrap_field customer_form.company %} +
+
+
+
+
+
+ {% bootstrap_field customer_form.postal_code %} +
+
+ {% bootstrap_field customer_form.city %} +
+
+
+
+ {% bootstrap_field customer_form.country %} +
+
+{% comment %} +
+
+ {% bootstrap_field customer_form.notify_by_sms %} + {% bootstrap_field customer_form.notify_by_email %} +
+
+{% endcomment %} + +{% block media %} +{% if request.user.is_authenticated %} + +{% endif %} +{% endblock media %} diff --git a/servo/templates/checkin/device_form.html b/servo/templates/checkin/device_form.html new file mode 100644 index 0000000..16450e7 --- /dev/null +++ b/servo/templates/checkin/device_form.html @@ -0,0 +1,62 @@ +{% load i18n %} +{% load bootstrap3 %} + +{% if device.fmip_active %} + +{% endif %} + +{% if error %} + +{% endif %} + +
+ {{ device.description }} +
+
+
+
+ {% bootstrap_field device_form.sn %} +
+
+ {% bootstrap_field device_form.description %} +
+
+
+ +

{{ device.get_warranty_status_display }}

+
+ {% bootstrap_field device_form.purchased_on %} + {% bootstrap_field device_form.purchase_country %} +
+
+ {% if device.is_mac %} + {% bootstrap_field device_form.username %} + {% endif %} +
+
+ {% bootstrap_field device_form.password %} +
+
+
+
+ {% bootstrap_field device_form.accessories %} +
+
+
+ \ No newline at end of file diff --git a/servo/templates/checkin/error.html b/servo/templates/checkin/error.html new file mode 100644 index 0000000..eaa45d5 --- /dev/null +++ b/servo/templates/checkin/error.html @@ -0,0 +1,15 @@ +{% extends "checkin/index.html" %} +{% load i18n %} + +{% block title %}{% trans "An error occurred" %}{% endblock title %} + +{% block main %} +
+
+

{% trans "Oops!" %}

+

{% trans "It appears that an error has occurred." %}

+

{{ message }}

+ {% trans "Try again" %} +
+
+{% endblock main %} diff --git a/servo/templates/checkin/index.html b/servo/templates/checkin/index.html new file mode 100644 index 0000000..9ecc884 --- /dev/null +++ b/servo/templates/checkin/index.html @@ -0,0 +1,95 @@ +{% load i18n %}{% load bootstrap3 %} + + + + {% block title %}{{ title }}{% endblock title %} + + + + + + + + + + + + +
+ {% if request.user.is_authenticated %} + + {% endif %} +
+
+ {% bootstrap_messages %} + {% block main %}(no content){% endblock main %} +
+
+
+ + + + {% block media %}{% endblock media %} + + + diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html new file mode 100644 index 0000000..41a6a05 --- /dev/null +++ b/servo/templates/checkin/newindex.html @@ -0,0 +1,146 @@ +{% extends "checkin/index.html" %} +{% load servo_tags %} +{% load bootstrap3 %} +{% load i18n %} + +{% block main %} + + + + +{% comment %} +
+ + +
+{% endcomment %} +
+
+ {% csrf_token %} +
+ {% include "checkin/device_form.html" %} +
+ +
+ {% include "checkin/customer_form.html" %} +
+ + {% if request.user.is_authenticated %} +
+
+
+ +
+ {% for t in tags %} +
+ +
+ {% endfor %} +
+
+
+
+ {% endif %} +
+
+ {% bootstrap_field issue_form.issue_description %} + {% bootstrap_field issue_form.notes %} + {% bootstrap_field device_form.condition %} +
+
+ {% bootstrap_field device_form.pop %} + + + + + + + + + + {% for q in questions %} + + + + + + {% endfor %} + +
{% trans "Yes" %}{% trans "No" %}
+ {{ q }} +

{{ q.description }}

+
+ {% bootstrap_field customer_form.checkin_location %} + {% bootstrap_field customer_form.checkout_location %} +
+
+
+
+
+ {% buttons %} + {% if not request.user.is_authenticated %} + {% bootstrap_field customer_form.agree_to_terms %} + {% endif %} + {% if request.user.is_authenticated %} + + {% else %} + + {% endif %} + {% endbuttons %} +
+
+
+
+{% endblock main %} diff --git a/servo/templates/checkin/status-show.html b/servo/templates/checkin/status-show.html new file mode 100644 index 0000000..fcd503c --- /dev/null +++ b/servo/templates/checkin/status-show.html @@ -0,0 +1,35 @@ +{% extends "checkin/index.html" %} +{% load bootstrap3 %} +{% load humanize %} +{% load i18n %} + +{% block main %} + + {% if timeline|length %} + + {% endif %} + {% bootstrap_icon "refresh" %} {% trans "Refresh" %} + {% trans "Return" %} +{% endblock main %} diff --git a/servo/templates/checkin/status.html b/servo/templates/checkin/status.html new file mode 100644 index 0000000..ddb49fb --- /dev/null +++ b/servo/templates/checkin/status.html @@ -0,0 +1,21 @@ +{% extends "checkin/index.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block main %} + +

{% trans "The Service Order number is an 8-digit code printed on your work confirmation" %}

+
+ {% bootstrap_form form %} + {% buttons %} +
+ {% trans "Back" %} + +
+ {% endbuttons %} +
+{% endblock main %} diff --git a/servo/templates/checkin/terms.html b/servo/templates/checkin/terms.html new file mode 100644 index 0000000..72d1fa6 --- /dev/null +++ b/servo/templates/checkin/terms.html @@ -0,0 +1,9 @@ +{% extends "checkin/index.html" %} +{% load servo_tags %} +{% load i18n %} +{% block main %} + +{{ conf.terms_of_service|markdown }} +{% endblock main %} diff --git a/servo/templates/checkin/thanks.html b/servo/templates/checkin/thanks.html new file mode 100644 index 0000000..ae5b8da --- /dev/null +++ b/servo/templates/checkin/thanks.html @@ -0,0 +1,26 @@ +{% extends "checkin/index.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block main %} + +
+ Done! +
+ {% bootstrap_icon "plus" %} {% trans "Create New" %} + {% bootstrap_icon "print" %} {% trans "Print" %} +
+{% endblock main %} + +{% block media %} +{% comment %} + +{% endcomment %} +{% endblock media %} -- cgit v1.2.3