add a quick way to add a host and the OS
it might be nice to have a seperate form for both of them however this is just much quicker to add and when I limit the hosts they will be limited here as well. So for the moment this is good enough.
This commit is contained in:
parent
3bb63bc44d
commit
d08a1f0557
|
@ -28,19 +28,25 @@
|
|||
<h2>Host</h2>
|
||||
{% if device.host %}
|
||||
<ul>
|
||||
<li><a href="{% url 'computer' device.host.id %}">{{ device.host }}</a></li>
|
||||
<li>
|
||||
<a href="{% url 'computer' device.host.id %}">{{ device.host }}</a>
|
||||
<a href="{% url 'computer_update' pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
|
||||
</li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p><a href="{% url 'warranty_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
||||
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
||||
{% endif %}
|
||||
|
||||
<h2>Operating System</h2>
|
||||
{% if device.os %}
|
||||
<ul>
|
||||
<li>{{ device.os }}</li>
|
||||
<li>
|
||||
{{ device.os }}
|
||||
<a href="{% url 'computer_update' pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
|
||||
</li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p><a href="{% url 'warranty_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
||||
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
||||
{% endif %}
|
||||
|
||||
<h2>Software</h2>
|
||||
|
|
Loading…
Reference in New Issue