From 44d84f10c9613894ba82f571fb246e76cf513411 Mon Sep 17 00:00:00 2001 From: Harry Bridge Date: Mon, 16 Jul 2018 00:28:42 +0100 Subject: [PATCH] Moved some templates around and added styling --- templates/asset_detail.html | 20 ++++++++++++++++++++ templates/asset_form.html | 15 +++++++++++++++ templates/asset_list.html | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 templates/asset_detail.html create mode 100644 templates/asset_form.html create mode 100644 templates/asset_list.html diff --git a/templates/asset_detail.html b/templates/asset_detail.html new file mode 100644 index 00000000..9bc7896f --- /dev/null +++ b/templates/asset_detail.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} + + +{% block main %} + +

Asset Detail

+ + {{ object.description }} +
+ {{ object.category.name }} +
+ {{ object.status.name }} +
+ {{ object.purchased_from.name }} +
+ Edit +
+ Delete + +{% endblock %} diff --git a/templates/asset_form.html b/templates/asset_form.html new file mode 100644 index 00000000..65c21816 --- /dev/null +++ b/templates/asset_form.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} + + +{% block main %} + +

Asset {{ form_header|default:'Create' }}

+ +
+ {{ form }} + {% csrf_token %} + + +
+ +{% endblock %} diff --git a/templates/asset_list.html b/templates/asset_list.html new file mode 100644 index 00000000..95f48b43 --- /dev/null +++ b/templates/asset_list.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} + +{% block main %} + +

Asset List

+ + + + + + + + + + + + + {% for item in object_list %} +{#
  • {{ item.asset_id }} - {{ item.description }}
  • #} + + + + + + + + {% endfor %} + +
    Asset IDDescriptionCategoryStatusQuick Links
    {{ item.asset_id }}{{ item.description }}{{ item.category }}{{ item.status }} + visibility + edit +
    + +{% endblock %} \ No newline at end of file