blob: 7aa2d06922f1a3cd0909f5fa02e4367f14ca0c17 (
plain)
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
|
{% extends 'base.html' %}
{% block nav_repositories %}active{% endblock %}
{% block container %}
<form id="repositoriesForm">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
</form>
{{ super() }}
</form>
{% endblock %}
{% block sidebar %}
<ul id="repositories-list" class="nav flex-column nav-pills">
{% for repository in repositories %}
<li id="repository-{{ repository['id'] }}" class="nav-item">
<input class="form-check-input" type="checkbox" form="repositoriesForm"
value="{{ repository['id'] }}"
name="{{ repository['name'] }}" />
{{ repository['name'] }}
</li>
{% endfor %}
</ul>
{% endblock %}
{% block commands %}
<input class="btn btn-light {% block nav_repository_add %}{% endblock %}" type="submit" value="{{ _('Add repository') }}"
form="repositoriesForm" formaction="{{ url_for('repository_add_get') }}" formmethod="get">
<input class="btn btn-light {% block nav_repository_delete %}{% endblock %}" type="submit" value="{{ _('Delete repository') }}"
form="repositoriesForm" formaction="{{ url_for('repository_delete_get') }}" formmethod="get">
{% if btn_back %}
<button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">
{{ _("Back") }}
</button>
{% endif %}
{% endblock %}
|