-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #722: Enabled custom fields for device types
- Loading branch information
1 parent
712567c
commit b56e37a
Showing
10 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends 'utilities/obj_edit.html' %} | ||
{% load form_helpers %} | ||
|
||
{% block form %} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"><strong>Device Type</strong></div> | ||
<div class="panel-body"> | ||
{% render_field form.manufacturer %} | ||
{% render_field form.model %} | ||
{% render_field form.slug %} | ||
{% render_field form.part_number %} | ||
{% render_field form.u_height %} | ||
{% render_field form.is_full_depth %} | ||
{% render_field form.is_console_server %} | ||
{% render_field form.is_pdu %} | ||
{% render_field form.is_network_device %} | ||
{% render_field form.subdevice_role %} | ||
</div> | ||
</div> | ||
{% if form.custom_fields %} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"><strong>Custom Fields</strong></div> | ||
<div class="panel-body"> | ||
{% render_custom_fields form %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endblock %} |