Skip to content

Commit

Permalink
Clean up Icon Upload for collections (bug 592581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Koberger committed Sep 2, 2010
1 parent aa8edee commit 6514fd9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
21 changes: 12 additions & 9 deletions apps/bandwagon/templates/bandwagon/includes/addedit.html
Expand Up @@ -24,18 +24,21 @@ <h3>{{ _('Collection Description') }}</h3>
</p>
<label>{{ form.listed.label }}</label>
{{ form.listed|safe }}
<p>

<br />
<label>{{ form.icon.label|safe }}</label> {{ _('(optional)') }}


<div id="icon_upload">
{% if collection %}
<img src="{{ collection.icon_url }}">
<img src="{{ collection.icon_url }}" class="icon_preview" />
{% endif %}

{{ form.errors['icon']|safe }}
{{ form.icon.label|safe }} {{ _('(optional)') }}
{{ form.icon|safe }}
</p>
<p>
{{ _('PNG and JPG supported. Image will be resized to 32x32.') }}
</p>
</fieldset>
<p class="note">
{{ _('PNG and JPG supported. Image will be resized to 32x32.') }}
</p>
</div>
</fieldset>


13 changes: 13 additions & 0 deletions media/css/zamboni/zamboni.css
Expand Up @@ -2527,6 +2527,19 @@ label > .optional {
width: 100%;
}

#icon_upload {
overflow:auto;
padding-top:5px;
}

#icon_upload .icon_preview {
-moz-border-radius:5px 5px 5px 5px;
border:1px solid #C1E0EA;
float:left;
margin-right:10px;
padding:8px;
}

#ajax_collections_list {
margin: 0 0 .5em 0;
}
Expand Down

0 comments on commit 6514fd9

Please sign in to comment.