Mercurial > personas_backend
changeset 180:7a6e0966068a
Added headers to the individual sections of the persona creation/editing form to make them easier to read. Slightly modified help text of individual fields.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 16 Apr 2008 19:48:35 -0700 |
parents | 5c91a9084890 |
children | 8b9d37988100 |
files | media/css/otherpages.css personasbackend/personas/models.py personasbackend/personas/templates/personas/edit.html |
diffstat | 3 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/media/css/otherpages.css Wed Apr 16 19:24:19 2008 -0700 +++ b/media/css/otherpages.css Wed Apr 16 19:48:35 2008 -0700 @@ -191,3 +191,10 @@ .persona-developer-agreement { font-size: 12px; } + +.form-section { + background-color: #eeeeee; + padding: 4px; + margin: 8px 0px 8px 0px; + font-size: 18px; +}
--- a/personasbackend/personas/models.py Wed Apr 16 19:24:19 2008 -0700 +++ b/personasbackend/personas/models.py Wed Apr 16 19:48:35 2008 -0700 @@ -385,7 +385,7 @@ url = models.URLField( "Dynamic Persona URL", help_text=( - "<b>Advanced:</b> Specifies a URL for the content that will " + "Optional. Specifies a URL for the content that will " "provide " "dynamic content to be placed behind the browser chrome. " "If you don't know what this means, you can leave the field "
--- a/personasbackend/personas/templates/personas/edit.html Wed Apr 16 19:24:19 2008 -0700 +++ b/personasbackend/personas/templates/personas/edit.html Wed Apr 16 19:48:35 2008 -0700 @@ -24,6 +24,7 @@ {% endif %} <table class="persona-form corner-box"> <tr><td colspan="2">{{ form.non_field_errors }}</td></tr> + <tr><td colspan="2"><div class="form-section">Basic Settings</div></td></tr> {% with form.name as field %} {% include "personas/form_row.html" %} {% endwith %} @@ -44,6 +45,8 @@ {% include "personas/form_row.html" %} {% endwith %} + <tr><td colspan="2"><div class="form-section">Advanced Settings</div></td></tr> + {% with form.url as field %} {% include "personas/form_row.html" %} {% endwith %} @@ -56,11 +59,16 @@ {% include "personas/form_row.html" %} {% endwith %} + {% if form.status %} + <tr><td colspan="2"><div class="form-section">Administrative Settings</div></td></tr> {% with form.status as field %} {% include "personas/form_row.html" %} {% endwith %} + {% endif %} + {% if form.agree_to_terms %} <tr><td colspan="2"> + <div class="form-section">Developer Agreement</div> <div class="persona-developer-agreement"> {{ form.agree_to_terms.help_text|safe }} <p> @@ -69,7 +77,8 @@ </p> </div> </td></tr> - + {% endif %} + </table> <input type="submit" class="amo-submit" value="Submit"/> </form>