1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

This commit is contained in:
Jeremy Stretch
2016-10-04 14:46:27 -04:00

View File

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