Browse Source

[FIX] emc_website: financial risk not shown in form

pull/105/head
Rémy Taymans 4 years ago
committed by Manuel Claeys Bouuaert
parent
commit
45ab75d2be
  1. 8
      easy_my_coop_website/controllers/main.py
  2. 21
      easy_my_coop_website/views/subscription_template.xml

8
easy_my_coop_website/controllers/main.py

@ -217,7 +217,10 @@ class WebsiteSubscription(http.Controller):
"data_policy_text": comp.data_policy_approval_text,
"display_internal_rules": comp.display_internal_rules_approval,
"internal_rules_required": comp.internal_rules_approval_required,
"internal_rules_text": comp.internal_rules_approval_text,
"internal_rules_text": comp.financial_risk_approval_text,
"display_financial_risk": comp.display_financial_risk_approval,
"financial_risk_required": comp.financial_risk_approval_required,
"financial_risk_text": comp.financial_risk_approval_text,
}
)
return values
@ -437,6 +440,9 @@ class WebsiteSubscription(http.Controller):
if kwargs.get("internal_rules_approved", "off") == "on":
values["internal_rules_approved"] = True
if kwargs.get("financial_risk_approved", "off") == "on":
values["financial_risk_approved"] = True
lastname = kwargs.get("lastname").upper()
firstname = kwargs.get("firstname").title()

21
easy_my_coop_website/views/subscription_template.xml

@ -470,6 +470,27 @@
</div>
</div>
</div>
<div id="financial_risk_approved"
t-if="display_financial_risk"
t-attf-class="form-group">
<label class="col-md-3 col-sm-4 control-label"
for="financial_risk_approved">
Financial Risk
</label>
<div class="col-md-9 col-sm-8">
<div class="checkbox">
<label>
<input type="checkbox"
name="financial_risk_approved"
t-att-required="financial_risk_required"
t-att-checked="financial_risk_approved"/>
<t t-raw="financial_risk_text"/>
</label>
</div>
</div>
</div>
<table style="margin-left:195px">
<tr>
<td width="80%">

Loading…
Cancel
Save