Rework (projector) template with bootstrap.
- Always use templatetag 'absolute_url' instead of (depricated) 'model_url'. Search and replace all old arguments: edit -> update, view -> detail, delete - Fixed bug in setting default value in 'absolute_url' templatetag (default value is defined in models.py only). Updated 'backend' template.
This commit is contained in:
parent
d681e94eed
commit
84d5293fbc
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if item %}
|
{% if item %}
|
||||||
{{ item.title }} – {% trans "Edit item" %}
|
{{ item }} – {% trans "Edit item" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "New item" %}
|
{% trans "New item" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.agenda.can_manage_agenda %}
|
{% if perms.agenda.can_manage_agenda %}
|
||||||
<a href="{{ node|absolute_url:'edit' }}" rel="tooltip" data-original-title="{% trans 'Edit' %}" class="btn btn-mini">
|
<a href="{{ node|absolute_url:'update' }}" rel="tooltip" data-original-title="{% trans 'Edit' %}" class="btn btn-mini">
|
||||||
<i class="icon-pencil"></i>
|
<i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ node|absolute_url:'delete' }}" rel="tooltip" data-original-title="{% trans 'Delete' %}" class="btn btn-mini">
|
<a href="{{ node|absolute_url:'delete' }}" rel="tooltip" data-original-title="{% trans 'Delete' %}" class="btn btn-mini">
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
<h1>
|
||||||
|
{{ item }}
|
||||||
|
<hr>
|
||||||
|
</h1>
|
||||||
|
|
||||||
{% if item.text %}
|
{% if item.text %}
|
||||||
<h1>{{ item }}</h1>
|
{{ item.text|safe|linebreaks }}
|
||||||
<span>{{ item.text|safe|linebreaks }}</span>
|
|
||||||
{% else %}
|
|
||||||
<div class="item_fullscreen">{{ item }}</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<h2 style="margin-top: -10px;">
|
<h3>
|
||||||
{% trans 'List of speakers' %}
|
{% trans 'List of speakers' %}
|
||||||
{% if item.speaker_list_closed %}(<span class="closed">{% trans 'closed' %}</span>){% endif %}
|
{% if item.speaker_list_closed %}(<span class="closed">{% trans 'closed' %}</span>){% endif %}
|
||||||
</h2>
|
</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if list_of_speakers %}
|
{% if list_of_speakers %}
|
||||||
|
@ -10,4 +10,5 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<a href="{% url 'agenda_next_on_current_list_of_speakers' %}" class="btn btn-mini"><i class="icon icon-bell"></i> {% trans 'Next speaker' %}</a>
|
<a href="{% url 'agenda_next_on_current_list_of_speakers' %}" class="btn btn-mini"><i class="icon icon-bell"></i> {% trans 'Next speaker' %}</a>
|
||||||
<a href="{% url 'agenda_end_speach_on_current_list_of_speakers' %}" class="btn btn-mini"><i class="icon icon-bell"></i> {% trans 'End speach' %}</a>
|
<a href="{% url 'agenda_end_speach_on_current_list_of_speakers' %}" class="btn btn-mini"><i class="icon icon-bell"></i> {% trans 'End speach' %}</a>
|
||||||
|
<br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
rel="tooltip" data-original-title="{% trans 'Show' %}">
|
rel="tooltip" data-original-title="{% trans 'Show' %}">
|
||||||
<i class="icon-facetime-video {% if item.is_active_slide and active_type == 'text' %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if item.is_active_slide and active_type == 'text' %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ item|absolute_url:'edit' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
<a href="{{ item|absolute_url:'update' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
||||||
<i class="icon-pencil"></i>
|
<i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ item|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
<a href="{{ item|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
||||||
|
@ -85,7 +85,7 @@ class Overview(TemplateView):
|
|||||||
|
|
||||||
active_slide = get_active_slide()
|
active_slide = get_active_slide()
|
||||||
if active_slide['callback'] == 'agenda':
|
if active_slide['callback'] == 'agenda':
|
||||||
agenda_active = active_slide.get('pk', 'agenda') == 'agenda'
|
agenda_is_active = active_slide.get('pk', 'agenda') == 'agenda'
|
||||||
active_type = active_slide.get('type', 'text')
|
active_type = active_slide.get('type', 'text')
|
||||||
else:
|
else:
|
||||||
agenda_is_active = None
|
agenda_is_active = None
|
||||||
|
@ -23,8 +23,10 @@
|
|||||||
<a href="{% url 'assignment_pdf' assignment.id %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Print election as PDF' %}" target="_blank"><i class="icon-print"></i> PDF</a>
|
<a href="{% url 'assignment_pdf' assignment.id %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Print election as PDF' %}" target="_blank"><i class="icon-print"></i> PDF</a>
|
||||||
<!-- activate projector -->
|
<!-- activate projector -->
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' assignment.sid %}" class="activate_link btn {% if assignment.active %}btn-primary{% endif %} btn-mini" rel="tooltip" data-original-title="{% trans 'Show election' %}">
|
<a href="{{ assignment|absolute_url:'projector' }}"
|
||||||
<i class="icon-facetime-video {% if assignment.active %}icon-white{% endif %}"></i>
|
class="activate_link btn {% if assignment.is_active_slide %}btn-primary{% endif %} btn-mini"
|
||||||
|
rel="tooltip" data-original-title="{% trans 'Show election' %}">
|
||||||
|
<i class="icon-facetime-video {% if assignment.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.assignment.can_manage_assignment or perms.agenda.can_manage_agenda %}
|
{% if perms.assignment.can_manage_assignment or perms.agenda.can_manage_agenda %}
|
||||||
@ -177,7 +179,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if assignment.candidates and perms.assignment.can_manage_assignment and assignment.status == "vot" %}
|
{% if assignment.candidates and perms.assignment.can_manage_assignment and assignment.status == "vot" %}
|
||||||
<th class="span1 nobr">
|
<th class="span1 nobr">
|
||||||
<a href="{% url 'assignment_gen_poll' assignment.id %}" class="btn btn-mini">
|
<a href="{% url 'assignment_poll_create' assignment.id %}" class="btn btn-mini">
|
||||||
<i class="icon-plus"></i> {% trans 'New ballot' %}
|
<i class="icon-plus"></i> {% trans 'New ballot' %}
|
||||||
</a>
|
</a>
|
||||||
</th>
|
</th>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load tags %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if assignment %}
|
{% if assignment %}
|
||||||
@ -19,7 +20,11 @@
|
|||||||
{% trans "New election" %}
|
{% trans "New election" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small class="pull-right">
|
<small class="pull-right">
|
||||||
|
{% if assignment %}
|
||||||
|
<a href="{{ assignment|absolute_url }}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to election" %}</a>
|
||||||
|
{% else %}
|
||||||
<a href="{% url 'assignment_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
<a href="{% url 'assignment_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
||||||
|
{% endif %}
|
||||||
</small>
|
</small>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for object in object_list %}
|
{% for object in object_list %}
|
||||||
<tr class="{% if object.active %}activeline{% endif %}">
|
<tr class="{% if object.is_active_slide %}activeline{% endif %}">
|
||||||
<td><a href="{{ object|absolute_url:'detail' }}">{{ object }}</a></td>
|
<td><a href="{{ object|absolute_url:'detail' }}">{{ object }}</a></td>
|
||||||
<td class="optional">
|
<td class="optional">
|
||||||
<!-- posts -->
|
<!-- posts -->
|
||||||
@ -54,10 +54,10 @@
|
|||||||
<td>
|
<td>
|
||||||
<span style="width: 1px; white-space: nowrap;">
|
<span style="width: 1px; white-space: nowrap;">
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' object.sid %}"
|
<a href="{{ object|absolute_url:'projector' }}"
|
||||||
class="activate_link btn {% if object.active %}btn-primary{% endif %} btn-mini"
|
class="activate_link btn {% if object.is_active_slide %}btn-primary{% endif %} btn-mini"
|
||||||
rel="tooltip" data-original-title="{% trans 'Show election' %}">
|
rel="tooltip" data-original-title="{% trans 'Show election' %}">
|
||||||
<i class="icon-facetime-video {% if object.active %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if object.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.assignment.can_manage_assignment %}
|
{% if perms.assignment.can_manage_assignment %}
|
||||||
|
@ -2,20 +2,23 @@
|
|||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load tags %}
|
{% load tags %}
|
||||||
|
|
||||||
{% if assignment.status != "fin" %}
|
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<div class="box">
|
<div class="well">
|
||||||
<p><b>{% trans "Status" %}:</b><br>
|
<!-- Status -->
|
||||||
|
<h4 class="first">{% trans "Status" %}:</h4>
|
||||||
{% trans assignment.get_status_display %}</p>
|
{% trans assignment.get_status_display %}</p>
|
||||||
{% if assignment.status == "sea" or assignment.status == "vot" %}
|
<h4>{% trans "Number of available posts" %}:</h4>
|
||||||
<p><b>{% trans "Number of available posts" %}:</b><br>
|
{{ assignment.posts }}
|
||||||
{{ assignment.posts }}</p>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<h1>{% trans "Election" %}: {{ assignment }}</h1>
|
<h1>{{ assignment }}
|
||||||
|
<br>
|
||||||
|
<small>
|
||||||
|
{% trans "Election" %}
|
||||||
|
</small>
|
||||||
|
<hr>
|
||||||
|
</h1>
|
||||||
{% if not assignment.candidates %}
|
{% if not assignment.candidates %}
|
||||||
<p>
|
<p>
|
||||||
<div class="text">{{ assignment.description|linebreaks }}</div>
|
<div class="text">{{ assignment.description|linebreaks }}</div>
|
||||||
|
@ -46,17 +46,21 @@ def model_url(object, link='view'):
|
|||||||
|
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def absolute_url(model, link='detail'):
|
def absolute_url(model, link=None):
|
||||||
"""
|
"""
|
||||||
Returns the absolute_url to a model. The 'link' argument decides which url
|
Returns the absolute_url to a model. The 'link' argument decides which url
|
||||||
will be returned. See get_absolute_url() in the model.
|
will be returned. See get_absolute_url() in the model.
|
||||||
|
|
||||||
Example: {{ motion|absolute_url:'delete' }}
|
Example: {{ motion|absolute_url:'delete' }}
|
||||||
"""
|
"""
|
||||||
|
if link is None:
|
||||||
|
url = model.get_absolute_url()
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
return model.get_absolute_url(link)
|
url = model.get_absolute_url(link)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return ''
|
url = ''
|
||||||
|
return url
|
||||||
|
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
|
@ -46,3 +46,6 @@ td.diff_header {
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
#motion-vote-results img {
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
@ -25,12 +25,12 @@
|
|||||||
{% for category in category_list %}
|
{% for category in category_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ category.prefix }}</td>
|
<td>{{ category.prefix }}</td>
|
||||||
<td><a href="{% model_url category 'update' %}">{{ category }}</a></td>
|
<td><a href="{{ category|absolute_url }}">{{ category }}</a></td>
|
||||||
<td><span style="width: 1px; white-space: nowrap;">
|
<td><span style="width: 1px; white-space: nowrap;">
|
||||||
<a href="{% model_url category 'update' %}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
<a href="{{ category|absolute_url:'update' }}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
||||||
class="btn btn-mini"><i class="icon-pencil"></i>
|
class="btn btn-mini"><i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{% model_url category 'delete' %}" rel="tooltip" data-original-title="{% trans 'Delete' %}"
|
<a href="{{ category|absolute_url:'delete' }}" rel="tooltip" data-original-title="{% trans 'Delete' %}"
|
||||||
class="btn btn-mini"><i class="icon-remove"></i>
|
class="btn btn-mini"><i class="icon-remove"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -22,16 +22,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</small>
|
</small>
|
||||||
<small class="pull-right">
|
<small class="pull-right">
|
||||||
<a href="{% url 'motion_list' %}" class="btn btn-mini"
|
<a href="{% url 'motion_list' %}" class="btn btn-mini">
|
||||||
rel="tooltip" data-original-title="{% trans 'Show item' %}">
|
|
||||||
<i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
<i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
||||||
<a href="{% url 'motion_detail_pdf' motion.id %}" class="btn btn-mini"
|
<a href="{% url 'motion_detail_pdf' motion.id %}" class="btn btn-mini"
|
||||||
rel="tooltip" data-original-title="{% trans 'Print motion as PDF' %}" target="_blank">
|
rel="tooltip" data-original-title="{% trans 'Print motion as PDF' %}" target="_blank">
|
||||||
<i class="icon-print"></i> PDF</a>
|
<i class="icon-print"></i> PDF</a>
|
||||||
<!-- activate projector -->
|
<!-- activate projector -->
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' motion.sid %}" class="activate_link btn {% if motion.active %}btn-primary{% endif %} btn-mini" rel="tooltip" data-original-title="{% trans 'Show motion' %}">
|
<a href="{{ motion|absolute_url:'projector' }}" class="activate_link btn {% if motion.is_active_slide %}btn-primary{% endif %} btn-mini" rel="tooltip" data-original-title="{% trans 'Show motion' %}">
|
||||||
<i class="icon-facetime-video {% if motion.active %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if motion.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.motion.can_manage_motion or perms.agenda.can_manage_agenda or allowed_actions.edit %}
|
{% if perms.motion.can_manage_motion or perms.agenda.can_manage_agenda or allowed_actions.edit %}
|
||||||
@ -42,7 +41,7 @@
|
|||||||
<ul class="dropdown-menu pull-right">
|
<ul class="dropdown-menu pull-right">
|
||||||
<!-- edit -->
|
<!-- edit -->
|
||||||
{% if allowed_actions.edit %}
|
{% if allowed_actions.edit %}
|
||||||
<li><a href="{{ motion|absolute_url:'edit' }}"><i class="icon-pencil"></i> {% trans 'Edit motion' %}</a></li>
|
<li><a href="{{ motion|absolute_url:'update' }}"><i class="icon-pencil"></i> {% trans 'Edit motion' %}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.motion.can_manage_motion %}
|
{% if perms.motion.can_manage_motion %}
|
||||||
<!-- delete -->
|
<!-- delete -->
|
||||||
@ -196,7 +195,7 @@
|
|||||||
{% if perms.motion.can_manage_motion or poll.has_votes %}
|
{% if perms.motion.can_manage_motion or poll.has_votes %}
|
||||||
<li><b>{{ poll.poll_number|ordinal|safe }} {% trans "vote" %}</b>
|
<li><b>{{ poll.poll_number|ordinal|safe }} {% trans "vote" %}</b>
|
||||||
{% if perms.motion.can_manage_motion %}
|
{% if perms.motion.can_manage_motion %}
|
||||||
<a class="btn btn-mini" href="{{ poll|absolute_url:'edit' }}" title="{% trans 'Edit Vote' %}"><i class="icon-pencil"></i></a>
|
<a class="btn btn-mini" href="{{ poll|absolute_url:'update' }}" title="{% trans 'Edit Vote' %}"><i class="icon-pencil"></i></a>
|
||||||
<a class="btn btn-mini" href="{{ poll|absolute_url:'delete' }}" title="{% trans 'Delete Vote' %}"><i class="icon-remove"></i></a>
|
<a class="btn btn-mini" href="{{ poll|absolute_url:'delete' }}" title="{% trans 'Delete Vote' %}"><i class="icon-remove"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br>
|
<br>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<small class="pull-right">
|
<small class="pull-right">
|
||||||
{% if motion %}
|
{% if motion %}
|
||||||
<a href="{% model_url motion 'view' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to motion" %}</a>
|
<a href="{{ motion|absolute_url }}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to motion" %}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'motion_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
<a href="{% url 'motion_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -48,9 +48,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for motion in motion_list %}
|
{% for motion in motion_list %}
|
||||||
<tr class="{% if motion.active %}activeline{% endif %}">
|
<tr class="{% if motion.is_active_slide %}activeline{% endif %}">
|
||||||
<td class="nobr">{{ motion.identifier|default:'' }}</td>
|
<td class="nobr">{{ motion.identifier|default:'' }}</td>
|
||||||
<td><a href="{% model_url motion %}">{{ motion }}</a></td>
|
<td><a href="{{ motion|absolute_url }}">{{ motion }}</a></td>
|
||||||
<td class="optional">{% if motion.category %}{{ motion.category }}{% else %}–{% endif %}</td>
|
<td class="optional">{% if motion.category %}{{ motion.category }}{% else %}–{% endif %}</td>
|
||||||
<td><span class="label label-info">{% trans motion.state.name %}</span></td>
|
<td><span class="label label-info">{% trans motion.state.name %}</span></td>
|
||||||
<td class="optional">
|
<td class="optional">
|
||||||
@ -74,15 +74,16 @@
|
|||||||
<td>
|
<td>
|
||||||
<span style="width: 1px; white-space: nowrap;">
|
<span style="width: 1px; white-space: nowrap;">
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' motion.sid %}" class="activate_link btn {% if motion.active %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
<a href="{{ motion|absolute_url:'projector' }}" class="activate_link btn {% if motion.is_active_slide %}btn-primary{% endif %} btn-mini"
|
||||||
<i class="icon-facetime-video {% if motion.active %}icon-white{% endif %}"></i>
|
rel="tooltip" data-original-title="{% trans 'Show motion' %}">
|
||||||
|
<i class="icon-facetime-video {% if motion.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.motion.can_manage_motion %}
|
{% if perms.motion.can_manage_motion %}
|
||||||
<a href="{% model_url motion 'edit' %}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
<a href="{{ motion|absolute_url:'update' }}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
||||||
class="btn btn-mini"><i class="icon-pencil"></i>
|
class="btn btn-mini"><i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{% model_url motion 'delete' %}" rel="tooltip" data-original-title="{% trans 'Delete' %}"
|
<a href="{{ motion|absolute_url:'delete' }}" rel="tooltip" data-original-title="{% trans 'Delete' %}"
|
||||||
class="btn btn-mini"><i class="icon-remove"></i>
|
class="btn btn-mini"><i class="icon-remove"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -2,16 +2,15 @@
|
|||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
|
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<div class="box">
|
<div class="well">
|
||||||
<!-- Status -->
|
<!-- Status -->
|
||||||
<p><b>{% trans "Status" %}:</b><br>
|
<h4 class="first">{% trans "Status" %}:</h4>
|
||||||
{% trans motion.state.name %}
|
{% trans motion.state.name %}
|
||||||
</p>
|
|
||||||
|
|
||||||
<!-- poll results -->
|
<!-- poll results -->
|
||||||
{% with motion.polls.all as polls %}
|
{% with motion.polls.all as polls %}
|
||||||
{% if polls.exists and polls.0.has_votes %}
|
{% if polls.exists and polls.0.has_votes %}
|
||||||
<p><b>{% trans "Poll result" %}:</b>
|
<h4>{% trans "Poll result" %}:</h4>
|
||||||
{% for poll in polls %}
|
{% for poll in polls %}
|
||||||
{% if poll.has_votes %}
|
{% if poll.has_votes %}
|
||||||
{% if polls|length > 1 %}
|
{% if polls|length > 1 %}
|
||||||
@ -33,31 +32,34 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
<!-- Submitter -->
|
<!-- Submitter -->
|
||||||
<p><b>{% trans "Submitter" %}:</b><br>
|
<h4>{% trans "Submitter" %}:</h4>
|
||||||
{% for submitter in motion.submitter.all %}
|
{% for submitter in motion.submitter.all %}
|
||||||
{{ submitter.person }}{% if not forloop.last %},<br> {% endif %}
|
{{ submitter.person }}{% if not forloop.last %},<br> {% endif %}
|
||||||
|
{% empty %}
|
||||||
|
-
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
|
||||||
|
<!-- Category -->
|
||||||
|
{% if motion.category %}
|
||||||
|
<h4>{% trans "Category" %}:</h4>
|
||||||
|
{{ motion.category }}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
{% if motion.identifier %}
|
{{ motion.active_version.title }}
|
||||||
{% trans "Motion" %} {{ motion.identifier }}
|
<br>
|
||||||
{% else %}
|
<small>
|
||||||
{% trans "Motion" %} [---]
|
{% trans "Motion" %} {{ motion.identifier|default:'' }}
|
||||||
{% endif %}
|
{% if motion.get_active_version.version_number > 1 %} | {% trans 'Version' %} {{ motion.active_version.version_number }}{% endif %}
|
||||||
<small>
|
</small>
|
||||||
{% if motion.last_version.version_number > 1 %}({% trans 'Version' %} {{ motion.active_version.version_number }}){% endif %}
|
<hr>
|
||||||
</small>
|
|
||||||
</h1>
|
</h1>
|
||||||
<b>{{ motion.active_version.title }}</b>
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<div class="text">{{ motion.active_version.text|safe }}</div>
|
<div class="text">{{ motion.active_version.text|safe }}</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<a href="{{ motion|absolute_url:'projector' }}" class="activate_link btn {% if motion.is_active_slide %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
<a href="{{ motion|absolute_url:'projector' }}" class="activate_link btn {% if motion.is_active_slide %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
||||||
<i class="icon-facetime-video {% if motion.is_active_slide %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if motion.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ motion|absolute_url:'edit' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
<a href="{{ motion|absolute_url:'update' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
||||||
<i class="icon-pencil"></i>
|
<i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ motion|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
<a href="{{ motion|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
||||||
|
@ -148,7 +148,7 @@ class GroupForm(forms.ModelForm, CssClassMixin):
|
|||||||
not Group.objects.exclude(pk=self.instance.pk).filter(
|
not Group.objects.exclude(pk=self.instance.pk).filter(
|
||||||
permissions__in=[get_protected_perm()],
|
permissions__in=[get_protected_perm()],
|
||||||
user__pk=self.request.user.pk).exists()):
|
user__pk=self.request.user.pk).exists()):
|
||||||
error_msg = _('You can not remove the permission to manage participants from the last group your are in.')
|
error_msg = _('You can not remove the permission to manage participants from the last group you are in.')
|
||||||
raise forms.ValidationError(error_msg)
|
raise forms.ValidationError(error_msg)
|
||||||
return super(GroupForm, self).clean(*args, **kwargs)
|
return super(GroupForm, self).clean(*args, **kwargs)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for group in groups %}
|
{% for group in groups %}
|
||||||
<tr class="{% if group.active %}activeline{% endif %}">
|
<tr class="{% if group.is_active_slide %}activeline{% endif %}">
|
||||||
<td class="nobr">{{ group.pk }}
|
<td class="nobr">{{ group.pk }}
|
||||||
{% if group.pk == 1 or group.pk == 2 %}
|
{% if group.pk == 1 or group.pk == 2 %}
|
||||||
<a title="{% blocktrans %}The groups 1 ('Anonymous') and 2 ('Registered') are fixed default groups which can not be deleted. Each created or imported participant is a member of group 2. Use custom groups to set additional permissions for a subset of participants.{% endblocktrans %}"><i class="icon-info-sign"></i></a>
|
<a title="{% blocktrans %}The groups 1 ('Anonymous') and 2 ('Registered') are fixed default groups which can not be deleted. Each created or imported participant is a member of group 2. Use custom groups to set additional permissions for a subset of participants.{% endblocktrans %}"><i class="icon-info-sign"></i></a>
|
||||||
@ -45,8 +45,10 @@
|
|||||||
<td>
|
<td>
|
||||||
<span style="width: 1px; white-space: nowrap;">
|
<span style="width: 1px; white-space: nowrap;">
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' group.sid %}" class="activate_link btn {% if group.active %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
<a href="{{ group|absolute_url:'projector' }}"
|
||||||
<i class="icon-facetime-video {% if group.active %}icon-white{% endif %}"></i>
|
class="activate_link btn {% if group.is_active_slide %}btn-primary{% endif %} btn-mini"
|
||||||
|
rel="tooltip" data-original-title="{% trans 'Show group' %}">
|
||||||
|
<i class="icon-facetime-video {% if group.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'user_group_edit' group.id %}" title="{% trans 'Edit' %}" class="btn btn-mini">
|
<a href="{% url 'user_group_edit' group.id %}" title="{% trans 'Edit' %}" class="btn btn-mini">
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="item_fullscreen">{% trans group.name %}
|
<h1>
|
||||||
<span>
|
{% trans group.name %}
|
||||||
<p><i>{{ group.user_set.all.count }} {% trans "participants" %}</i></p>
|
<hr>
|
||||||
</span>
|
</h1>
|
||||||
</div>
|
|
||||||
|
<i>{{ group.user_set.all.count }} {% trans "participants" %}</i>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
{% trans 'Delegate' %} (<code>3</code>), {% trans 'Staff' %} (<code>4</code>)
|
{% trans 'Delegate' %} (<code>3</code>), {% trans 'Staff' %} (<code>4</code>)
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{% trans 'At least first name or last name have to filled in. All other fields are optional and may be empty.' %}
|
{% trans 'At least first name or last name have to be filled in. All other fields are optional and may be empty.' %}
|
||||||
</li>
|
</li>
|
||||||
<li>{% trans 'The first line (header) is ignored' %}.</li>
|
<li>{% trans 'The first line (header) is ignored' %}.</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for user in users %}
|
{% for user in users %}
|
||||||
<tr class="{% if user.active %}activeline{% endif %}">
|
<tr class="{% if user.is_active_slide %}activeline{% endif %}">
|
||||||
<td>{% if perms.participant.can_manage_participant %}
|
<td>{% if perms.participant.can_manage_participant %}
|
||||||
{% if user != request_user %}
|
{% if user != request_user %}
|
||||||
<a href="{% url 'user_status_toggle' user.id %}"
|
<a href="{% url 'user_status_toggle' user.id %}"
|
||||||
@ -108,9 +108,9 @@
|
|||||||
<td>
|
<td>
|
||||||
<span style="width: 1px; white-space: nowrap;">
|
<span style="width: 1px; white-space: nowrap;">
|
||||||
{% if perms.projector.can_manage_projector %}
|
{% if perms.projector.can_manage_projector %}
|
||||||
<a href="{% url 'projector_activate_slide' user.sid %}" class="activate_link btn {% if user.active %}btn-primary{% endif %} btn-mini"
|
<a href="{{ user|absolute_url:'projector' }}" class="activate_link btn {% if user.is_active_slide %}btn-primary{% endif %} btn-mini"
|
||||||
rel="tooltip" data-original-title="{% trans 'Show participant' %}">
|
rel="tooltip" data-original-title="{% trans 'Show participant' %}">
|
||||||
<i class="icon-facetime-video {% if user.active %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if user.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'user_edit' user.id %}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
<a href="{% url 'user_edit' user.id %}" rel="tooltip" data-original-title="{% trans 'Edit' %}"
|
||||||
|
@ -1,15 +1,19 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div class="item_fullscreen">{{ shown_user }}
|
|
||||||
<span>
|
<h1>
|
||||||
{% if shown_user.committee %}
|
{{ shown_user.clean_name }}<br>
|
||||||
|
<small>{{ shown_user.structure_level }}</small>
|
||||||
|
<hr>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{% if shown_user.committee %}
|
||||||
<p>{{ shown_user.committee }}</p>
|
<p>{{ shown_user.committee }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>
|
|
||||||
|
<p>
|
||||||
{% if shown_user.groups.all %}
|
{% if shown_user.groups.all %}
|
||||||
{% for group in shown_user.groups.all %}
|
{% for group in shown_user.groups.all %}
|
||||||
{% trans group.name %}{% if not forloop.last %}, {% endif %}
|
{% trans group.name %}{% if not forloop.last %}<br> {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<a href="{{ user|absolute_url:'projector' }}" class="activate_link btn {% if user.is_active_slide %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
<a href="{{ user|absolute_url:'projector' }}" class="activate_link btn {% if user.is_active_slide %}btn-primary{% endif %} btn-mini" title="{% trans 'Show' %}">
|
||||||
<i class="icon-facetime-video {% if user.is_active_slide %}icon-white{% endif %}"></i>
|
<i class="icon-facetime-video {% if user.is_active_slide %}icon-white{% endif %}"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ user|absolute_url:'edit' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
<a href="{{ user|absolute_url:'update' }}" title="{% trans 'Edit' %}" class="btn btn-mini right">
|
||||||
<i class="icon-pencil"></i>
|
<i class="icon-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ user|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
<a href="{{ user|absolute_url:'projector_preview' }}" title="{% trans 'Preview' %}" class="btn btn-mini right">
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
@ -6,50 +6,32 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
body{
|
body{
|
||||||
margin : 0px;
|
font-size: 20px !important;
|
||||||
padding-top: 0px;
|
line-height: 24px !important;
|
||||||
padding-left : 0px;
|
|
||||||
font-family: 'Lucida Grande',"Trebuchet MS",Verdana,sans-serif;
|
|
||||||
font-size : 20px;
|
|
||||||
background-color: #FAFAFB;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** HEADER ***/
|
/*** HEADER ***/
|
||||||
#header {
|
#header {
|
||||||
position:relative;
|
background-color: #333333;
|
||||||
background:url("../img/presentation-header-bg.png") repeat-x scroll center top #3D3020;
|
background-image: -moz-linear-gradient(top, #444444, #222222);
|
||||||
height:100px;
|
background-image: -ms-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
|
||||||
|
background-image: -webkit-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: -o-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: linear-gradient(top, #444444, #222222);
|
||||||
|
box-shadow: 0 0 7px rgba(0,0,0,0.6);
|
||||||
|
height: 70px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 7px 20px 0;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
#logo {
|
#logo {
|
||||||
position:absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 8px;
|
||||||
left: 100px;
|
left: 75px;
|
||||||
}
|
|
||||||
.event_name {
|
|
||||||
position:absolute;
|
|
||||||
text-align:right;
|
|
||||||
top: 10px;
|
|
||||||
right: 40px;
|
|
||||||
font-size:42px;
|
|
||||||
font-weight:bold;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
.event_description {
|
|
||||||
position:absolute;
|
|
||||||
text-align:right;
|
|
||||||
top:60px;
|
|
||||||
right:40px;
|
|
||||||
font-size:17px;
|
|
||||||
color: #cfcfcf;
|
|
||||||
}
|
|
||||||
#ajaxswitcher {
|
|
||||||
height: 20px;
|
|
||||||
padding: 5px;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 100;
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#currentTime {
|
#currentTime {
|
||||||
border:0 solid #000000;
|
border:0 solid #000000;
|
||||||
font-size:24px;
|
font-size:24px;
|
||||||
@ -58,12 +40,82 @@ body{
|
|||||||
top:110px;
|
top:110px;
|
||||||
right:40px;
|
right:40px;
|
||||||
padding-left:30px;
|
padding-left:30px;
|
||||||
background: url(../img/glyphicons_054_clock_big.png) no-repeat scroll 0px 4px;
|
background: url(../img/glyphicons_054_clock_big.png) no-repeat scroll 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#currentTime.ajax_error {
|
/*** FOOTER ***/
|
||||||
border-bottom: 4px solid red;
|
#footer {
|
||||||
|
color: #999999;
|
||||||
|
font-size: 16px;
|
||||||
|
clear: both;
|
||||||
|
margin-top: 50px;
|
||||||
|
position: fixed;
|
||||||
|
left: 0px;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0px;
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 10px;
|
||||||
|
background-color: #333333;
|
||||||
|
background-image: -moz-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: -ms-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
|
||||||
|
background-image: -webkit-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: -o-linear-gradient(top, #444444, #222222);
|
||||||
|
background-image: linear-gradient(top, #444444, #222222);
|
||||||
|
box-shadow: 0 0 7px rgba(0,0,0,0.6);
|
||||||
|
border-top: 1px solid #999999;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.event_name_description {
|
||||||
|
left: 75px;
|
||||||
|
float: left;
|
||||||
|
position: absolute;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
.event_date_location {
|
||||||
|
text-align: right;
|
||||||
|
right: 40px;
|
||||||
|
position: absolute;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** CONTENT ***/
|
||||||
|
#content {
|
||||||
|
position: absolute;
|
||||||
|
left: 75px;
|
||||||
|
top: 150px;
|
||||||
|
right: 40px;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 45px !important;
|
||||||
|
margin-bottom: 40px !important;
|
||||||
|
}
|
||||||
|
#sidebar {
|
||||||
|
width: 255px;
|
||||||
|
float: right;
|
||||||
|
margin: 0 0 20px 10px;
|
||||||
|
}
|
||||||
|
.well h4 {
|
||||||
|
margin: 20px 0 2px 0;
|
||||||
|
}
|
||||||
|
.well h4 .first {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.well .results {
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
.well .results hr {
|
||||||
|
margin: 5px 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
margin: 10px 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*** OVERLAY ***/
|
||||||
#overlay_transparent {
|
#overlay_transparent {
|
||||||
background-color: #777777;
|
background-color: #777777;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
@ -74,71 +126,16 @@ body{
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** CONTENT ***/
|
|
||||||
#contentwrapper {
|
|
||||||
position:absolute;
|
|
||||||
left:100px;
|
|
||||||
top:150px;
|
|
||||||
right:40px;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
#scrollcontentcontainer {
|
|
||||||
position: relative;
|
|
||||||
margin-top: -11px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.title
|
|
||||||
{
|
|
||||||
position: absolute;
|
|
||||||
top: 58px;
|
|
||||||
left: 100px;
|
|
||||||
font-size: 30px;
|
|
||||||
letter-spacing:4px;
|
|
||||||
color: #FAFAFB;
|
|
||||||
}
|
|
||||||
#sidebar {
|
|
||||||
width: 255px;
|
|
||||||
float: right;
|
|
||||||
margin: 0 0 20px 10px;
|
|
||||||
}
|
|
||||||
.box {
|
|
||||||
border:1px solid #808080;
|
|
||||||
padding: 0px 10px 10px 10px;
|
|
||||||
}
|
|
||||||
.box h4 {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
margin-top: 10px;
|
|
||||||
color: #333333;
|
|
||||||
font-weight: normal;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box .results {
|
/*** Agenda Items ***/
|
||||||
font-size: 120%;
|
.itemlist
|
||||||
margin-top: -12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** Items *** /
|
|
||||||
/* item title centered */
|
|
||||||
.item_fullscreen
|
|
||||||
{
|
{
|
||||||
position: relative;
|
margin-top: 20px;
|
||||||
top: 110px;
|
|
||||||
right:30px;
|
|
||||||
font-size:230%;
|
|
||||||
font-weight:bold;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
.item_fullscreen span
|
|
||||||
{
|
|
||||||
font-size: 50%; font-weight:normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* items in a list*/
|
|
||||||
.itemlist li
|
.itemlist li
|
||||||
{
|
{
|
||||||
font-size:130%;
|
font-size:130%;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 20px;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
.itemlist .closed
|
.itemlist .closed
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{LANGUAGE_CODE}}">
|
<html lang="{{LANGUAGE_CODE}}">
|
||||||
<head>
|
<head>
|
||||||
<link type="text/css" rel="stylesheet" href="{% static 'styles/projector.css' %}">
|
<link href="{% static 'styles/projector.css' %}" type="text/css" rel="stylesheet">
|
||||||
<link rel="shortcut icon" href="{% static 'img/favicon.png' %}" type="image/png" />
|
<link href="{% static 'styles/bootstrap.min.css' %}" type="text/css" rel="stylesheet">
|
||||||
<title>{{ 'event_name'|get_config }} – {% trans 'Projector' %}</title>
|
<link href="{% static 'img/favicon.png' %}" type="image/png" rel="shortcut icon">
|
||||||
|
<title>{% trans 'Projector' %} – {{ 'event_name'|get_config }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<div id="logo"><img src="{% static 'img/logo-projector.png' %}"></div>
|
<a title="Startseite" id="logo" href="/"><img alt="Logo" src="/static/img/logo.png"></a>
|
||||||
<div class="event_name">{% get_config 'event_name' %}</div>
|
<div class="pull-right"></div>
|
||||||
<div class="event_description">{% get_config 'event_description' %}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="overlays">
|
<div id="overlays">
|
||||||
@ -23,6 +23,17 @@
|
|||||||
<div id="content" {% if reload %}class="reload"{% endif %}>
|
<div id="content" {% if reload %}class="reload"{% endif %}>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
<div class="event_name_description">
|
||||||
|
{{ 'event_name'|get_config }} | {{ 'event_description'|get_config }}
|
||||||
|
</div>
|
||||||
|
<div class="event_date_location">
|
||||||
|
{% if 'event_date'|get_config %}
|
||||||
|
{{ 'event_date'|get_config }}{% if 'event_location'|get_config %}, {{ 'event_location'|get_config }}{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<script type="text/javascript" src="{% static 'javascript/jquery.min.js' %}"></script>
|
<script type="text/javascript" src="{% static 'javascript/jquery.min.js' %}"></script>
|
||||||
<script type="text/javascript" src="{% static 'javascript/projector.js' %}"></script>
|
<script type="text/javascript" src="{% static 'javascript/projector.js' %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{% load tags %}
|
{% load tags %}
|
||||||
|
|
||||||
<div class="item_fullscreen">{% get_config 'welcome_title' %}</div>
|
<h1>{{ 'welcome_title'|get_config }}</h1>
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
#overlay_countdown_inner {
|
#overlay_countdown_inner {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 40px;
|
right: 40px;
|
||||||
|
height: 37px;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
padding: 20px 50px;
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom-left-radius: 0.5em;
|
border-bottom-left-radius: 0.5em;
|
||||||
border-bottom-right-radius: 0.5em;
|
border-bottom-right-radius: 0.5em;
|
||||||
background: #DDD9D9;
|
|
||||||
padding: 0 1em;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="overlay_countdown_inner">
|
<div id="overlay_countdown_inner" class="well">
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% if slide.text %}
|
<h1>{{ slide.title }}</h1>
|
||||||
<h1>{{ slide.title }}</h1>
|
|
||||||
{% else %}
|
|
||||||
<div class="item_fullscreen">{{ slide.title }}</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
{% if slide.text %}
|
{% if slide.text %}
|
||||||
<span>{{ slide.text|safe|linebreaks }}</span>
|
<span>{{ slide.text|safe|linebreaks }}</span>
|
||||||
|
@ -121,7 +121,7 @@ class LockoutProtection(TestCase):
|
|||||||
response=response,
|
response=response,
|
||||||
form='form',
|
form='form',
|
||||||
field=None,
|
field=None,
|
||||||
errors='You can not remove the permission to manage participants from the last group your are in.')
|
errors='You can not remove the permission to manage participants from the last group you are in.')
|
||||||
|
|
||||||
|
|
||||||
class TestUserSettings(TestCase):
|
class TestUserSettings(TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user