Skip to content

Commit 17a441e

Browse files
committed
feat: adding database
close #649
1 parent b6604ce commit 17a441e

File tree

3 files changed

+261
-85
lines changed

3 files changed

+261
-85
lines changed

templater/app/templater/routes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ def includeme(config):
1111
config.add_route('verify', '/verify')
1212
config.add_route('render', '/render')
1313
config.add_route('locale', '/locale')
14+
config.add_route('preview_file', '/preview')
15+
config.add_route('api_data_files', '/api/data-files')
16+
config.add_route('api_templates', '/api/templates')
1417

1518
config.add_route('templates', '/templates')
1619
config.add_route('edit_template', '/edit_template/{template_id}')

templater/app/templater/templates/delete_templates.jinja2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
<input type="checkbox" name="selected_templates" value="{{ template.id }}">
2828
</td>
2929
<td>{{ template.name }}</td>
30-
<td>{{ template.type }}</td>
31-
<td>{{ template.created_at }}</td>
30+
<td>{{ template.file_format }}</td>
31+
<td>{{ template.date_set }}</td>
3232
<td>
33-
<button class="btn btn-delete" onclick="deleteSingleTemplate({{ template.id }})">Удалить</button>
33+
<button class="btn btn-delete" onclick="deleteSingleTemplate('{{ template.id }}')">Удалить</button>
3434
</td>
3535
</tr>
3636
{% endfor %}

0 commit comments

Comments
 (0)