From 42a63f035c36753fee44fe159a36c31c4dcab049 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 2 Oct 2019 17:17:35 +0100 Subject: [PATCH] Asset detail view button improvements --- assets/templates/asset_update.html | 43 +++++++-------------- assets/templates/helpers/asset_buttons.html | 20 ++++++++++ 2 files changed, 33 insertions(+), 30 deletions(-) create mode 100644 assets/templates/helpers/asset_buttons.html diff --git a/assets/templates/asset_update.html b/assets/templates/asset_update.html index e23894cb..166ae497 100644 --- a/assets/templates/asset_update.html +++ b/assets/templates/asset_update.html @@ -9,23 +9,25 @@ -
+
+ {% include 'helpers/asset_buttons.html' %} +
{% csrf_token %} - +
@@ -33,7 +35,7 @@
- + {% if edit or duplicate %} {% if duplicate %} {% render_field form.asset_id|add_class:'form-control' value=object.asset_id %} @@ -46,11 +48,11 @@
+ >Description {% render_field form.description|add_class:'form-control' value=object.description %}
- +
- +