forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_material_base.html
More file actions
47 lines (47 loc) · 1.94 KB
/
edit_material_base.html
File metadata and controls
47 lines (47 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends "base.html" %}
{# Copyright The IETF Trust 2021, All Rights Reserved #}
{% load origin tz %}
{% load django_bootstrap5 %}
{% block title %}Edit {{ material_type.name }} for {{ meeting }} Proceedings{% endblock %}
{% block content %}
{% origin %}
<h1>
{% block content_header %}
Edit Proceedings Material
<br>
<small class="text-muted">{{ meeting }} {{ material_type.name }}</small>
{% endblock %}
</h1>
{% if meeting.proceedings_final %}
<div class="alert alert-warning my-3">The proceedings for this meeting have already been finalized.</div>
{% endif %}
{% if material is not None %}
<p class="my-3">
{% if material.active %}
{% if material.is_url %}
An external URL for this material was set at
{% else %}
A file for this material type was uploaded at
{% endif %}
{% with tm=material.document.time|utc %}{{ tm|date:"H:i:s" }} UTC on {{ tm|date:"Y-m-d" }}.{% endwith %}
{% else %}
This material has been removed and will not appear in the proceedings.
{% endif %}
</p>
{% endif %}
{% block intro %}{% endblock %}
{% block edit_form %}
<form class="edit-proceedings-material my-3" method="post">
{% csrf_token %}
{% bootstrap_form form %}
{# To replace the form but keep default buttons, use block.super in the edit_form block #}
{% block form_buttons %}
<a class="btn btn-secondary float-end"
href="{% url 'ietf.meeting.views_proceedings.material_details' num=meeting.number %}">
Back
</a>
<button class="btn btn-primary" type="submit">{% firstof submit_button_label 'Save' %}</button>
{% endblock %}
</form>
{% endblock %}
{% endblock %}