fix link to normal contract

This commit is contained in:
Cayo Puigdefabregas 2023-12-11 12:19:57 +01:00
parent 93557fe277
commit f81394e1f3
3 changed files with 4 additions and 3 deletions

View file

@ -61,3 +61,4 @@ class ContractForm(forms.Form):
birthday = forms.CharField() birthday = forms.CharField()
gen = forms.CharField() gen = forms.CharField()
lang = forms.CharField() lang = forms.CharField()

View file

@ -529,6 +529,7 @@ bt_experiments["19676"] = {"name":"A\/B Test Home 3 variants (oct. 2013)","conve
<div class="single-page-content single-content entry wpex-clr"><div data-vc-full-width="true" data-vc-full-width-init="false" data-vc-stretch-content="true" class="vc_row wpb_row vc_row-fluid custom_faq faq_tarifas vc_row-no-padding vc_row-o-equal-height vc_row-flex wpex-vc-row-stretched"><div class="wpb_column vc_column_container vc_col-sm-8"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="vcex-shortcode wpex-clr"><div id="framecontainer"><iframe src="https://oficinavirtual.somconnexio.coop/tariffs/mobile?locale=ca"></iframe></div></div></div></div></div><div class="wpb_column bg-gray vc_column_container vc_col-sm-4"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="vcex-shortcode wpex-clr"><div class="kbe_widget p-5 my-2"> <div class="single-page-content single-content entry wpex-clr"><div data-vc-full-width="true" data-vc-full-width-init="false" data-vc-stretch-content="true" class="vc_row wpb_row vc_row-fluid custom_faq faq_tarifas vc_row-no-padding vc_row-o-equal-height vc_row-flex wpex-vc-row-stretched"><div class="wpb_column vc_column_container vc_col-sm-8"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="vcex-shortcode wpex-clr"><div id="framecontainer"><iframe src="https://oficinavirtual.somconnexio.coop/tariffs/mobile?locale=ca"></iframe></div></div></div></div></div><div class="wpb_column bg-gray vc_column_container vc_col-sm-4"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="vcex-shortcode wpex-clr"><div class="kbe_widget p-5 my-2">
<div><h2><a href="{% url 'promotion:contract' %}">Contractar normal</a></h2></div>
<div><h2><a href="{% url 'promotion:select_wallet' %}">Contractar amb credencial</a></h2></div> <div><h2><a href="{% url 'promotion:select_wallet' %}">Contractar amb credencial</a></h2></div>
<div class="px-3"> <div class="px-3">
<div class="textwidget text-uppercase"><strong class="d-block">El més preguntat</strong></div> <div class="textwidget text-uppercase"><strong class="d-block">El més preguntat</strong></div>

View file

@ -11,7 +11,7 @@ from promotion.forms import WalletForm, ContractForm
class PromotionView(View): class PromotionView(View):
template_name = "somconnexio_tarifes-mobil.html" template_name = "somconnexio_tarifes_mobil.html"
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
self.context = {} self.context = {}
template = get_template( template = get_template(
@ -76,8 +76,7 @@ class ContractView(FormView):
return kwargs return kwargs
def form_valid(self, form): def form_valid(self, form):
url = form.save() return super().form_valid(form)
return redirect(url)
def get_discount(self, code): def get_discount(self, code):
if not code: if not code: