This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathedit_cert.html
58 lines (52 loc) · 1.53 KB
/
edit_cert.html
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
55
56
57
58
{% extends "base.html" %}
{% set title = cert.name %}
{% block content %}
<table class="table table-hover">
<thead>
<tr>
<th>Skill</th>
<th>Required Rank</th>
<th> </th>
</tr>
</thead>
<tbody>
{% for skill in skills %}
<tr>
<td>{{ skill.name }}</td>
<td>{{ skill.rank }}</td>
<td>
<a href="/certs?action=removeskill&id={{ cert.key().id() }}&skillid={{ skill.id }}">Remove</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<hr />
<form action="/certs" method="POST" class="form-inline">
<fieldset>
<legend>Add a new requirement</legend>
<select name="skillid" class="input-xxlarge">
{% for skillgroup in skillgroups %}
<optgroup label="{{ skillgroup.name }}">
{% for skill in skillgroup.skills %}
{% if skill.published %}
<option value="{{ skill.id }}">{{ skill.name }}</option>
{% endif %}
{% endfor %}
</optgroup>
{% endfor %}
</select>
<select name="rank" class="input-medium">
<option value="1">Rank 1</option>
<option value="2">Rank 2</option>
<option value="3">Rank 3</option>
<option value="4">Rank 4</option>
<option value="5">Rank 5</option>
</select>
<input type="submit" value="Add Requirement" class="btn" />
<input type="hidden" name="id" value="{{ cert.key().id() }}" />
<input type="hidden" name="action" value="addskill" />
</fieldset>
</form>
<p>Adding a requirement for a skill that has an existing requirement will take the higher of the two required ranks.</p>
{% endblock %}