From 1bbfb4a44d42aca151f60a614ebeffbd44ef6e4d Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 27 Nov 2013 13:35:55 +0200 Subject: A bunch of fixes --- templates/issues/customer.html | 10 ++++++++- templates/issues/details.html | 15 +++++++++++++ templates/issues/device.html | 44 +++++++++++++++++++++++++++++++++---- templates/issues/index.html | 41 +++++++++++++++++++++++++---------- templates/issues/ipad.html | 0 templates/issues/iphone.html | 1 + templates/issues/ipod.html | 20 +++++++++++++++++ templates/issues/mac.html | 49 ++++++++++++++++++++++++++++++++++++++++++ templates/issues/other.html | 29 +++++++++++++++++++++++++ templates/issues/question.html | 12 +++++++++++ templates/issues/thanks.html | 18 ++++++++++++++++ templates/issues/warranty.html | 35 +++++++++++++++++++----------- templates/issues/welcome.html | 25 +++++++++++++-------- 13 files changed, 261 insertions(+), 38 deletions(-) create mode 100644 templates/issues/details.html create mode 100644 templates/issues/ipad.html create mode 100644 templates/issues/iphone.html create mode 100644 templates/issues/ipod.html create mode 100644 templates/issues/mac.html create mode 100644 templates/issues/other.html create mode 100644 templates/issues/question.html (limited to 'templates/issues') diff --git a/templates/issues/customer.html b/templates/issues/customer.html index a47ba32..ae5eff6 100644 --- a/templates/issues/customer.html +++ b/templates/issues/customer.html @@ -2,9 +2,17 @@ {% load bootstrap3 %} {% load i18n %} +{% block nav %} +
  • {% trans "Product" %}
  • +
  • {% trans "Issue" %}
  • +
  • {% trans "Your info" %}
  • +
  • {% trans "Done" %}
  • +{% endblock nav %} + {% block main %} +

    3. {% trans "Your info" %}

    - {% csrf_token %} + {% csrf_token %} {% bootstrap_form form %} {% buttons %} diff --git a/templates/issues/details.html b/templates/issues/details.html new file mode 100644 index 0000000..479eeeb --- /dev/null +++ b/templates/issues/details.html @@ -0,0 +1,15 @@ +{% extends "issues/index.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block main %} +

    2. {% trans "The Issue" %}

    +

    Please describe the issue you're having with the product.

    + + {% csrf_token %} + {% bootstrap_form form %} +
    + +
    +
    +{% endblock main %} diff --git a/templates/issues/device.html b/templates/issues/device.html index def5b8b..66830d3 100644 --- a/templates/issues/device.html +++ b/templates/issues/device.html @@ -1,7 +1,43 @@ -{% extends "issues/index.html" %} +{% extends "issues/warranty.html" %} +{% load i18n %} {% block main %} - {% for k, v in models.items %} - {{ v.name }} - {% endfor %} +

    {% trans "Choose Your Device" %}

    +

    Help text..

    +
    + + +
    {% endblock main %} diff --git a/templates/issues/index.html b/templates/issues/index.html index 70a84e7..eac766d 100644 --- a/templates/issues/index.html +++ b/templates/issues/index.html @@ -1,32 +1,51 @@ +{% load i18n %} - + {{ title }} - + -
    - {% block main %} -

    {{ question.question }}

    - {% for i in question.choice_set.all %} - {{ i.choice }} - {% endfor %} -
    {{ dump }}
    - {% endblock main %} +
    + + {% block main %} + {% endblock main %}
    - + diff --git a/templates/issues/ipad.html b/templates/issues/ipad.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/issues/iphone.html b/templates/issues/iphone.html new file mode 100644 index 0000000..3f5faf2 --- /dev/null +++ b/templates/issues/iphone.html @@ -0,0 +1 @@ +{% extends "issues/device.html" %} diff --git a/templates/issues/ipod.html b/templates/issues/ipod.html new file mode 100644 index 0000000..0c34c5b --- /dev/null +++ b/templates/issues/ipod.html @@ -0,0 +1,20 @@ +{% extends "issues/device.html" %} +{% load i18n %} + +{% block main %} +

    {% trans "iPod" %}

    + +{% endblock main %} diff --git a/templates/issues/mac.html b/templates/issues/mac.html new file mode 100644 index 0000000..97bd6f9 --- /dev/null +++ b/templates/issues/mac.html @@ -0,0 +1,49 @@ +{% extends "issues/device.html" %} +{% load i18n %} + +{% block main %} +

    {% trans "Mac" %}

    +

    {% trans "Choose your Mac" %}

    + +{% endblock main %} diff --git a/templates/issues/other.html b/templates/issues/other.html new file mode 100644 index 0000000..2d4d0ee --- /dev/null +++ b/templates/issues/other.html @@ -0,0 +1,29 @@ +{% extends "issues/device.html" %} +{% load i18n %} + +{% block main %} +

    {% trans "Other" %}

    +

    {% trans "Choose your product" %}

    + +{% endblock main %} diff --git a/templates/issues/question.html b/templates/issues/question.html new file mode 100644 index 0000000..8da6e10 --- /dev/null +++ b/templates/issues/question.html @@ -0,0 +1,12 @@ +{% extends "issues/index.html" %} +{% load i18n %} + +{% block main %} +
    +

    {{ question.question }}

    +

    {{ question.description|default:"" }}

    + {% for i in question.choice_set.all %} + {{ i.choice }} + {% endfor %} +
    +{% endblock main %} diff --git a/templates/issues/thanks.html b/templates/issues/thanks.html index e69de29..0803d57 100644 --- a/templates/issues/thanks.html +++ b/templates/issues/thanks.html @@ -0,0 +1,18 @@ +{% extends "issues/index.html" %} +{% load i18n %} + +{% block nav %} +
  • {% trans "Product" %}
  • +
  • {% trans "Issue" %}
  • +
  • {% trans "Your info" %}
  • +
  • {% trans "Done" %}
  • +{% endblock nav %} + +{% block main %} +
    +

    {% trans "Thanks!" %}

    +
    +

    Put description here...

    + {% trans "Restart" %} +
    +{% endblock main %} diff --git a/templates/issues/warranty.html b/templates/issues/warranty.html index b944ea5..2e0be24 100644 --- a/templates/issues/warranty.html +++ b/templates/issues/warranty.html @@ -1,28 +1,37 @@ {% extends "issues/index.html" %} {% load i18n %} +{% block nav %} +
  • {% trans "Product" %}
  • +
  • {% trans "Issue" %}
  • +
  • {% trans "Your info" %}
  • +
  • {% trans "Done" %}
  • +{% endblock nav %} + {% block main %}
    iMac (27-inch, Mid 2011)
    -

    iMac (27-inch, Mid 2011)

    -
    -
    {% trans "Warranty" %}
    -
    Out Of Warranty (No Coverage)
    -
    {% trans "Purchased" %}
    -
    2.6.2011, Sweden
    -
    {% trans "Serial Number" %}
    -
    DGKFL06JDHJP
    -
    {% trans "Configuration" %}
    -
    IMAC 27"/2.7QC/2X2GB/1TB/6770M
    -
    +
    +

    iMac (27-inch, Mid 2011)

    +
    +
    {% trans "Warranty" %}
    +
    Out Of Warranty (No Coverage)
    +
    {% trans "Purchased" %}
    +
    2.6.2011, Sweden
    +
    {% trans "Serial Number" %}
    +
    DGKFL06JDHJP
    +
    {% trans "Configuration" %}
    +
    IMAC 27"/2.7QC/2X2GB/1TB/6770M
    +
    +
    - {% endblock main %} diff --git a/templates/issues/welcome.html b/templates/issues/welcome.html index 38c0dcd..daef11b 100644 --- a/templates/issues/welcome.html +++ b/templates/issues/welcome.html @@ -1,15 +1,22 @@ {% extends "issues/index.html" %} +{% load bootstrap3 %} {% load i18n %} +{% block nav %} +
  • {% trans "Product" %}
  • +
  • {% trans "Issue" %}
  • +
  • {% trans "Your info" %}
  • +
  • {% trans "Done" %}
  • +{% endblock nav %} + {% block main %} -
    - {% csrf_token %} -
    - - -
    -
    +

    1. {% trans "Product" %}

    +

    Let's start by identifying your device. Please enter your serial number or click Skip.

    + + {% csrf_token %} + {% bootstrap_form form %} + - +
    + {% endblock main %} -- cgit v1.2.3