-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Udi Bauman
authored and
Udi Bauman
committed
May 12, 2010
1 parent
fcefb7a
commit 1a2943c
Showing
11 changed files
with
342 additions
and
75 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from django.forms.models import ModelForm | ||
from letters.models import Letter | ||
|
||
|
||
class LetterForm(ModelForm): | ||
|
||
class Meta: | ||
model = Letter |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{% load i18n %} | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
{% get_current_language_bidi as LANGUAGE_BIDI %} | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> | ||
<head> | ||
<title>{% block title %}{% endblock %}</title> | ||
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" /> | ||
{% block extrastyle %}{% endblock %} | ||
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]--> | ||
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %} | ||
{% block extrahead %}{% endblock %} | ||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %} | ||
</head> | ||
{% load i18n %} | ||
|
||
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"> | ||
|
||
<!-- Container --> | ||
<div id="container"> | ||
|
||
{% if not is_popup %} | ||
<!-- Header --> | ||
<div id="header"> | ||
<div id="branding"> | ||
{% block branding %}{% endblock %} | ||
</div> | ||
{% if user.is_authenticated and user.is_staff %} | ||
<div id="user-tools"> | ||
{% trans 'Welcome,' %} | ||
<strong>{% firstof user.first_name user.username %}</strong>. | ||
{% block userlinks %} | ||
{% url django-admindocs-docroot as docsroot %} | ||
{% if docsroot %} | ||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / | ||
{% endif %} | ||
{% url admin:password_change as password_change_url %} | ||
{% if password_change_url %} | ||
<a href="{{ password_change_url }}"> | ||
{% else %} | ||
<a href="{{ root_path }}password_change/"> | ||
{% endif %} | ||
{% trans 'Change password' %}</a> / | ||
{% url admin:logout as logout_url %} | ||
{% if logout_url %} | ||
<a href="{{ logout_url }}"> | ||
{% else %} | ||
<a href="{{ root_path }}logout/"> | ||
{% endif %} | ||
{% trans 'Log out' %}</a> | ||
{% endblock %} | ||
</div> | ||
{% endif %} | ||
{% block nav-global %}{% endblock %} | ||
</div> | ||
<!-- END Header --> | ||
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %} | ||
{% endif %} | ||
|
||
{% if messages %} | ||
<ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul> | ||
{% endif %} | ||
|
||
<!-- Content --> | ||
<div id="content" class="{% block coltype %}colM{% endblock %}"> | ||
{% block pretitle %}{% endblock %} | ||
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} | ||
{% block content %} | ||
{% block object-tools %}{% endblock %} | ||
{{ content }} | ||
{% endblock %} | ||
{% block sidebar %}{% endblock %} | ||
<br class="clear" /> | ||
</div> | ||
<!-- END Content --> | ||
|
||
{% block footer %}<div id="footer"></div>{% endblock %} | ||
</div> | ||
<!-- END Container --> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "admin/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}{{ title }} | {% trans 'Peula admin' %}{% endblock %} | ||
|
||
{% block branding %} | ||
<h1 id="site-name">{% trans 'Peula' %}</h1> | ||
{% endblock %} | ||
|
||
{% block nav-global %}{% endblock %} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n %} | ||
|
||
|
||
{% block title %}{% trans 'Edit letter' %}{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<form action="{% url letters.views.add_letter %}" method="POST"> | ||
|
||
{% for field in form %} | ||
<div class="fieldWrapper"> | ||
{{ field.errors }} | ||
{{ field.label_tag }}: {{ field }} | ||
</div> | ||
{% endfor %} | ||
|
||
<input type="submit" value="{% trans 'Send' %}"/> | ||
</form> | ||
|
||
{% endblock content %} |
This file contains 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
This file contains 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
This file contains 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