1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-04-29 08:20:58 +00:00

rename plugin to 'pretalx_broadcast_tools'

This commit is contained in:
Franzi 2021-11-22 12:09:01 +01:00
parent 7c5e58023c
commit 213db3f640
Signed by: kunsi
GPG key ID: 12E3D2136B818350
17 changed files with 81 additions and 82 deletions

View file

@ -0,0 +1,21 @@
{% load static %}
{% load compress %}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html" charset="UTF-8">
<title>{{ request.event.name }} lower thirds</title>
{% compress js %}
<script src="{% static "vendored/jquery-3.1.1.js" %}"></script>
{% endcompress %}
<script src="{% static "pretalx_broadcast_tools/update.js" %}"></script>
<link rel="stylesheet" href="{% static "pretalx_broadcast_tools/frontend.css" %}" />
</head>
<body>
<div id="box">
<p id="title">Loading ...</p>
<p id="speaker">Content should appear soon. If not, please verify you have Javascript enabled.</p>
<p id="info_line"></p>
</div>
</body>
</html>

View file

@ -0,0 +1,52 @@
{% extends "orga/base.html" %}
{% load bootstrap4 %}
{% load i18n %}
{% block content %}
<form method="post">
{% csrf_token %}
<fieldset>
<legend>
{% translate "Set up lower thirds" %}
</legend>
{% bootstrap_field form.lower_thirds_no_talk_info layout='event' %}
{% bootstrap_field form.lower_thirds_info_string layout='event' %}
<p>
The info line will be shown on the bottom right side of your
lower third. If you set it to an empty string, it will automatically
hide itself.
</p>
<p>
pretalx will automatically replace some placeholders in your info
string.
Use <code>{CODE}</code> to embed the talk code (<code>MUX9U3</code>
for example). You could use this to directly link to the talk
feedback page.
Use <code>{EVENT_SLUG}</code> to get the event slug.
Use <code>{TALK_SLUG}</code> to get the talk slug.
</p>
{% if request.event.rooms %}
<h3>{% trans "room list" %}</h3>
<ul>
{% for room in request.event.rooms.all %}
<li><a href="{% url 'plugins:pretalx_broadcast_tools:lowerthirds' request.event.slug %}#{{ room.name }}">{{ room.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
<div class="submit-group panel">
<span></span>
<span class="d-flex flex-row-reverse">
<button
type="submit" class="btn btn-success btn-lg"
name="action" value="save"
>
<i class="fa fa-check"></i>
{% trans "Save" %}
</button>
</span>
</div>
</form>
{% endblock %}