Mercurial > sat_legacy_website
diff sat_website/views.py @ 40:dfe7139dae0a
add links to the statutes and rules of the association in the adhesion form
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 03 Feb 2015 15:14:42 +0100 |
parents | d2c45f4ba57e |
children | 3e460ca969d2 |
line wrap: on
line diff
--- a/sat_website/views.py Tue Jan 27 18:23:39 2015 +0100 +++ b/sat_website/views.py Tue Feb 03 15:14:42 2015 +0100 @@ -88,15 +88,18 @@ context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS) elif category == "adhesion": context.update(utils.get_asso_finance_status()) + context.update(utils.get_asso_urls()) elif category == "adhesion_form": if request.method == 'POST': form = forms.RegistrationForm(request.POST) + form.process_submitted_data() if form.is_valid(): category = 'thank_you' else: form = forms.RegistrationForm(initial={'subscription_amount': 10, 'payment_method': 'card'}) context['form'] = form + context.update(utils.get_asso_urls()) def all_keys(cats): subcats = [value[1].keys() for value in cats.values() if isinstance(value, tuple)]