Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
redl
redeleitsystem
Commits
e9d408ec
Commit
e9d408ec
authored
Nov 07, 2015
by
Hinrikus Wolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add event support!
parent
45894dab
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
3 deletions
+51
-3
templates/admin_event_edit.html
templates/admin_event_edit.html
+7
-0
templates/admin_event_index.html
templates/admin_event_index.html
+34
-0
templates/admin_event_new.html
templates/admin_event_new.html
+7
-0
templates/admin_topic_edit.html
templates/admin_topic_edit.html
+0
-0
templates/admin_topic_index.html
templates/admin_topic_index.html
+3
-3
No files found.
templates/admin_event_edit.html
0 → 100644
View file @
e9d408ec
{% extends "layout.html" %}
{% from "macros.html" import render_form %}
{% block title %}Edit Event - Administration{% endblock %}
{% block content %}
{{ render_form(form, action_url=url_for(".event_edit", id=id), action_text="Apply", title="Edit Event") }}
{% endblock %}
templates/admin_event_index.html
0 → 100644
View file @
e9d408ec
{% extends "admin_index.html" %}
{% block admin_title %}Event{% endblock %}
{% block content %}
<div
class=
"mdl-cell mdl-cell--3-col mdl-grid mdl-grid--no-spacing"
>
<table
class=
"mdl-data-table mdl-js-table mdl-shadow--2dp mdl-cell mdl-cell--3-col"
>
<thead>
<tr>
<th
class=
"mdl-data-table__cell--non-numeric"
>
Name
</th>
<th
class=
"mdl-data-table__cell--non-numeric"
>
Delete
</th>
</tr>
</thead>
<tbody>
{% for event in events %}
<tr>
<td
class=
"mdl-data-table__cell--non-numeric"
><a
href=
"{{ url_for("
.
event_edit
",
id=
event.id)
}}"
>
{{ event.name }}
</a></td>
<td
class=
"mdl-data-table__cell--non-numeric"
>
<a
href=
"{{ url_for('.event_delete', id=event.id) }}"
>
<i
class=
"material-icons"
>
delete
</i>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div
class=
"rede-separator"
>
<div
class=
"mdl-cell mdl-cell--1-col"
>
<a
class=
"mdl-button mdl-button--colored mdl-js-button mdl-button--fab mdl-js-ripple-effect"
href=
"{{ url_for('.event_new') }}"
>
<i
class=
"material-icons"
>
add
</i>
</a>
</div>
</div>
</div>
{% endblock %}
templates/admin_event_new.html
0 → 100644
View file @
e9d408ec
{% extends "layout.html" %}
{% from "macros.html" import render_form %}
{% block title %}Add Event - Administration{% endblock %}
{% block content %}
{{ render_form(form, action_url=url_for(".event_new", id=id), action_text="Add", title="New Event") }}
{% endblock %}
templates/admin_topic_edit
→
templates/admin_topic_edit
.html
View file @
e9d408ec
File moved
templates/admin_topic_index.html
View file @
e9d408ec
...
...
@@ -12,12 +12,12 @@
</tr>
</thead>
<tbody>
{% for topic in
event
s %}
{% for topic in
topic
s %}
<tr>
<td
class=
"mdl-data-table__cell--non-numeric"
><a
href=
"{{ url_for("
.
topic_edit
",
id=
event
.id)
}}"
>
{{
event
.name }}
</a></td>
<td
class=
"mdl-data-table__cell--non-numeric"
><a
href=
"{{ url_for("
.
topic_edit
",
id=
topic
.id)
}}"
>
{{
topic
.name }}
</a></td>
<td
class=
"mdl-data-table__cell--non-numeric"
>
{{ topic.mode }}
</td>
<td
class=
"mdl-data-table__cell--non-numeric"
>
<a
href=
"{{ url_for('.topic_delete', id=
event
.id) }}"
>
<a
href=
"{{ url_for('.topic_delete', id=
topic
.id) }}"
>
<i
class=
"material-icons"
>
delete
</i>
</a>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment