This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block main_section_content %} | |
{% endblock %} | |
<a class="close-reveal-modal">×</a> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from django.contrib import admin | |
from django.contrib.auth.admin import UserAdmin | |
from django.utils.translation import ugettext_lazy as _ | |
from earnest.accounts.models import Account, AccessHistory | |
from earnest.accounts.forms import AdminPasswordChangeForm, AdminRegisterUserFullForm | |
class ReadonlyTabularInline(admin.TabularInline): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load i18n %} | |
{% if f %} | |
<li class="form-field {% if forloop and forloop.counter|divisibleby:2 %}even{% endif %} {{f.auto_id }} {{f.field.widget.attrs.li_class}} {% if f.errors %} invalid error{% endif %}"> | |
{% if f.field.before %} | |
<span class="before">{{f.field.before}}</span> | |
{% endif %} | |
{% if f.field.or_divider %} | |
<div class="or-divider-container"><div class="or-divider">{% trans "or" %}</div></div> | |
{% endif %} | |
{% if f.help_text and tooltip %} |
NewerOlder