1f0a8f3441b88a422a21a86bcbc799ddf3c69a04
[osm/LW-UI.git] / projecthandler / template / project / repository / repo_list.html
1 {% extends "base.html" %}
2
3 {% load staticfiles %}
4
5 {% block head_block %}
6 {{ block.super }}
7
8 <style type="text/css">
9
10 input:required:invalid, input:focus:invalid {
11
12 background-position: right top;
13 background-repeat: no-repeat;
14 }
15 input:required:valid {
16
17 background-position: right top;
18 background-repeat: no-repeat;
19 }
20
21 .form-control.select2-hidden-accessible {
22 top: 30px;
23 }
24
25
26 </style>
27 {% endblock %}
28
29 {% block title_header_big %}
30 {{ block.super }}
31 {% endblock %}
32
33 {% block left_sidebar %}
34 <!-- Left side column. contains the sidebar -->
35 {% include "repository/repo_base_left_sidebar.html" %}
36 {% endblock %}
37
38
39 {% block breadcrumb_body %}
40 {{ block.super }}
41
42 {% endblock %}
43
44 {% block content_body %}
45 {{ block.super }}
46 {% csrf_token %}
47 <div class="row">
48
49 <div class="col-md-12">
50
51 <div class="box">
52 <div class="box-header with-border">
53 <h3 class="box-title">Registered Repository</h3>
54 <div class="box-tools">
55 <a href="#" class="btn btn-block btn-primary btn-sm" data-toggle="modal"
56 data-target="#modal_new_repository"><i
57 class="fa fa-plus"></i><span> New Repository</span></a>
58 </div>
59 </div>
60 <div class="box-body">
61 <table id="deployments_table" class="table table-bordered table-striped">
62 <thead>
63 <tr>
64
65 <th>Name</th>
66 <th>Url</th>
67 <th>Last Update</th>
68 <th>Actions</th>
69 </tr>
70 </thead>
71 <tbody>
72 {% for repo in repos %}
73 <tr>
74
75 <td>
76 {{ repo.name }}
77 </td>
78 <td>
79 {{ repo.base_url }}
80 </td>
81 <td>{{ repo.last_update }}</td>
82 <td>
83 <div class="btn-group">
84 <button type="button" class="btn btn-default"><i class="fa fa-cog"
85 aria-hidden="true"></i>
86 </button>
87 <button type="button" class="btn btn-default dropdown-toggle"
88 data-toggle="dropdown"
89 aria-expanded="false">
90 <span class="caret"></span>
91 <span class="sr-only">Toggle Dropdown</span>
92 </button>
93 <ul class="dropdown-menu" role="menu">
94 <li class='disabled'><a href='#'><i class="fa fa-edit fa-fw"></i>Edit</a>
95 </li>
96 <li><a href='{% url "repos:delete_repo" repo_id=repo.id %}'>
97 <i class="fa fa-trash fa-fw"></i>Delete</a></li>
98 </ul>
99 </div>
100 </td>
101
102 </tr>
103 {% endfor %}
104 </tbody>
105 </table>
106 </div>
107 </div>
108 </div>
109
110 </div>
111 {% include 'repository/repo_create_modal.html' %}
112
113 {% endblock %}
114
115 {% block resource_block %}
116 {{ block.super }}
117
118
119
120 {% endblock %}