mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-29 03:12:15 +00:00
Add forms, views, templates and URLs. Remove created at in favour of the built in versioning as that's much more accurate. Switch to a OneToOneField with EventAuthorisation -> event as a result of this. Move validation from models to forms where it probably belongs. Provide more descriptive errors. Add success page for authorisation.
70 lines
2.4 KiB
HTML
70 lines
2.4 KiB
HTML
{% extends 'base_client.html' %}
|
|
{% load widget_tweaks %}
|
|
|
|
{% block title %}
|
|
{% if event.is_rig %}N{{ event.pk|stringformat:"05d" }}{% else %}{{ event.pk }}{% endif %} | {{ event.name }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h1>
|
|
{% if event.is_rig %}N{{ event.pk|stringformat:"05d" }}{% else %}{{ event.pk }}{% endif %}
|
|
| {{ event.name }} {% if event.dry_hire %}<span class="badge">Dry Hire</span>{% endif %}
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
|
|
{% include 'RIGS/client_eventdetails.html' %}
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
{% with object=event %}
|
|
{% include 'RIGS/item_table.html' %}
|
|
{% endwith %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Event Authorisation</div>
|
|
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-sm-12 col-md-6">
|
|
<dl class="dl-horizontal">
|
|
<dt>Name</dt>
|
|
<dd>{{ object.name }}</dd>
|
|
|
|
<dt>Email</dt>
|
|
<dd>{{ object.email }}</dd>
|
|
|
|
{% if internal %}
|
|
<dt>University ID</dt>
|
|
<dd>{{ object.uni_id }}</dd>
|
|
{% endif %}
|
|
</dl>
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-6">
|
|
<dl class="dl-horizontal">
|
|
{% if internal %}
|
|
<dt>Account code</dt>
|
|
<dd>{{ object.account_code }}</dd>
|
|
{% else %}
|
|
<dt>PO</dt>
|
|
<dd>{{ object.po }}</dd>
|
|
{% endif %}
|
|
|
|
<dt>Authorised amount</dt>
|
|
<dd>£ {{ object.amount|floatformat:2 }}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|