From 9f3c1f7f3cdd0d6ac79d25ff27e57751a742d17d Mon Sep 17 00:00:00 2001 From: Harry Bridge Date: Sat, 5 Jan 2019 19:59:05 +0000 Subject: [PATCH] Updated asset list --- templates/asset_list.html | 43 +++++++++++++++++----------- templates/asset_list_table_body.html | 13 +++++++++ 2 files changed, 40 insertions(+), 16 deletions(-) create mode 100644 templates/asset_list_table_body.html diff --git a/templates/asset_list.html b/templates/asset_list.html index 95f48b43..055846b8 100644 --- a/templates/asset_list.html +++ b/templates/asset_list.html @@ -1,10 +1,21 @@ {% extends 'base.html' %} +{% block title %}List{% endblock %} {% block main %} -

Asset List

+

Asset List

- + + {% csrf_token %} +
+ + +
+ + + + +
@@ -14,21 +25,21 @@ - - {% for item in object_list %} -{#
  • {{ item.asset_id }} - {{ item.description }}
  • #} - - - - - - - - {% endfor %} + + {% include 'asset_list_table_body.html' %}
    Asset IDQuick Links
    {{ item.asset_id }}{{ item.description }}{{ item.category }}{{ item.status }} - visibility - edit -
    + {% include 'helpers/paginator.html' %} + +{% endblock %} + +{% block script %} + {% endblock %} \ No newline at end of file diff --git a/templates/asset_list_table_body.html b/templates/asset_list_table_body.html new file mode 100644 index 00000000..289762e1 --- /dev/null +++ b/templates/asset_list_table_body.html @@ -0,0 +1,13 @@ +{% for item in object_list %} + {#
  • {{ item.asset_id }} - {{ item.description }}
  • #} + + {{ item.asset_id }} + {{ item.description }} + {{ item.category }} + {{ item.status }} + + visibility + edit + + +{% endfor %} \ No newline at end of file