Condensed classifiers in one place
This commit is contained in:
parent
cf7fc2ec87
commit
e336292db4
8 changed files with 256 additions and 34 deletions
45
templates/classifiers.html
Normal file
45
templates/classifiers.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Rules{% endblock title %}
|
||||
{% block body %}
|
||||
<div>
|
||||
<a href="/classifiers/new_category">New</a>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th span="col">Id</th>
|
||||
<th span="col">Name</th>
|
||||
<th span="col">Description</th>
|
||||
<tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for category in categories %}
|
||||
<tr>
|
||||
<td>{{category.category_id}}</td>
|
||||
<td>{{category.name}}</td>
|
||||
<td>{{category.description}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<a href="/classifiers/new_rule">New</a>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Categoría</th>
|
||||
<th>Regla</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rule in rules %}
|
||||
<tr>
|
||||
<td>{{rule.category}}</td>
|
||||
<td>{{rule.regex}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock body %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue