Skip to content

Commit

Permalink
Merge pull request netbox-community#596 from digitalocean/bugfix-591
Browse files Browse the repository at this point in the history
Fixes netbox-community#591: Correct display of device type component creation buttons
  • Loading branch information
jeremystretch authored Oct 4, 2016
2 parents 836cee3 + 716e129 commit 083ee91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"the documentation.")


VERSION = '1.6.2'
VERSION = '1.6.2-r1'

# Import local configuration
for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']:
Expand Down
19 changes: 10 additions & 9 deletions netbox/templates/dcim/inc/devicetype_component_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 083ee91

Please sign in to comment.