Browse Source

headphone option

master
root 2 years ago
parent
commit
be47e43525
2 changed files with 25 additions and 5 deletions
  1. +3
    -3
      controllers/kalachakra.py
  2. +22
    -2
      views/website_event_registration.xml

+ 3
- 3
controllers/kalachakra.py View File

@ -646,7 +646,7 @@ class kalachakra_event(WebsiteEventController,PaymentProcessing):
data['online']=False
data['headphone']=False
if post.get('headphone')=='yes':data['headphone']=True
if (post.get('headphone2')=='yes') or (post.get('headphone3')=='yes'):data['headphone']=True
if event.online_event:
if post.get('online')=='yes':data['online']=True
@ -677,7 +677,7 @@ class kalachakra_event(WebsiteEventController,PaymentProcessing):
vals={}
vals['event_id']=request.session['event_id']
vals['partner_id']=request.session['partner_id']
if post.get('headphone')=='yes':vals['headphone']=True
if (post.get('headphone2')=='yes') or (post.get('headphone3')=='yes'):vals['headphone']=True
else:vals['headphone']=False
if event.online_event:
@ -696,7 +696,7 @@ class kalachakra_event(WebsiteEventController,PaymentProcessing):
else:
data['headphone']=True
if post.get('headphone')=='yes':data['headphone']=True
if (post.get('headphone2')=='yes') or (post.get('headphone3')=='yes'):data['headphone']=True
res.headphone=True
request.session['res_id']=res.id


+ 22
- 2
views/website_event_registration.xml View File

@ -19,12 +19,32 @@
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class=" col-sm-auto s_website_form_label " for="headphone">
<label class=" col-sm-auto s_website_form_label " for="headphone1">
<span class="s_website_form_label_content">je suis francophone, je souhaite une traduction en français</span>
</label>
<div class="col-sm">
<input type="checkbox" value="yes" class="s_website_form_input" name="headphone1" id="headphone1"/>
</div>
</div>
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class=" col-sm-auto s_website_form_label " for="headphone2">
<span class="s_website_form_label_content">I need a tibetan to english translation</span>
</label>
<div class="col-sm">
<input type="checkbox" value="yes" class="s_website_form_input" name="headphone" id="headphone"/>
<input type="checkbox" value="yes" class="s_website_form_input" name="headphone2" id="headphone2"/>
</div>
</div>
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class=" col-sm-auto s_website_form_label " for="headphone3">
<span class="s_website_form_label_content">E vorrei una traduzione in italiano</span>
</label>
<div class="col-sm">
<input type="checkbox" value="yes" class="s_website_form_input" name="headphone3" id="headphone3"/>
</div>
</div>


Loading…
Cancel
Save