{% extends 'assets/add_assets.html' %}
{% load bob %}

{% block form_title %}Add devices{% endblock %}


{% block additional_inputs %}
  {% for field in device_info_form %}
    {% field_wrapper field %}
  {% endfor %}
{% endblock %}

{% block multivalue_inputs %}
<div class="span3">
  <div class="control-group{% if asset_form.sn.errors %} error{% endif %}">
    <label {% if asset_form.sn.field.required %}class="required"{% endif %}>{{ asset_form.sn.label }}</label>
    {{ asset_form.sn }}
    {% if asset_form.sn.errors %}
      <div class="help-block">{% for error in asset_form.sn.errors %}{{ error }} {% endfor %}</div>
    {% endif %}
  </div>
</div>
<div class="span3">
  <div class="control-group{% if asset_form.barcode.errors %} error{% endif %}">
    <label {% if asset_form.barcode.required %}class="required"{% endif %}>{{ asset_form.barcode.label }}</label>
    {{ asset_form.barcode }}
    {% if asset_form.barcode.errors %}
      <div class="help-block">{% for error in asset_form.barcode.errors %}{{ error }} {% endfor %}</div>
    {% endif %}
  </div>
</div>
{% endblock %}
