mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
54 lines
2.0 KiB
HTML
54 lines
2.0 KiB
HTML
{% extends request.is_ajax|yesno:'base_ajax.html,base_rigs.html' %}
|
|
{% load widget_tweaks %}
|
|
|
|
{% block title %}Request Authorisation{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="alert alert-warning">
|
|
<h1>Send authorisation request email.</h1>
|
|
<p>Pressing send will email the address provided. Please triple check everything before continuing.</p>
|
|
</div>
|
|
|
|
<div class="alert alert-info">
|
|
<dl class="dl-horizontal">
|
|
<dt>Person Email</dt>
|
|
<dd>{{ object.person.email }}</dd>
|
|
|
|
<dt>Organisation Email</dt>
|
|
<dd>{{ object.organisation.email }}</dd>
|
|
</dl>
|
|
</div>
|
|
<form action="{{ form.action|default:request.path }}" method="POST" id="auth-request-form">
|
|
{% csrf_token %}
|
|
{% include 'form_errors.html' %}
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label"
|
|
for="{{ form.email.id_for_label }}">{{ form.email.label }}</label>
|
|
<div class="col-sm-8">
|
|
{% render_field form.email type="email" class+="form-control" %}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$('#auth-request-form').on('submit', function () {
|
|
$('#auth-request-form button').attr('disabled', true);
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<div class="form-row">
|
|
<div class="btn-group" role="group">
|
|
<a type="button" target="_blank" href="{% url 'event_authorise_preview' object.pk %}" class="btn btn-info text-nowrap"><span class="fas fa-drafting-compass"></span> Preview</a>
|
|
<button type="submit" class="form-control btn btn-primary" form="auth-request-form">
|
|
<span class="fas fa-paper-plane"></span> Send
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|