diff options
author | Filipp Lepalaan <f@230.to> | 2013-11-19 16:44:56 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-11-19 16:44:56 +0200 |
commit | 8782fbe4766dc57e517eec622879d672d6d68378 (patch) | |
tree | bec35a5bbddedba04c0a1ac34e105d6da7dc5ab4 /templates | |
parent | 1c760af665e388f921b770d9c5c3ded1fc11f626 (diff) | |
download | motor.old-8782fbe4766dc57e517eec622879d672d6d68378.tar.gz motor.old-8782fbe4766dc57e517eec622879d672d6d68378.tar.bz2 motor.old-8782fbe4766dc57e517eec622879d672d6d68378.zip |
switch
Diffstat (limited to 'templates')
-rw-r--r-- | templates/issues/customer.html | 13 | ||||
-rw-r--r-- | templates/issues/device.html | 7 | ||||
-rw-r--r-- | templates/issues/index.html | 6 | ||||
-rw-r--r-- | templates/issues/thanks.html | 0 | ||||
-rw-r--r-- | templates/issues/warranty.html | 28 | ||||
-rw-r--r-- | templates/issues/welcome.html | 15 |
6 files changed, 66 insertions, 3 deletions
diff --git a/templates/issues/customer.html b/templates/issues/customer.html new file mode 100644 index 0000000..a47ba32 --- /dev/null +++ b/templates/issues/customer.html @@ -0,0 +1,13 @@ +{% extends "issues/index.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block main %} + <form method="post" action=""> + {% csrf_token %} + {% bootstrap_form form %} + {% buttons %} + <button type="submit" class="btn btn-primary">{% trans "Submit" %}</button> + {% endbuttons %} + </form> +{% endblock main %} diff --git a/templates/issues/device.html b/templates/issues/device.html new file mode 100644 index 0000000..def5b8b --- /dev/null +++ b/templates/issues/device.html @@ -0,0 +1,7 @@ +{% extends "issues/index.html" %} + +{% block main %} + {% for k, v in models.items %} + <a href="{% url 'issues-choose_device' k %}">{{ v.name }}</a> + {% endfor %} +{% endblock main %} diff --git a/templates/issues/index.html b/templates/issues/index.html index 15b341f..70a84e7 100644 --- a/templates/issues/index.html +++ b/templates/issues/index.html @@ -14,11 +14,11 @@ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> - <body style="padding-top:50px"> + <body> <div class="container-fluid"> {% block main %} - <h2>{{ question }}</h2> - {% for i in choices %} + <h2>{{ question.question }}</h2> + {% for i in question.choice_set.all %} <a class="btn btn-default" href="{% url 'issues-index' i.pk %}">{{ i.choice }}</a> {% endfor %} <blockquote>{{ dump }}</blockquote> diff --git a/templates/issues/thanks.html b/templates/issues/thanks.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/issues/thanks.html diff --git a/templates/issues/warranty.html b/templates/issues/warranty.html new file mode 100644 index 0000000..b944ea5 --- /dev/null +++ b/templates/issues/warranty.html @@ -0,0 +1,28 @@ +{% extends "issues/index.html" %} +{% load i18n %} + +{% block main %} + <div class="row"> + <div class="col-md-5"> + <img src="http://service.info.apple.com/parts/service_parts/products/imac_27_mid2011.jpg" alt="iMac (27-inch, Mid 2011)" title="iMac (27-inch, Mid 2011)"> + </div> + <div class="col-md-7"> + <h3>iMac (27-inch, Mid 2011)</h3> + <dl class="dl-horizontal"> + <dt>{% trans "Warranty" %}</dt> + <dd>Out Of Warranty (No Coverage)</dd> + <dt>{% trans "Purchased" %}</dt> + <dd>2.6.2011, Sweden</dd> + <dt>{% trans "Serial Number" %}</dt> + <dd>DGKFL06JDHJP</dd> + <dt>{% trans "Configuration" %}</dt> + <dd>IMAC 27"/2.7QC/2X2GB/1TB/6770M</dd> + </dl> + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <a class="btn btn-default" href="{% url 'issues-index' 0 %}">{% trans "Continue" %}</a> + </div> + </div> +{% endblock main %} diff --git a/templates/issues/welcome.html b/templates/issues/welcome.html new file mode 100644 index 0000000..38c0dcd --- /dev/null +++ b/templates/issues/welcome.html @@ -0,0 +1,15 @@ +{% extends "issues/index.html" %} +{% load i18n %} + +{% block main %} + <form method="post" action="{% url 'issues-warranty' %}"> + {% csrf_token %} + <div class="form-group"> + <label for="exampleInputEmail1">Serial Number</label> + <input type="email" class="form-control" id="exampleInputEmail1" placeholder="{% trans "Serial Number" %}" value="DGKFL06JDHJP"> + </div> + <div class="form-group"> + <a href="{% url 'issues-choose_device' %}" class="btn btn-default">{% trans "Skip" %}</a> + </div> + </form> +{% endblock main %} |