mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 07:52:15 +00:00
Fix asset list quicklinks
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
<td>{{ item.status }}</td>
|
<td>{{ item.status }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<button type="button" class="btn btn-default" formaction="{% url 'asset_detail' item.pk %}"><i class="glyphicon glyphicon-eye-open"></i> View</button>
|
<a type="button" class="btn btn-default" href="{% url 'asset_detail' item.pk %}"><i class="glyphicon glyphicon-eye-open"></i> View</a>
|
||||||
<button type="button" class="btn btn-default" formaction="{% url 'asset_update' item.pk %}"><i class="glyphicon glyphicon-edit"></i> Edit</button>
|
<a type="button" class="btn btn-default" href="{% url 'asset_update' item.pk %}"><i class="glyphicon glyphicon-edit"></i> Edit</a>
|
||||||
<button type="button" class="btn btn-default" formaction="{% url 'asset_update' item.pk %}?duplicate=true"><i class="glyphicon glyphicon-duplicate"></i> Duplicate</button>
|
<a type="button" class="btn btn-default" href="{% url 'asset_update' item.pk %}?duplicate=true"><i class="glyphicon glyphicon-duplicate"></i> Duplicate</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="{{ field.id_for_label }}">{{ label|default:field.label }}</label>
|
<label for="{{ field.id_for_label }}">{{ label|default:field.label }}</label>
|
||||||
{% if css %}
|
{% if css %}
|
||||||
{% render_field field|add_class:'form-control' %}
|
{% render_field field|add_class:css %}
|
||||||
{% elif disable_if_filled and field.value %}
|
{% 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 %}
|
{% elif css and disable_if_filled %}
|
||||||
{% render_field field|add_class:'form-control'|attr:'disabled' %}
|
{% render_field field|add_class:css|attr:'disabled' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ field|add_class:'form-control' }}
|
{{ field }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="helper-text" data-error="{{ field.errors.text }}"></span>
|
<span class="helper-text" data-error="{{ field.errors.text }}"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user