163 lines
7.7 KiB
HTML
163 lines
7.7 KiB
HTML
{% load tags %}
|
||
{% load i18n %}
|
||
{% load staticfiles %}
|
||
|
||
<!DOCTYPE html>
|
||
<html lang="{{ LANGUAGE_CODE }}">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>{% block title %}{% get_config 'event_name' %}{% endblock %}</title>
|
||
<!-- styles -->
|
||
<link href="{% static 'css/openslides-libs.css' %}" type="text/css" rel="stylesheet" />
|
||
<link href="{% static 'css/jquery-ui/jquery-ui.custom.min.css'%}" type="text/css" rel="stylesheet" />
|
||
<link href="{% static 'css/base.css' %}" type="text/css" rel="stylesheet" />
|
||
<link href="{% static 'css/chatbox.css' %}" type="text/css" rel="stylesheet" />
|
||
<link href="{% static 'img/favicon.png' %}" type="image/png" rel="shortcut icon" />
|
||
<link href="{% static 'css/jquery.bsmselect.css' %}" type="text/css" rel="stylesheet" />
|
||
{% for stylefile in extra_stylefiles %}
|
||
<link href="{% static stylefile %}" type="text/css" rel="stylesheet" />
|
||
{% endfor %}
|
||
{% block header %}{% endblock %}
|
||
</head>
|
||
<body>
|
||
|
||
<!-- Navbar -->
|
||
<nav id="header" class="navbar">
|
||
<div class="container-fluid">
|
||
<div class="navbar-header">
|
||
<a href="/" class="logo" title="{% trans 'Home' %}"><img src="{% static 'img/logo.png' %}" alt="{% trans 'Logo' %}" /></a>
|
||
<span class="title optional">{% get_config 'event_name' %}</span>
|
||
</div>
|
||
{% block loginbutton %}
|
||
<div class="navbar-right">
|
||
<!-- Chatbox button -->
|
||
{% if chat_messages != None %}
|
||
<button class="btn btn-default" id="chatboxbutton" data-toggle="button">
|
||
<span class="glyphicon glyphicon-comment" aria-hidden="true"></span>
|
||
<span class="optional-small">{% trans 'Chat' %}</span>
|
||
<span id="newchatmessage"></span>
|
||
</button>
|
||
{% endif %}
|
||
|
||
<!-- login/logout button -->
|
||
<div class="btn-group">
|
||
{% if user.is_authenticated %}
|
||
<a href="#" data-toggle="dropdown" class="btn btn-default dropdown-toggle">
|
||
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
|
||
<span class="optional-small">{{ user.username }}</span>
|
||
<span class="caret"></span>
|
||
</a>
|
||
<ul class="dropdown-menu pull-right">
|
||
<li><a href="{% url 'user_settings' %}">
|
||
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
|
||
{% trans "Edit profile" %}</a></li>
|
||
<li><a href="{% url 'password_change' %}">
|
||
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
|
||
{% trans "Change password" %}</a></li>
|
||
<li class="divider"></li>
|
||
<li><a href="{% url 'user_logout' %}">
|
||
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
|
||
{% trans "Logout" %}</a></li>
|
||
</ul>
|
||
{% else %}
|
||
<a href="" class="btn btn-default">
|
||
<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>
|
||
{% trans "Login" %}</a>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Search field -->
|
||
<form id="searchform" class="navbar-form navbar-right" action="{% url 'core_search' %}" method="get">
|
||
<div class="form-group input-group">
|
||
<input type="text" id="id_q" name="q" class="form-control" placeholder="{% trans 'Search' %}">
|
||
<span class="input-group-btn">
|
||
<button type="submit" class="btn btn-default">
|
||
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
|
||
</button>
|
||
</span>
|
||
</div>
|
||
</form>
|
||
{% endblock %}
|
||
</div>
|
||
</nav>
|
||
|
||
|
||
{% block body %}
|
||
<!-- Container -->
|
||
<div class="container-fluid" id="container">
|
||
<div class="row">
|
||
|
||
<!-- Sidebar navigation (main menu) -->
|
||
<div class="col-md-2 leftmenu lefticon">
|
||
<ul>
|
||
{% for entry in main_menu_entries %}
|
||
<li{% if entry.is_active %} class="active"{% endif %}>
|
||
<a href="{{ entry.get_url }}" class="tooltip-right">
|
||
<!--TODO-->
|
||
<span class="glyphicon {{ entry.get_icon_css_class }}" aria-hidden="true"></span>
|
||
<span class="text">{{ entry }}</span>
|
||
</a>
|
||
</li>
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
|
||
<!-- Content -->
|
||
<div id="content" class="col-md-10">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<div id="notifications">
|
||
<div id="dummy-notification" class="notification" style="display:none">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
</div>
|
||
{% for message in messages %}
|
||
<div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
{{ message|safe }}
|
||
</div>
|
||
{% endfor %}
|
||
</div>
|
||
{% block content %}{% endblock %}
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<footer>
|
||
<small>
|
||
© Copyright 2011–2015 | Powered by <a href="http://openslides.org" target="_blank">OpenSlides</a> | <a href="{% url 'core_version' %}">Version</a>
|
||
</small>
|
||
</footer>
|
||
</div><!--/#content-->
|
||
|
||
</div><!--/.row-->
|
||
</div><!--/#container-->
|
||
{% endblock %}<!--/body-->
|
||
|
||
{% include 'core/chatbox.html' %}
|
||
|
||
<!-- JavaScript (Placed at the end of the document so the pages load faster) -->
|
||
<script src="{% static 'js/openslides-libs.js' %}" type="text/javascript"></script>
|
||
<script src="{% static 'js/jquery/jquery-ui.custom.min.js' %}" type="text/javascript"></script>
|
||
<script src="{% static 'js/sockjs-0.3.min.js' %}" type="text/javascript"></script>
|
||
<script src="{% static 'js/utils.js' %}" type="text/javascript"></script>
|
||
<script src="{% static 'js/chatbox.js' %}" type="text/javascript"></script>
|
||
<script type="text/javascript" src="{% static 'js/jquery/jquery.bsmselect.js' %}"></script>
|
||
<script type="text/javascript">
|
||
// use jquery-bsmselect for all <select multiple> form elements
|
||
$("select[multiple]:not(.dont_use_bsmselect)").bsmSelect({
|
||
removeLabel: '<sup><b>X</b></sup>',
|
||
containerClass: 'bsmContainer',
|
||
listClass: 'bsmList-custom',
|
||
listItemClass: 'bsmListItem-custom',
|
||
listItemLabelClass: 'bsmListItemLabel-custom',
|
||
removeClass: 'bsmListItemRemove-custom'
|
||
});
|
||
</script>
|
||
{% for javascript in extra_javascript %}
|
||
<script src="{% static javascript %}" type="text/javascript"></script>
|
||
{% endfor %}
|
||
{% block javascript %}{% endblock %}
|
||
</body>
|
||
</html>
|