{% extends "base.html" %}
{% load static %}

{% block title %}Edit Asset: {{ asset.named_id }}{% endblock %}

{% block content %}
<div class="container">
<form method="post">
{% csrf_token %}
<!--
  <div class="row">
    <div class="col-sm-12">

        <legend><h2>Asset: {{ asset.named_id }}</h2></legend>
        {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
        <div><input type="text" name="named_id" id="named_id" value="{{ asset.named_id }}" max_length="60" size="60"> <label for="named_id">ID</label></div>
        <div><input type="text" name="description" id="description" value="{{ asset.description }}" max_length="250" size="80"> <label for="description">Beschreibung</label></div>
        <div><input type="number" name="quantity" id="quantity" value="{{ asset.quantity }}" size="6" min="0" max="99999"><label for="quantity">Quantity</label></div>
        <div><input type="submit" class="btn btn-primary" value="save"></div>
    </div>
  </div>
-->
        {{ form.as_p }}
        <div>
                <input type="submit" class="btn btn-primary" value="Save">
                <a class="btn btn-primary" href="{% url 'asset:list' %}">Asset List</a>
        </div>
</form>

</div>
{% endblock content %}
