-
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.
#7846: Show assigned component (if any) when creating inventory item
- Loading branch information
1 parent
e9910d1
commit 21356b4
Showing
5 changed files
with
44 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends 'dcim/component_create.html' %} | ||
{% load helpers %} | ||
|
||
{% block form %} | ||
{% if obj.component %} | ||
<div class="row mb-3"> | ||
<label class="col-sm-3 col-form-label text-lg-end required"> | ||
{{ obj.component|meta:"verbose_name"|bettertitle }} | ||
</label> | ||
<div class="col-sm-9"> | ||
<div class="form-control-plaintext"> | ||
<a href="{{ obj.component.get_absolute_url }}" class="">{{ obj.component }}</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{{ block.super }} | ||
{% endblock %} |