Fixes issue 4 -- The textarea of the content field now uses the full width in the admin

This commit is contained in:
Jannis Leidel 2009-11-24 21:03:34 +01:00
parent 0ae0890e4e
commit a610e90b7a
2 changed files with 12 additions and 1 deletions

View file

@ -18,7 +18,7 @@ class TemplateAdminForm(forms.ModelForm):
Custom AdminForm to make the content textarea wider.
"""
content = forms.CharField(
widget=forms.Textarea({'cols': '80', 'rows': '24'}),
widget=forms.Textarea({'rows': '24'}),
help_text=_("Leaving this empty causes Django to look for a template "
"with the given name and populate this field with its content."),
required=False)

View file

@ -0,0 +1,11 @@
{% extends "admin/change_form.html" %}
{% block extrahead %}
{{ block.super }}
<style type="text/css">
.dbtemplates-template #id_content {
height: 40.2em;
width: 100%;
}
</style>
{% endblock %}