diff options
author | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
commit | c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch) | |
tree | 2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin/includes | |
parent | ed77da873e675f02f12cbab9be27f342f825444b (diff) |
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin/includes')
-rw-r--r-- | lib/grappelli/templates/admin/includes/fieldset.html | 37 | ||||
-rw-r--r-- | lib/grappelli/templates/admin/includes/fieldset_inline.html | 37 |
2 files changed, 74 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin/includes/fieldset.html b/lib/grappelli/templates/admin/includes/fieldset.html new file mode 100644 index 0000000..561a7e3 --- /dev/null +++ b/lib/grappelli/templates/admin/includes/fieldset.html @@ -0,0 +1,37 @@ +{% spaceless %} + <fieldset class="module {{ fieldset.classes }}"> + {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %} + {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %} + {% for line in fieldset %} + <div class="row cells-{{ line.fields|length }}{% if not line.fields|length_is:"1" %} cells{% endif %}{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} "> + {% for field in line %} + <div{% if not line.fields|length_is:"1" %} class="cell"{% endif %}> + {% if field.is_checkbox %} + <div class="column span-4"> </div> + <div class="column span-flexible"> + {{ field.field }}{{ field.label_tag }} + {{ line.errors }} + {% if field.field.field.help_text %} + <p class="help">{{ field.field.field.help_text|safe }}</p> + {% endif %} + </div> + {% else %} + <div class="column span-4">{{ field.label_tag }}</div> + <div class="column span-flexible"> + {% if field.is_readonly %} + <p class="readonly">{{ field.contents }}</p> + {% else %} + {{ field.field }} + {% endif %} + {{ line.errors }} + {% if field.field.field.help_text %} + <p class="help">{{ field.field.field.help_text|safe }}</p> + {% endif %} + </div> + {% endif %} + </div> + {% endfor %} + </div> + {% endfor %} + </fieldset> +{% endspaceless %}
\ No newline at end of file diff --git a/lib/grappelli/templates/admin/includes/fieldset_inline.html b/lib/grappelli/templates/admin/includes/fieldset_inline.html new file mode 100644 index 0000000..137dce9 --- /dev/null +++ b/lib/grappelli/templates/admin/includes/fieldset_inline.html @@ -0,0 +1,37 @@ +{% spaceless %} +<fieldset class="module {{ fieldset.classes }}"> + {% if fieldset.name %}<h4>{{ fieldset.name }}</h4>{% endif %} + {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %} + {% for line in fieldset %} + <div class="row cells-{{ line.fields|length }}{% if not line.fields|length_is:"1" %} cells{% endif %}{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} "> + {% for field in line %} + <div{% if not line.fields|length_is:"1" %} class="cell"{% endif %}> + {% if field.is_checkbox %} + <div class="column span-4"> </div> + <div class="column span-flexible"> + {{ field.field }}{{ field.label_tag }} + {{ line.errors }} + {% if field.field.field.help_text %} + <p class="help">{{ field.field.field.help_text|safe }}</p> + {% endif %} + </div> + {% else %} + <div class="column span-4">{{ field.label_tag }}</div> + <div class="column span-flexible"> + {% if field.is_readonly %} + <p class="readonly">{{ field.contents }}</p> + {% else %} + {{ field.field }} + {% endif %} + {{ line.errors }} + {% if field.field.field.help_text %} + <p class="help">{{ field.field.field.help_text|safe }}</p> + {% endif %} + </div> + {% endif %} + </div> + {% endfor %} + </div> + {% endfor %} +</fieldset> +{% endspaceless %}
\ No newline at end of file |