Merge branch 'update_manage_campaign'

pull/1/head
Raymond Yee 2012-10-02 13:08:55 -07:00
commit 68615b3b3d
3 changed files with 11 additions and 6 deletions

View File

@ -240,7 +240,6 @@ Please fix the following before launching your campaign:
<span class="menu-item-price">${{ premium.amount|intcomma }}</span> <span class="menu-item-price">${{ premium.amount|intcomma }}</span>
<span class="menu-item-desc">{{ premium.description }}</span> <span class="menu-item-desc">{{ premium.description }}</span>
</i> </i>
{% if premium.type %}<span class="custom-premium"> <br />Type: {{ premium.get_type_display }}</span>{% endif %}
{% ifnotequal premium.limit 0 %}<br />Limit: {{ premium.limit }}{% endifnotequal %} {% ifnotequal premium.limit 0 %}<br />Limit: {{ premium.limit }}{% endifnotequal %}
{% ifequal premium.type 'CU' %}<br />Deactivate? <input type="checkbox" name="premium_id" value="{{ premium.id }}" />{% endifequal %} {% ifequal premium.type 'CU' %}<br />Deactivate? <input type="checkbox" name="premium_id" value="{{ premium.id }}" />{% endifequal %}
</li> </li>
@ -251,9 +250,7 @@ Please fix the following before launching your campaign:
{% endif %} {% endif %}
</form> </form>
</div> </div>
<h4>Editing premiums</h4> <h4>Add a premium for this campaign</h4>
<p>At this time, you can't edit a premium you've created. But you can deactivate a premium and add a new one to replace it. So be sure to double-check your spelling before adding it.</p>
<h4>Add a custom premium for this campaign</h4>
<form action="#" method="POST"> <form action="#" method="POST">
{% csrf_token %} {% csrf_token %}
Pledge Amount: {{ premium_form.amount.errors }}${{ premium_form.amount }}<br /> Pledge Amount: {{ premium_form.amount.errors }}${{ premium_form.amount }}<br />
@ -264,6 +261,8 @@ Please fix the following before launching your campaign:
<br /> <br />
<input type="submit" name="add_premium" value="Add Premium" /> <input type="submit" name="add_premium" value="Add Premium" />
</form> </form>
<h4>Editing premiums</h4>
<p>At this time, you can't edit a premium you've created. But you can deactivate a premium and add a new one to replace it. So be sure to double-check your spelling before adding it.</p>
</div> </div>
{% ifequal campaign_status 'INITIALIZED' %} {% ifequal campaign_status 'INITIALIZED' %}

View File

@ -422,7 +422,7 @@ def manage_campaign(request, id):
'form':form, 'form':form,
'problems': campaign.problems, 'problems': campaign.problems,
'alerts': alerts, 'alerts': alerts,
'premiums' : campaign.effective_premiums(), 'premiums' : campaign.custom_premiums(),
'premium_form' : new_premium_form, 'premium_form' : new_premium_form,
'work': work, 'work': work,
'activetab': activetab, 'activetab': activetab,

View File

@ -33,6 +33,12 @@ CKEDITOR_RESTRICT_BY_USER = True
CKEDITOR_CONFIGS = { CKEDITOR_CONFIGS = {
'default': { 'default': {
'width': 700, 'width': 700,
'toolbar': [
['Cut','Copy','Paste', 'PasteFromWord', '-', 'Undo', 'Redo', '-', 'Source'],
['Bold', 'Italic', '-', 'NumberedList','BulletedList', '-','Blockquote'],
['Find','Replace','-', 'Scayt'],
['Link', 'Unlink', '-', 'Image', 'HorizontalRule']
],
}, },
} }