Some work on the tasks CRUD

This commit is contained in:
simon
2018-02-21 21:52:41 -05:00
parent 165844e4ca
commit 1602f47b4e
8 changed files with 171 additions and 24 deletions

View File

@@ -16,7 +16,7 @@
<div class="form-group">
<input type="text" class="form-control" placeholder="Absolute path" name="path">
</div>
<button type="submit" class="btn btn-primary">Add Directory</button>
<button type="submit" class="btn btn-success">Add Directory</button>
</form>
</div>
@@ -26,7 +26,8 @@
<div class="panel-heading">An excellent list</div>
<div class="panel-body">
<table class="info-table">
<table class="info-table table-hover table-striped">
<thead>
<tr>
<th>Display Name</th>
<th>Path</th>
@@ -34,16 +35,19 @@
<th>Last indexed</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for dir in directories %}
<tr>
<td>{{ directories[dir].name }}</td>
<td><pre style="width: 80%">{{ directories[dir].path }}</pre></td>
<td><i class="far {{ "fa-check-square" if directories[dir].enabled else "fa-square" }}"></i></td>
<td>2018-02-21</td>
<td><a href="directory/{{ dir }}">Manage</a> </td>
<td><a href="directory/{{ dir }}" class="btn btn-primary">Manage</a> </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>