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 pathcerts.html
52 lines (48 loc) · 1.47 KB
/
certs.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
{% extends "base.html" %}
{% set title = "My Certifications" %}
{% block content %}
<table class="table table-hover">
<thead>
<tr>
<th>Certification Name</th>
<th># of Skills</th>
<th>Last Modified</th>
<th>Public?</th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody>
{% for cert in certs %}
<tr>
<td>
<a href="/cert?id={{ cert.id }}{% if not cert.public %}&auth={{ cert.authkey }}{% endif %}">{{ cert.name }}</a>
</td>
<td>{{ cert.skills }}</td>
<td>{{ cert.modified }}</td>
<td><a href="/certs?action=togglelock&id={{ cert.id }}">
<i class="{{ "icon-ok" if cert.public else "icon-lock" }}"></i></a></td>
<td>
<a href="/certs?action=edit&id={{ cert.id }}">Edit</a>
</td>
<td>
<a href="/certs?action=remove&id={{ cert.id }}">Remove</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="row">
<p class="span12" style="text-align: center;">To toggle whether a certification is public or not, click on the
<i class="icon-ok"></i>/<i class="icon-lock"></i> icon.</p>
</div>
<form action="/certs" method="POST" class="form-inline">
<fieldset>
<legend>Add a new certification</legend>
<input id="new_cert_name" name="name" class="span8"
type="text" placeholder="Certification name" />
<input type="submit" value="Add Certification" class="btn" />
<input type="hidden" name="action" value="add" />
</fieldset>
</form>
{% endblock %}