From 15113c4fbc60e1f8203d27ff6814632481c00a8d Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 2 Oct 2019 16:51:45 +0100 Subject: [PATCH] Fix asset list quicklinks --- assets/templates/asset_list_table_body.html | 6 +++--- assets/templates/helpers/render_field.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/templates/asset_list_table_body.html b/assets/templates/asset_list_table_body.html index 661920ba..fbec39d8 100644 --- a/assets/templates/asset_list_table_body.html +++ b/assets/templates/asset_list_table_body.html @@ -7,9 +7,9 @@ {{ item.status }}
- - - + View + Edit + Duplicate
diff --git a/assets/templates/helpers/render_field.html b/assets/templates/helpers/render_field.html index e372f92c..b1cd91b3 100644 --- a/assets/templates/helpers/render_field.html +++ b/assets/templates/helpers/render_field.html @@ -3,13 +3,13 @@
{% if css %} - {% render_field field|add_class:'form-control' %} + {% render_field field|add_class:css %} {% elif disable_if_filled and field.value %} - {% render_field field|attr:'disabled'|add_class:'form-control' %} + {% render_field field|attr:'disabled' %} {% elif css and disable_if_filled %} - {% render_field field|add_class:'form-control'|attr:'disabled' %} + {% render_field field|add_class:css|attr:'disabled' %} {% else %} - {{ field|add_class:'form-control' }} + {{ field }} {% endif %}