3 <ul class="nav navbar-nav navbar-right">
6 <li><a style="color: white">
7 <form action="{% url 'django.views.i18n.set_language' %}" method="post" style="display: inline">
9 <input type="hidden" name="language" value="en" /><button type="submit" style="border: 0; background: none">en</button></form> |
10 <form action="{% url 'django.views.i18n.set_language' %}" method="post" style="display: inline">
12 <input type="hidden" name="language" value="pl" /><button type="submit" style="border: 0; background: none">pl</button></form> |
16 <li><a href="/platform/" style="color: white">{% trans "About" %}</a></li>
17 <li><a href="/appyourschool/" style="color: white">{% trans "App Your School" %}</a></li>
18 {#<li><a href="/competition/" style="color: white">{% trans "Competition" %}</a></li>#}
19 <li class="dropdown" {% if request.path == '/' %}
20 data-toggle="tutorial" data-tutorial="1" data-placement="bottom"
21 data-content='{% trans "Organizations help manage team’s work. You can create a new organization and view all organizations." %}'
23 <a href="#" class="dropdown-toggle" type="button" data-toggle="dropdown" style="color: white">
24 {% trans "Organizations" %}
25 <span class="caret"></span>
27 <ul class="dropdown-menu">
28 <li><a href="{% url 'organizations_new' %}">{% trans "New organization" %}</a></li>
29 <li><a href="{% url 'organizations' %}">{% trans "All organizations" %}</a></li>
30 <li role="presentation" class="divider"></li>
31 {% if user.membership_set.all.exists %}
32 <li role="presentation" class="dropdown-header">{% trans "My organizations" %}:</li>
33 {% for membership in user.membership_set.all %}
34 <li><a href="{% url 'organizations_main' membership.organization.pk %}">{{ membership.organization }}</a></li>
37 <li role="presentation" class="dropdown-header">{% trans "You are not a member of any organizations" %}</li>
41 <li class="dropdown" {% if request.path == '/' %}
42 data-toggle="tutorial" data-tutorial="2" data-placement="bottom"
43 data-content='{% trans "Here you can start editing a new resource or view your resources and all published resources." %}'
45 <a href="#" class="dropdown-toggle" type="button" data-toggle="dropdown" style="color: white">
46 {% trans "Resources" %}
47 <span class="caret"></span>
49 <ul class="dropdown-menu">
50 <li><a href="{% url 'catalogue_create_missing' %}">{% trans "New resource" %}</a></li>
51 {% if user.is_authenticated %}
52 <li><a href="{% url 'catalogue_user' %}">{% trans "My resources" %}</a></li>
54 <li><a href="{% url 'catalogue_finished' %}">{% trans "Finished resources" %}</a></li>
55 <li><a href="{% url 'catalogue_upcoming' %}">{% trans "Upcoming resources" %}</a></li>
60 {% if user.is_authenticated %}
64 #main-navbar .dropdown.open > a {
68 <a href="#" class="dropdown-toggle" type="button" data-toggle="dropdown" style="color: white">
70 <span class="caret"></span>
72 <ul class="dropdown-menu" style="">
73 <li><a href="{% url 'organizations_user_edit' %}">{% trans "Edit my data" %}</a></li>
74 {% if user.is_staff %}
75 <li><a href="{% url 'admin:index' %}">{% trans "Admin" %}</a></li>
77 <li><a href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
83 {% url "login" as login_url %}
84 {% ifnotequal login_url request.path %}
86 data-toggle="tutorial" data-tutorial="0" data-placement="bottom"
87 data-content="{% trans 'First, you will need an account.' %}"
89 <button class="btn btn-default navbar-btn dropdown-toggle" type="button" data-toggle="dropdown" style=""
91 {% trans "Log in / Register" %}
93 <div class="dropdown-menu" style="padding:0;margin-top:-5px; border:none;box-shadow:none; min-width:240px">
94 <div class="panel panel-default" style="color: #333;">
95 <div class="panel-heading">
96 <h3 class="panel-title">{% trans "Log in / Register" %}</h3>
98 <div class="panel-body">
99 <form method="POST" action="{% url 'login' %}">
102 {% trans "E-mail" %}</label>
103 <input name="username" class="form-control" type="email">
105 <label for="password">
106 {% trans "Password" %}</label>
107 <input name="password" class="form-control" type="password">
110 <!--input type="checkbox" name="keep">
111 <label for="keep">Keep me logged in</label-->
113 <div><button class="btn btn-default">
118 <p><a href="{% url 'password_reset' %}">{% trans "I forgot my password" %}</a></p>
120 <p style="margin-bottom:1em">{% trans "<strong>Register now</strong> to start editing your own materials." %}</p>
121 <a class="btn btn-default" href="{% url 'register' %}">{% trans "Register" %}</a>