diff --git a/frontend/forms.py b/frontend/forms.py
index b9e63d9b..835cfe74 100644
--- a/frontend/forms.py
+++ b/frontend/forms.py
@@ -407,10 +407,10 @@ class OfferForm(forms.ModelForm):
class Meta:
model = Offer
+ fields = 'work', 'price', 'license'
widgets = {
'work': forms.HiddenInput,
'license': forms.HiddenInput,
- 'active': forms.HiddenInput,
}
date_selector=range(date.today().year, settings.MAX_CC_DATE.year+1)
diff --git a/frontend/templates/manage_campaign.html b/frontend/templates/manage_campaign.html
index 36ae4b19..cafd3263 100644
--- a/frontend/templates/manage_campaign.html
+++ b/frontend/templates/manage_campaign.html
@@ -395,7 +395,11 @@ Please fix the following before launching your campaign:
{{ offer.offer_form.active }}
{{ offer.offer_form.license }}
{{ offer.offer_form.work }}
+ {% if offer.active %}
+ {% else %}
+ This offer is not active
+ {% endif %}
{% endfor %}
diff --git a/frontend/views.py b/frontend/views.py
index e09e2ee5..7823b66e 100755
--- a/frontend/views.py
+++ b/frontend/views.py
@@ -665,6 +665,8 @@ def manage_campaign(request, id, action='manage'):
offer.offer_form=OfferForm(instance=offer, data = request.POST, prefix='offer_%d'%offer.id)
if offer.offer_form.is_valid():
offer.offer_form.save()
+ offer.active = True
+ offer.save()
alerts.append(_('Offer has been changed'))
else:
alerts.append(_('Offer has not been changed'))