{% extends 'base_software.html' %} {% from 'host/common.html' import edit_field %} {% block head %} {% endblock %} {% block main %}
Query/Add Inventory:
{% set next_button ='' %} {{ edit_field(sn_form.serial_number, maxlength=30, field_width="col-sm-4", class="form-control", extra_field=next_button) }}
{% if update_inventory_form.model_name.data != None %} {% set info ='' %} {% if hostname != ''%}
{% endif %} {% if hostname != '' and update_inventory_form.model_name.data == "" %} {{ edit_field(update_inventory_form.model_name, maxlength=50, field_width="col-sm-4", class="form-control", extra_field=info) }} {% else %} {{ edit_field(update_inventory_form.model_name, maxlength=50, field_width="col-sm-4", class="form-control", placeholder="Optional", extra_field=info) }} {% endif %} {% if hostname != '' %}
{% endif %} {% if (description != None and description != "") or (hardware_revision != None and hardware_revision != "") %} {% if hostname != '' %}

{{ inventory_name }}

{% endif %}

{{ description }}

{{ hardware_revision }}

{% endif %}
{% if hostname == '' %}

Available

{% else %}

In Use

Hostname:   {{ hostname }}
Chassis:  {{ chassis }}
Region:  {{ region_name }}
Platform:  {{ platform }}
Software:  {{ software }}
Last Successful Retrieval:   {% if inventory_retrieval_status == "failed" %} {{ last_successful_retrieval }} {% else %} {{ last_successful_retrieval }} {% endif %}     
{% endif %}
{{ update_inventory_form.notes(placeholder="Optional") }}

{% if hostname == '' and not new_inventory %} {% endif %}

{% endif %}
{% endblock %}