Add new fields to customer form. #324
This commit is contained in:
parent
e260edc80d
commit
5dc57dc073
3 changed files with 53 additions and 26 deletions
|
|
@ -566,7 +566,10 @@ class ResqCustomerHandler implements CustomerHandlerInterface
|
||||||
->setCustomerNotes($req->request->get('customer_notes'))
|
->setCustomerNotes($req->request->get('customer_notes'))
|
||||||
->setEmail($req->request->get('email'))
|
->setEmail($req->request->get('email'))
|
||||||
->setIsCSAT($req->request->get('flag_csat') ? true : false)
|
->setIsCSAT($req->request->get('flag_csat') ? true : false)
|
||||||
->setActive($req->request->get('flag_active') ? true : false);
|
->setActive($req->request->get('flag_active') ? true : false)
|
||||||
|
->setPromoSms($req->request->get('flag_promo_sms') ? true : false)
|
||||||
|
->setPromoEmail($req->request->get('flag_promo_email') ? true : false)
|
||||||
|
->setDpaConsent($req->request->get('flag_dpa_consent') ? true : false);
|
||||||
|
|
||||||
// phone numbers
|
// phone numbers
|
||||||
$obj->setPhoneMobile($req->request->get('phone_mobile'))
|
$obj->setPhoneMobile($req->request->get('phone_mobile'))
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group m-form__group row">
|
<div class="form-group m-form__group row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-4">
|
||||||
<span class="m-switch m-switch--icon block-switch">
|
<span class="m-switch m-switch--icon block-switch">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="flag_csat" id="flag_csat" value="1"{{ obj.isCSAT() ? ' checked' }}>
|
<input type="checkbox" name="flag_csat" id="flag_csat" value="1"{{ obj.isCSAT() ? ' checked' }}>
|
||||||
|
|
@ -102,6 +102,30 @@
|
||||||
</span>
|
</span>
|
||||||
<div class="form-control-feedback hide" data-field="flag_active"></div>
|
<div class="form-control-feedback hide" data-field="flag_active"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-lg-4">
|
||||||
|
<div class="col-lg-12 form-group-inner">
|
||||||
|
<label data-field="source">Marketing Promo</label>
|
||||||
|
<div class="m-checkbox-list">
|
||||||
|
<label class="m-checkbox">
|
||||||
|
<input type="checkbox" name="flag_promo_sms" value="1"{{ obj.isPromoSms ? ' checked' }} >
|
||||||
|
SMS
|
||||||
|
<span></span>
|
||||||
|
<div class="form-control-feedback hide" data-field="flag_promo_sms"></div>
|
||||||
|
</label>
|
||||||
|
<label class="m-checkbox">
|
||||||
|
<input type="checkbox" name="flag_promo_email" value="1"{{ obj.isPromoEmail ? ' checked' }} >
|
||||||
|
Email
|
||||||
|
<span></span>
|
||||||
|
<div class="form-control-feedback hide" data-field="flag_promo_email"></div>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4">
|
||||||
|
<input type="checkbox" name="flag_dpa_consent" id="flag-dpa_consent" value="1"{{ obj.isDpaConsent ? ' checked' }} >
|
||||||
|
<label class="switch-label">With DPA Consent</label>
|
||||||
|
<div class="form-control-feedback hide" data-field="flag_dpa_consent"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group m-form__group row">
|
<div class="form-group m-form__group row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
|
|
|
||||||
|
|
@ -342,12 +342,12 @@
|
||||||
<label data-field="source">Marketing Promo</label>
|
<label data-field="source">Marketing Promo</label>
|
||||||
<div class="m-checkbox-list">
|
<div class="m-checkbox-list">
|
||||||
<label class="m-checkbox">
|
<label class="m-checkbox">
|
||||||
<input type="checkbox" name="flag_promo_sms" value="{{ obj.getCustomer ? obj.getCustomer.isPromoSms ? ' checked': '' }}" >
|
<input type="checkbox" name="flag_promo_sms" value="{{ obj.getCustomer ? obj.getCustomer.isPromoSms ? ' checked': '' }}" disabled>
|
||||||
SMS
|
SMS
|
||||||
<span></span>
|
<span></span>
|
||||||
</label>
|
</label>
|
||||||
<label class="m-checkbox">
|
<label class="m-checkbox">
|
||||||
<input type="checkbox" name="flag_promo_email" value="{{ obj.getCustomer ? obj.getCustomer.isPromoEmail ? ' checked': '' }}" >
|
<input type="checkbox" name="flag_promo_email" value="{{ obj.getCustomer ? obj.getCustomer.isPromoEmail ? ' checked': '' }}" disabled>
|
||||||
Email
|
Email
|
||||||
<span></span>
|
<span></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue