--- /dev/null
+{% extends "admin/base.html" %}
+{% load mezzanine_tags i18n staticfiles %}
+
+{% block title %}{{ title }} | Mezzanine{% endblock %}
+
+{% block extrahead %}
+<link rel="stylesheet" href="{% static "mezzanine/css/admin/global.css" %}">
+<style>
+ /* These are set in PageAdmin's view methods, and mezzanine.utils.admin.SingletonAdmin */
+ {% if hide_delete_link or singleton %}.submit-row .deletelink {display:none !important;}{% endif %}
+ {% if hide_slug_field %}.slug {display:none !important;}{% endif %}
+ {% if singleton %}.change-view-save-another {display:none !important;}{% endif %}
+</style>
+<script>
+ {% url "static_proxy" as static_proxy_url %}
+ {% url "fb_browse" as fb_browse_url %}
+ {% url "displayable_links_js" as link_list_url %}
+ {% url "admin:index" as admin_index_url %}
+ {% get_current_language as LANGUAGE_CODE %}
+ window.__home_link = '<a href="{% url "home" %}">{% trans "View site" %}</a>';
+ window.__csrf_token = '{{ csrf_token }}';
+ window.__admin_keywords_submit_url = '{% url "admin_keywords_submit" %}';
+ window.__filebrowser_url = '{{ fb_browse_url }}';
+ window.__link_list_url = '{{ link_list_url }}';
+ window.__tinymce_css = '{% static "mezzanine/css/tinymce.css" %}';
+ window.__admin_url = '{{ admin_index_url }}';
+ window.__static_proxy = '{{ static_proxy_url }}';
+ window.__admin_media_prefix__ = '{% static "admin" %}/';
+ window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
+ window.__admin_menu_collapsed = {{ settings.ADMIN_MENU_COLLAPSED|lower }};
+ window.__language_code = '{{ LANGUAGE_CODE }}';
+</script>
+c
+{% if not settings.GRAPPELLI_INSTALLED %}
+<script src="{% static "mezzanine/js/"|add:settings.JQUERY_FILENAME %}"></script>
+{% endif %}
+
+<script>
+jQuery(function($) {
+ $('.admin-title').click(function() {location = window.__admin_url;});
+ // This line can be removed after a decent amount of time has passed since
+ // https://github.com/stephenmcd/grappelli-safe/pull/56/files occurring.
+ $("#id_sitepermissions-__prefix__-sites").parent().parent().parent().remove();
+});
+</script>
+
+{% endblock %}
+
+{% block rtl_styles %}
+{{ block.super }}
+<link rel="stylesheet" type="text/css" href="{% static "mezzanine/css/admin/rtl.css" %}" />
+{% endblock %}
+
+{% block before_content %}
+{% if user.is_staff and not is_popup and not request.GET.pop %}
+{% admin_dropdown_menu %}
+{% endif %}
+{% endblock %}
+
+{% block footer %}
+{% if form.this_is_the_login_form %}
+ <script src="{% static "mezzanine/js/admin/login.js" %}"></script>
+{% else %}
+ {% if user.is_staff %}
+ {% if not is_popup and not request.GET.pop %}
+ <link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
+ <script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
+ <script src="{% static "mezzanine/js/admin/navigation.js" %}"></script>
+
+ {% endif %}
+ <script src="{% static "mezzanine/js/admin/ajax_csrf.js" %}"></script>
+ {% if settings.GRAPPELLI_INSTALLED %}
+ <script src="{% static "mezzanine/js/admin/collapse_backport.js" %}"></script>
+ {% endif %}
+ {% endif %}
+{% endif %}
+{% endblock %}
--- /dev/null
+{% load i18n %}
+
+{% if app_list %}
+<div class="group-collapsible">
+ {% for app in dashboard_app_list %}
+ <div class="module" id="app_{{ app.name|lower }}">
+ <table>
+ <caption>{% trans app.name %}</caption>
+ {% for model in app.models %}
+ <tr class="model-{{ model.object_name|lower }}">
+ {% if model.perms.change or model.perms.custom %}
+ <th scope="row" width="100%"><a
+ href="{{ model.admin_url }}">{{ model.name }}</a></th>
+ {% else %}
+ <th scope="row" width="100%">{{ model.name }}</th>
+ {% endif %}
+
+ {% if model.perms.add %}
+ <td><a href="{{ model.add_url }}"
+ class="addlink">{% trans 'Add' %}</a></td>
+ {% else %}
+ <td> </td>
+ {% endif %}
+
+ {% if model.perms.change %}
+ <td><a href="{{ model.admin_url }}"
+ class="changelink">{% trans 'Change' %}</a></td>
+ {% else %}
+ <td> </td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ {% endfor %}
+</div>
+{% endif %}
--- /dev/null
+{% load pages_tags i18n %}
+
+<script type="text/javascript">
+jQuery(function($) {
+ $('.addlist').change(function() {
+ var addUrl = this[this.selectedIndex].value;
+ // If the browser's back button is hit from the add interface,
+ // the browser may maintain the state of the select list in the
+ // list interface, in which case the previously selected option
+ // will still be selected. This would mean the first option
+ // (eg "Add ..."") could be selected, which contains no URL to
+ // redirect to, so we guard against that, also set selectedIndex
+ // back to zero, to also protect against this scenario.
+ if (addUrl) {
+ location.href = addUrl;
+ this.selectedIndex = 0;
+ }
+ });
+});
+</script>
+
+<div id="addlist-primary">
+ <select class="addlist">
+ <option value="">{% trans "Add" %} ...</option>
+ {% for model in content_models %}
+ {% set_model_permissions model %}
+ {% if model.perms.add %}
+ <option value="{{ model.add_url }}">{{ model.meta_verbose_name|capfirst }}</option>
+ {% endif %}
+ {% endfor %}
+ </select>
+</div>
--- /dev/null
+{% load i18n mezzanine_tags %}
+<div id="side-panel">
+<div class="dropdown-menu">
+<ul>
+ {% for app in dropdown_menu_app_list %}
+ <li>
+ <a href="#">{% trans app.name %}</a>
+ <ul class="dropdown-menu-menu">
+ {% for model in app.models %}
+ {% if model.perms.add or model.perms.change or model.perms.custom %}
+ <li{% if forloop.first %} class="first"{% endif %}><a
+ href="{% if not model.perms.change and not model.perms.custom %}{{ model.add_url }}{% else %}{{ model.admin_url }}{% endif %}">{{ model.name }}</a></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </li>
+ {% endfor %}
+</ul>
+
+{% if settings.USE_L10N and LANGUAGES|length > 1 %}
+{% get_language_info_list for LANGUAGES as languages %}
+<form>
+ <select id="id_language" onchange="window.location.href=this.value;">
+ {% for lang in languages %}
+ <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% translate_url lang.code %}">{{ lang.name_local }}</option>
+ {% endfor %}
+ </select>
+</form>
+{% endif %}
+
+{% if dropdown_menu_sites and dropdown_menu_sites|length > 1 %}
+<form action="{% url "set_site" %}">
+<input type="hidden" name="next" value="{{ request.path }}">
+<select name="site_id" onchange="this.form.submit();">
+{% for site in dropdown_menu_sites %}
+<option value="{{ site.id }}"
+ {% if site.id == dropdown_menu_selected_site_id %} selected{% endif %}
+ >{{ site }}</option>
+{% endfor %}
+</select>
+</form>
+{% endif %}
+</div>
+<div id="side-panel-toggle"></div>
+</div>
--- /dev/null
+{% load i18n %}
+
+<div class="module" id="recent-actions-module">
+ <h2>{% trans 'Recent Actions' %}</h2>
+ <h3>{% trans 'My Actions' %}</h3>
+ {% load log %}
+ {% get_admin_log 10 as admin_log for_user user %}
+ {% if not admin_log %}
+ <p>{% trans 'None available' %}</p>
+ {% else %}
+ <ul class="actionlist" style="margin:0;">
+ {% for entry in admin_log %}
+ <li style="list-style-type:none;" class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+</div>
+
--- /dev/null
+{% extends "admin/base_site.html" %}
+
+{% load i18n mezzanine_tags staticfiles %}
+
+{% block extrahead %}
+{{ block.super }}
+<link rel="stylesheet" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/dashboard.css" %}">
+<link rel="stylesheet" href="{% static "mezzanine/css/admin/dashboard.css" %}">
+<!--[if IE 7]><style>.dashboard #content {padding-top: 80px;}</style><![endif]-->
+{% endblock %}
+
+{% block coltype %}colMS{% endblock %}
+{% block bodyclass %}dashboard{% endblock %}
+
+{% block breadcrumbs %}<div class="breadcrumbs">{% trans "Home" %}</div>{% endblock %}
+
+{% block content_title %}<h1>{% trans "Dashboard" %}</h1>{% endblock %}
+
+{% block content %}<div id="content-main">{% dashboard_column 0 %}</div>{% endblock %}
+
+{% block sidebar %}
+ <div id="content-related" class="dashboard1">{% dashboard_column 2 %}</div>
+ {% block extendedsidebar %}
+ <div id="content-related" class="dashboard2">{% dashboard_column 1 %}</div>
+ {% endblock %}
+{% endblock %}
--- /dev/null
+{% extends "admin/base_site.html" %}
+{% load i18n staticfiles %}
+
+{% block extrahead %}
+<link rel="stylesheet" type="text/css" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/login.css" %}">
+{{ block.super }}
+<link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
+<script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
+<script> jQuery(function($) {$('select').chosen();}); </script>
+{% endblock %}
+
+{% block bodyclass %}login{% endblock %}
+{% block content_title %}{% endblock %}
+{% block breadcrumbs %}{% endblock %}
+
+{% block content %}
+
+{% if form.non_field_errors %}
+{% for error in form.non_field_errors %}
+<p class="errornote">{{ error }}</p>
+{% endfor %}
+{% endif %}
+{% if no_site_permission %}
+<p class="errornote">{% trans "You don't have permission to access the admin for this site." %}</p>
+{% endif %}
+
+<form action="{{ app_path }}" method="post" id="login-form">
+ {% csrf_token %}
+ <div id="content-main">
+ <div class="form-row">
+ <label for="id_username" class="required">{% trans 'Username or email:' %}</label>
+ <input type="text" required name="username" id="id_username" value="{{ request.POST.username }}">
+ </div>
+ <div class="form-row">
+ <label for="id_password" class="required">{% trans 'Password:' %}</label>
+ <input type="password" required name="password" id="id_password">
+ <input type="hidden" name="this_is_the_login_form" value="1" />
+ </div>
+ {% if settings.USE_L10N and LANGUAGES|length > 1 %}
+ {% get_language_info_list for LANGUAGES as languages %}
+ <div class="form-row">
+ <label for="id_language" class="required">{% trans "Language" %}:</label>
+ <select id="id_language" onchange="window.location.href=this.value;">
+ {% for lang in languages %}
+ {% language lang.code %}
+ <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% url 'admin:index' %}">{{ lang.name_local }}</option>
+ {% endlanguage %}
+ {% endfor %}
+ </select>
+ </div>
+ {% endif %}
+ <div class="form-row" id="extra-login-fields">
+ <label class="required">{% trans "Interface:" %}</label>
+ <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_admin"
+ value="admin"{% if request.REQUEST.mezzanine_login_interface != "site" %} checked{% endif %} />
+ <label class="interface" for="interface_admin">{% trans "Admin" %}</label>
+ <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_site"
+ value="site"{% if request.REQUEST.mezzanine_login_interface == "site" %} checked{% endif %} />
+ <label class="interface" for="interface_site">{% trans "Site" %}</label>
+ </div>
+ </div>
+ <div class="submit-row">
+ <label> </label><input type="submit" value="{% trans 'Log in' %}" />
+ </div>
+ <p id="forgot-password">
+ <a href="{% url "password_reset" %}">{% trans "Forgot password?" %}</a>
+ </p>
+</form>
+
+{% endblock %}
+
+++ /dev/null
-{% extends "admin/base.html" %}
-{% load mezzanine_tags i18n staticfiles %}
-
-{% block title %}{{ title }} | Mezzanine{% endblock %}
-
-{% block extrahead %}
-<link rel="stylesheet" href="{% static "mezzanine/css/admin/global.css" %}">
-<style>
- /* These are set in PageAdmin's view methods, and mezzanine.utils.admin.SingletonAdmin */
- {% if hide_delete_link or singleton %}.submit-row .deletelink {display:none !important;}{% endif %}
- {% if hide_slug_field %}.slug {display:none !important;}{% endif %}
- {% if singleton %}.change-view-save-another {display:none !important;}{% endif %}
-</style>
-<script>
- {% url "static_proxy" as static_proxy_url %}
- {% url "fb_browse" as fb_browse_url %}
- {% url "displayable_links_js" as link_list_url %}
- {% url "admin:index" as admin_index_url %}
- {% get_current_language as LANGUAGE_CODE %}
- window.__home_link = '<a href="{% url "home" %}">{% trans "View site" %}</a>';
- window.__csrf_token = '{{ csrf_token }}';
- window.__admin_keywords_submit_url = '{% url "admin_keywords_submit" %}';
- window.__filebrowser_url = '{{ fb_browse_url }}';
- window.__link_list_url = '{{ link_list_url }}';
- window.__tinymce_css = '{% static "mezzanine/css/tinymce.css" %}';
- window.__admin_url = '{{ admin_index_url }}';
- window.__static_proxy = '{{ static_proxy_url }}';
- window.__admin_media_prefix__ = '{% static "admin" %}/';
- window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
- window.__admin_menu_collapsed = {{ settings.ADMIN_MENU_COLLAPSED|lower }};
- window.__language_code = '{{ LANGUAGE_CODE }}';
-</script>
-
-{% if not settings.GRAPPELLI_INSTALLED %}
-<script src="{% static "mezzanine/js/"|add:settings.JQUERY_FILENAME %}"></script>
-{% endif %}
-
-<script>
-jQuery(function($) {
- $('.admin-title').click(function() {location = window.__admin_url;});
- // This line can be removed after a decent amount of time has passed since
- // https://github.com/stephenmcd/grappelli-safe/pull/56/files occurring.
- $("#id_sitepermissions-__prefix__-sites").parent().parent().parent().remove();
-});
-</script>
-
-{% endblock %}
-
-{% block rtl_styles %}
-{{ block.super }}
-<link rel="stylesheet" type="text/css" href="{% static "mezzanine/css/admin/rtl.css" %}" />
-{% endblock %}
-
-{% block before_content %}
-{% if user.is_staff and not is_popup and not request.GET.pop %}
-{% admin_dropdown_menu %}
-{% endif %}
-{% endblock %}
-
-{% block footer %}
-{% if form.this_is_the_login_form %}
- <script src="{% static "mezzanine/js/admin/login.js" %}"></script>
-{% else %}
- {% if user.is_staff %}
- {% if not is_popup and not request.GET.pop %}
- <link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
- <script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
- <script src="{% static "mezzanine/js/admin/navigation.js" %}"></script>
-
- {% endif %}
- <script src="{% static "mezzanine/js/admin/ajax_csrf.js" %}"></script>
- {% if settings.GRAPPELLI_INSTALLED %}
- <script src="{% static "mezzanine/js/admin/collapse_backport.js" %}"></script>
- {% endif %}
- {% endif %}
-{% endif %}
-{% endblock %}
+++ /dev/null
-{% load i18n %}
-
-{% if app_list %}
-<div class="group-collapsible">
- {% for app in dashboard_app_list %}
- <div class="module" id="app_{{ app.name|lower }}">
- <table>
- <caption>{% trans app.name %}</caption>
- {% for model in app.models %}
- <tr class="model-{{ model.object_name|lower }}">
- {% if model.perms.change or model.perms.custom %}
- <th scope="row" width="100%"><a
- href="{{ model.admin_url }}">{{ model.name }}</a></th>
- {% else %}
- <th scope="row" width="100%">{{ model.name }}</th>
- {% endif %}
-
- {% if model.perms.add %}
- <td><a href="{{ model.add_url }}"
- class="addlink">{% trans 'Add' %}</a></td>
- {% else %}
- <td> </td>
- {% endif %}
-
- {% if model.perms.change %}
- <td><a href="{{ model.admin_url }}"
- class="changelink">{% trans 'Change' %}</a></td>
- {% else %}
- <td> </td>
- {% endif %}
- </tr>
- {% endfor %}
- </table>
- </div>
- {% endfor %}
-</div>
-{% endif %}
+++ /dev/null
-{% load pages_tags i18n %}
-
-<script type="text/javascript">
-jQuery(function($) {
- $('.addlist').change(function() {
- var addUrl = this[this.selectedIndex].value;
- // If the browser's back button is hit from the add interface,
- // the browser may maintain the state of the select list in the
- // list interface, in which case the previously selected option
- // will still be selected. This would mean the first option
- // (eg "Add ..."") could be selected, which contains no URL to
- // redirect to, so we guard against that, also set selectedIndex
- // back to zero, to also protect against this scenario.
- if (addUrl) {
- location.href = addUrl;
- this.selectedIndex = 0;
- }
- });
-});
-</script>
-
-<div id="addlist-primary">
- <select class="addlist">
- <option value="">{% trans "Add" %} ...</option>
- {% for model in content_models %}
- {% set_model_permissions model %}
- {% if model.perms.add %}
- <option value="{{ model.add_url }}">{{ model.meta_verbose_name|capfirst }}</option>
- {% endif %}
- {% endfor %}
- </select>
-</div>
+++ /dev/null
-{% load i18n mezzanine_tags %}
-<div id="side-panel">
-<div class="dropdown-menu">
-<ul>
- {% for app in dropdown_menu_app_list %}
- <li>
- <a href="#">{% trans app.name %}</a>
- <ul class="dropdown-menu-menu">
- {% for model in app.models %}
- {% if model.perms.add or model.perms.change or model.perms.custom %}
- <li{% if forloop.first %} class="first"{% endif %}><a
- href="{% if not model.perms.change and not model.perms.custom %}{{ model.add_url }}{% else %}{{ model.admin_url }}{% endif %}">{{ model.name }}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
- </li>
- {% endfor %}
-</ul>
-
-{% if settings.USE_L10N and LANGUAGES|length > 1 %}
-{% get_language_info_list for LANGUAGES as languages %}
-<form>
- <select id="id_language" onchange="window.location.href=this.value;">
- {% for lang in languages %}
- <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% translate_url lang.code %}">{{ lang.name_local }}</option>
- {% endfor %}
- </select>
-</form>
-{% endif %}
-
-{% if dropdown_menu_sites and dropdown_menu_sites|length > 1 %}
-<form action="{% url "set_site" %}">
-<input type="hidden" name="next" value="{{ request.path }}">
-<select name="site_id" onchange="this.form.submit();">
-{% for site in dropdown_menu_sites %}
-<option value="{{ site.id }}"
- {% if site.id == dropdown_menu_selected_site_id %} selected{% endif %}
- >{{ site }}</option>
-{% endfor %}
-</select>
-</form>
-{% endif %}
-</div>
-<div id="side-panel-toggle"></div>
-</div>
+++ /dev/null
-{% load i18n %}
-
-<div class="module" id="recent-actions-module">
- <h2>{% trans 'Recent Actions' %}</h2>
- <h3>{% trans 'My Actions' %}</h3>
- {% load log %}
- {% get_admin_log 10 as admin_log for_user user %}
- {% if not admin_log %}
- <p>{% trans 'None available' %}</p>
- {% else %}
- <ul class="actionlist" style="margin:0;">
- {% for entry in admin_log %}
- <li style="list-style-type:none;" class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
- {% endfor %}
- </ul>
- {% endif %}
-</div>
-
+++ /dev/null
-{% extends "admin/base_site.html" %}
-
-{% load i18n mezzanine_tags staticfiles %}
-
-{% block extrahead %}
-{{ block.super }}
-<link rel="stylesheet" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/dashboard.css" %}">
-<link rel="stylesheet" href="{% static "mezzanine/css/admin/dashboard.css" %}">
-<!--[if IE 7]><style>.dashboard #content {padding-top: 80px;}</style><![endif]-->
-{% endblock %}
-
-{% block coltype %}colMS{% endblock %}
-{% block bodyclass %}dashboard{% endblock %}
-
-{% block breadcrumbs %}<div class="breadcrumbs">{% trans "Home" %}</div>{% endblock %}
-
-{% block content_title %}<h1>{% trans "Dashboard" %}</h1>{% endblock %}
-
-{% block content %}<div id="content-main">{% dashboard_column 0 %}</div>{% endblock %}
-
-{% block sidebar %}
- <div id="content-related" class="dashboard1">{% dashboard_column 2 %}</div>
- {% block extendedsidebar %}
- <div id="content-related" class="dashboard2">{% dashboard_column 1 %}</div>
- {% endblock %}
-{% endblock %}
+++ /dev/null
-{% extends "admin/base_site.html" %}
-{% load i18n staticfiles %}
-
-{% block extrahead %}
-<link rel="stylesheet" type="text/css" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/login.css" %}">
-{{ block.super }}
-<link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
-<script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
-<script> jQuery(function($) {$('select').chosen();}); </script>
-{% endblock %}
-
-{% block bodyclass %}login{% endblock %}
-{% block content_title %}{% endblock %}
-{% block breadcrumbs %}{% endblock %}
-
-{% block content %}
-
-{% if form.non_field_errors %}
-{% for error in form.non_field_errors %}
-<p class="errornote">{{ error }}</p>
-{% endfor %}
-{% endif %}
-{% if no_site_permission %}
-<p class="errornote">{% trans "You don't have permission to access the admin for this site." %}</p>
-{% endif %}
-
-<form action="{{ app_path }}" method="post" id="login-form">
- {% csrf_token %}
- <div id="content-main">
- <div class="form-row">
- <label for="id_username" class="required">{% trans 'Username or email:' %}</label>
- <input type="text" required name="username" id="id_username" value="{{ request.POST.username }}">
- </div>
- <div class="form-row">
- <label for="id_password" class="required">{% trans 'Password:' %}</label>
- <input type="password" required name="password" id="id_password">
- <input type="hidden" name="this_is_the_login_form" value="1" />
- </div>
- {% if settings.USE_L10N and LANGUAGES|length > 1 %}
- {% get_language_info_list for LANGUAGES as languages %}
- <div class="form-row">
- <label for="id_language" class="required">{% trans "Language" %}:</label>
- <select id="id_language" onchange="window.location.href=this.value;">
- {% for lang in languages %}
- {% language lang.code %}
- <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% url 'admin:index' %}">{{ lang.name_local }}</option>
- {% endlanguage %}
- {% endfor %}
- </select>
- </div>
- {% endif %}
- <div class="form-row" id="extra-login-fields">
- <label class="required">{% trans "Interface:" %}</label>
- <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_admin"
- value="admin"{% if request.REQUEST.mezzanine_login_interface != "site" %} checked{% endif %} />
- <label class="interface" for="interface_admin">{% trans "Admin" %}</label>
- <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_site"
- value="site"{% if request.REQUEST.mezzanine_login_interface == "site" %} checked{% endif %} />
- <label class="interface" for="interface_site">{% trans "Site" %}</label>
- </div>
- </div>
- <div class="submit-row">
- <label> </label><input type="submit" value="{% trans 'Log in' %}" />
- </div>
- <p id="forgot-password">
- <a href="{% url "password_reset" %}">{% trans "Forgot password?" %}</a>
- </p>
-</form>
-
-{% endblock %}
-