Skip to content

Commit

Permalink
Fixes netbox-community#591: Correct display of device type component …
Browse files Browse the repository at this point in the history
…creation buttons
  • Loading branch information
jeremystretch committed Oct 4, 2016
2 parents 64d5117 + 083ee91 commit 189b459
Showing 1 changed file with 10 additions and 9 deletions.
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 189b459

Please sign in to comment.