Fixes #591: Correct display of component creation buttons in device type view

This commit is contained in:
Jeremy Stretch 2016-10-04 10:17:56 -04:00
parent 7336fdf162
commit 3503c77699
2 changed files with 11 additions and 10 deletions

View File

@ -12,7 +12,7 @@ except ImportError:
"the documentation.")
VERSION = '1.6.2'
VERSION = '1.6.2-r1'
# Import local configuration
for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:

View File

@ -15,19 +15,20 @@
{% endif %}
</div>
{% render_table table 'table.html' %}
{% if table.rows %}
<div class="panel-footer">
<div class="panel-footer">
{% if table.rows %}
<button type="submit" class="btn btn-xs btn-danger">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Delete Selected
</button>
<div class="pull-right">
<a href="{% url add_url pk=devicetype.pk %}{{ add_url_extra }}" class="btn btn-primary btn-xs">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Add {{ title }}
</a>
</div>
{% endif %}
<div class="pull-right">
<a href="{% url add_url pk=devicetype.pk %}{{ add_url_extra }}" class="btn btn-primary btn-xs">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Add {{ title }}
</a>
</div>
{% endif %}
<div class="clearfix"></div>
</div>
</div>
</form>
{% else %}