forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.html
More file actions
54 lines (39 loc) · 1.67 KB
/
add.html
File metadata and controls
54 lines (39 loc) · 1.67 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
48
49
50
51
52
53
54
{% extends "base_site.html" %}
{% load staticfiles %}
{% block title %}Rolodex - Add{% endblock %}
{% block extrahead %}{{ block.super }}
<script src="{% static 'secr/js/utils.js' %}"></script>
{% endblock %}
{% block breadcrumbs %}{{ block.super }}
» <a href="../">Rolodex</a>
» Add
{% endblock %}
{% block content %}
{% if results %}
<ul class="errorlist"><li>Please take a minute to search the list below to prevent creating a duplicate record</li></ul>
<div class="module">
<h2>Adding {{ name }} </h2>
<form id="rolodex-add-form" enctype="multipart/form-data" action="{% url "ietf.secr.rolodex.views.add_proceed" %}" method="post">{% csrf_token %}
<div>{{ form.as_p }}</div>
{% include "includes/search_results_table.html" %}
<div class="button-group">
<ul>
<li><button onclick="history.go(-1);return true">Back</button></li>
<li><button type="submit" name="submit" value="Continue">Continue</button></li>
</ul>
</div> <!-- button-group -->
</form>
</div> <!-- module -->
{% else %}
<div class="module">
<h2>Name</h2>
<form id="rolodex-add-form" enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<table class="full-width amstable">
<col width="200">
{{ form.as_table }}
</table>
{% include "includes/buttons_proceed.html" %}
</form>
</div> <!-- module -->
{% endif %}
{% endblock %}