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><a href="{% url 'organizations_new' %}" style="color: white"
20 {% if request.path == '/' %}
21 data-toggle="tutorial" data-tutorial="1" data-placement="bottom"
22 data-content='{% trans "Create an organization here. Organizations help manage team's work." %}'
24 >{% trans "New organization" %}</a></li>
25 <li><a href="{% url 'catalogue_create_missing' %}" style="color: white"
26 {% if request.path == '/' %}
27 data-toggle="tutorial" data-tutorial="2" data-placement="bottom"
28 data-content="{% trans 'Start editing a new resource.' %}"
30 >{% trans "New resource" %}</a></li>
32 {% if user.is_authenticated %}
33 <li><a href="{% url 'catalogue_user' %}" style="color: white">{% trans "My resources" %}</a></li>
37 #main-navbar .dropdown.open > a {
41 <a href="#" class="dropdown-toggle" type="button" data-toggle="dropdown" style="color: white">
43 <span class="caret"></span>
45 <ul class="dropdown-menu" style="">
46 {% if user.membership_set.all.exists %}
47 <li role="presentation" class="dropdown-header">{% trans "My organizations" %}:</li>
48 {% for membership in user.membership_set.all %}
49 <li><a href="{% url 'organizations_main' membership.organization.pk %}">{{ membership.organization }}</a></li>
52 <li role="presentation" class="dropdown-header">{% trans "You are not a member of any organizations" %}</li>
54 <li><a href="{% url 'organizations_new' %}">{% trans "New organization" %}</a></li>
55 <li role="presentation" class="divider"></li>
56 <li><a href="{% url 'organizations_user_edit' %}">{% trans "Edit my data" %}</a></li>
57 {% if user.is_staff %}
58 <li><a href="{% url 'admin:index' %}">{% trans "Admin" %}</a></li>
60 <li><a href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
67 {% url "login" as login_url %}
68 {% ifnotequal login_url request.path %}
70 data-toggle="tutorial" data-tutorial="0" data-placement="bottom"
71 data-content="{% trans 'First, you will need an account.' %}"
73 <button class="btn btn-default navbar-btn dropdown-toggle" type="button" data-toggle="dropdown" style=""
75 {% trans "Log in / Register" %}
77 <div class="dropdown-menu" style="padding:0;margin-top:-5px; border:none;box-shadow:none; min-width:240px">
78 <div class="panel panel-default" style="color: #333;">
79 <div class="panel-heading">
80 <h3 class="panel-title">{% trans "Log in / Register" %}</h3>
82 <div class="panel-body">
83 <form method="POST" action="{% url 'login' %}">
86 {% trans "E-mail" %}</label>
87 <input name="username" class="form-control" type="email">
89 <label for="password">
90 {% trans "Password" %}</label>
91 <input name="password" class="form-control" type="password">
94 <!--input type="checkbox" name="keep">
95 <label for="keep">Keep me logged in</label-->
97 <div><button class="btn btn-default">
102 <p><a href="{% url 'password_reset' %}">{% trans "I forgot my password" %}</a></p>
104 <p style="margin-bottom:1em">{% trans "<strong>Register now</strong> to start editing your own materials." %}</p>
105 <a class="btn btn-default" href="{% url 'register' %}">{% trans "Register" %}</a>