Browse Source

Move layouts from backend to templates

JoostSijm 6 năm trước cách đây
mục cha
commit
da7d2b7f1e

+ 0 - 44
app/modules/vote/templates/main.j2

@@ -1,44 +0,0 @@
-{% extends "layout/backend.j2" %}
-{% block content %}
-<h1>Votes</h1>
-<div class="row">
-    <div class="col-sm">
-        <div class="card">
-            <div class="card-header">
-                Votes
-                <div class="float-right">
-                    <a href="{{ url_for('vote.create') }}" class="btn btn-secondary btn-sm">Create</a>
-                </div>
-            </div>
-            <div class="card-body table-responsive">
-                <table class="table table-striped table-sm">
-                    <thead>
-                        <tr>
-                            <th></th>
-                            <th>Name</th>
-                            <th>Start</th>
-                            <th>End</th>
-                            <th>Priority</th>
-                            <th>Author</th>
-                        </tr>
-                    </thead>
-                    <tbody>
-                        {% for ballot in ballots %}
-                        <tr>
-                            <td>
-                                <a href="{{ url_for('vote.view', ballot_id=ballot.id) }}"><button class="btn btn-secondary btn-sm">View</button></a>
-                            </td>
-                            <td>{{ ballot.name }}</td>
-                            <td>{{ ballot.start_at }}</td>
-                            <td>{{ ballot.end_at }}</td>
-                            <td>{{ ballot.priority.name }}</td>
-                            <td>{{ ballot.user.name }}</td>
-                        </tr>
-                        {%- endfor -%}
-                    </tbody>
-                </table>
-            </div>
-        </div>
-    </div>
-</div>
-{% endblock %}

+ 0 - 0
app/modules/backend/templates/layout/backend.j2 → app/templates/layout/backend.j2


+ 0 - 0
app/modules/backend/templates/layout/page.j2 → app/templates/layout/page.j2


+ 0 - 0
app/modules/backend/templates/layout/public.j2 → app/templates/layout/public.j2