mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-05-21 22:01:55 +00:00
Fixes issue 4 -- The textarea of the content field now uses the full width in the admin
This commit is contained in:
parent
0ae0890e4e
commit
a610e90b7a
2 changed files with 12 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
Loading…
Reference in a new issue