Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
redl
redeleitsystem
Commits
787c8ed0
Commit
787c8ed0
authored
Nov 08, 2015
by
Robin Sonnabend
Browse files
Enabled nextbutton for admin-topic-show
parent
535aa66e
Changes
2
Hide whitespace changes
Inline
Side-by-side
static/js/nextbutton.js
View file @
787c8ed0
...
...
@@ -8,12 +8,8 @@ function hashkey(e) {
}
function
clickNextSpeaker
()
{
var
rows
=
document
.
getElementById
(
"
next-speaker-table
"
).
rows
;
if
(
rows
.
length
>
1
)
{
var
row
=
rows
[
1
];
var
a
=
row
.
children
[
2
].
childNodes
[
1
];
a
.
click
();
}
var
link
=
document
.
getElementById
(
"
next-statement-button
"
);
link
.
click
();
}
window
.
onkeypress
=
function
(
e
)
{
...
...
templates/admin_topic_show.html
View file @
787c8ed0
...
...
@@ -2,6 +2,14 @@
{% from "macros.html" import render_form %}
{% block admin_title %}Topic - {{ topic.name }}{% endblock %}
{% block additional_js %}
<script
src=
"{{ url_for("
static
",
filename=
"js/nextbutton.js"
)
}}"
async
></script>
{% endblock %}
{% block additional_sidelinks %}
<a
class=
"mdl-navigation__link"
href=
"javascript:void(0)"
onclick=
"setkeyhash()"
><i
class=
"mdl-color-text--blue-grey-400 material-icons"
>
phonelink_setup
</i>
Set Presenter key
</a>
{% endblock %}
{% block content %}
<div
class=
"mdl-cell mdl-cell--6-col mdl-cell--5-col-tablet mdl-cell--4-col-phone mdl-grid mdl-grid--no-spacing"
>
<table
class=
"mdl-data-table mdl-js-table mdl-shadow--2dp mdl-cell mdl-cell--12-col"
>
...
...
@@ -56,7 +64,7 @@
<ul
class=
"rede-list-no-bullet"
>
{% if topic.sorted_statements()|length() > 0 %}
<li>
<a
href=
"{{ url_for("
.
statement_done
",
id=
topic.sorted_statements()[0].id,
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
redo
</i>
Next
</a>
<a
id=
"next-statement-button"
href=
"{{ url_for("
.
statement_done
",
id=
topic.sorted_statements()[0].id,
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
redo
</i>
Next
</a>
</li>
{% endif %}
<li><a
href=
"{{ url_for("
.
statement_undo
",
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
undo
</i>
Previous
</a></li>
...
...
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