Added asset model and basic views

This commit is contained in:
2022-03-10 17:28:39 +01:00
parent 7e446bcbec
commit 16a0b92731
16 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% load statics %}
{% block content %}
<h2>Confirm Asset Delete</h2>
{% endblock %}

View File

@@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% load statics %}
{% block content %}
<h2>Form for Asset</h2>
{% endblock %}

View File

@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% load static %}
{% block title %}Asset: {{ asset.named_id }}{% endblock %}
{% block content %}
<div class="container">
<div>New Assets:</div>
{% if asset_list %}
<ul>
{% for asset in asset_list %}
<li><a href="{% url 'asset:asset-detail' asset.id %}">{{ asset.named_id }}: {{ asset.description }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No new assets are available.</p>
{% endif %}
</div>
<div>
</div>
{% endblock content %}