1969416e64
Also added the derective osPerms to check if the current user has permissions. Removed old Django views and urls for user. Created utils.views.APIView which should be used instead of the AjaxView. Fixes: #1470 Fixes: #1454
112 lines
5.1 KiB
HTML
112 lines
5.1 KiB
HTML
<!DOCTYPE html>
|
||
<!--[if lt IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||
<!--[if IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||
<!--[if IE 8]> <html lang="en" ng-app="myApp" class="no-js lt-ie9"> <![endif]-->
|
||
<!--[if gt IE 8]><!--> <html lang="en" ng-app="OpenSlidesApp" class="no-js"> <!--<![endif]-->
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<base href="/">
|
||
<title>OpenSlides</title>
|
||
<meta name="description" content="">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<link rel="stylesheet" href="static/css/openslides-libs.css">
|
||
<link rel="stylesheet" href="static/css/app.css">
|
||
<script src="static/js/openslides-libs.js"></script>
|
||
</head>
|
||
<body>
|
||
<!-- Navbar -->
|
||
<nav id="header" class="navbar">
|
||
<div class="container-fluid">
|
||
<div class="navbar-header">
|
||
<a href="/" class="logo"><img src="/static/img/logo.png" alt="OpenSlides" /></a>
|
||
<span class="title optional">{{ config('event_name') }}</span>
|
||
</div>
|
||
<div class="navbar-right" ng-controller="userMenu">
|
||
<!-- login/logout button -->
|
||
<div class="btn-group">
|
||
<div ng-if="operator.isAuthenticated()">
|
||
<a href="#" data-toggle="dropdown" class="btn btn-default dropdown-toggle">
|
||
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
|
||
<span class="optional-small">{{ operator.user.get_short_name() }}</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>
|
||
{{ gettext("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 ng-click="logout()">
|
||
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
|
||
Logout
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div ng-if="!operator.isAuthenticated()">
|
||
<a href="#" ng-click="showLoginForm = true" class="btn btn-default">
|
||
<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>
|
||
{{ gettext("Login") }}
|
||
</a>
|
||
<div ng-if="showLoginForm">
|
||
<form>
|
||
username: <input type="text" ng-model="username"><br>
|
||
password: <input type="password" ng-model="password"><br>
|
||
<input type="submit" ng-click="login(username, password)" value="Save" />
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
<!-- 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 ui-view></div>
|
||
</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-->
|
||
|
||
|
||
<script src="static/js/app.js"></script>
|
||
<script src="static/js/core.js"></script>
|
||
<script src="static/js/agenda/agenda.js"></script>
|
||
<script src="static/js/assignments/assignments.js"></script>
|
||
<script src="static/js/users/users.js"></script>
|
||
</body>
|
||
</html>
|