Added asset edit/save
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Edit Asset: {{ asset.named_id }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Form for Asset</h2>
|
||||
{% endblock %}
|
||||
<div class="container">
|
||||
<form action="{% url 'asset:asset-save' asset.id %}" 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="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>
|
||||
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user