Add checkbox for car club job orders. #697
This commit is contained in:
parent
52545c8a4f
commit
7d1c3e5842
1 changed files with 30 additions and 5 deletions
|
|
@ -200,11 +200,33 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
{% if is_granted('customer.dpa') %}
|
<div class="col-lg-12 form-group-inner">
|
||||||
<input type="checkbox" name="flag_dpa_consent" id="flag-dpa-consent" value="1"{{ obj.getCustomer ? obj.getCustomer.isDpaConsent ? ' checked' }} >
|
<div class="m-checkbox-list">
|
||||||
<label class="switch-label">With DPA Consent</label>
|
<label class="m-checkbox">
|
||||||
<div class="form-control-feedback hide" data-field="flag_dpa_consent"></div>
|
{% if is_granted('customer.dpa') %}
|
||||||
{% endif %}
|
<input type="checkbox" name="flag_dpa_consent" id="flag-dpa-consent" value="1"{{ obj.getCustomer ? obj.getCustomer.isDpaConsent ? ' checked' }} >
|
||||||
|
With DPA Consent
|
||||||
|
<span></span>
|
||||||
|
<div class="form-control-feedback hide" data-field="flag_dpa_consent"></div>
|
||||||
|
{% endif %}
|
||||||
|
</label>
|
||||||
|
<label class="m-checkbox">
|
||||||
|
{% if obj.getCustomer %}
|
||||||
|
hi
|
||||||
|
{% if obj.getCustomer.getCustomerTags is empty %}
|
||||||
|
<input type="checkbox" name="flag_car_club_member" id="flag-car-club-member" value="1" disabled>
|
||||||
|
{% else %}
|
||||||
|
<input type="checkbox" name="flag_car_club_member" id="flag-car-club-member" value="1" checked disabled>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<input type="checkbox" name="flag_car_club_member" id="flag-car-club-member" value="1" disabled>
|
||||||
|
{% endif %}
|
||||||
|
Car Club Member
|
||||||
|
<span></span>
|
||||||
|
<div class="form-control-feedback hide" data-field="flag_car_club_member"></div>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
<div class="col-lg-12 form-group-inner">
|
<div class="col-lg-12 form-group-inner">
|
||||||
|
|
@ -1489,6 +1511,8 @@ $(function() {
|
||||||
checkboxes[x].checked = false;
|
checkboxes[x].checked = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#flag-car-club-member").prop("checked", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set hidden customer id
|
// set hidden customer id
|
||||||
|
|
@ -1542,6 +1566,7 @@ $(function() {
|
||||||
for (var x = 0; checkboxes.length > x; x++)
|
for (var x = 0; checkboxes.length > x; x++)
|
||||||
{
|
{
|
||||||
checkboxes[x].checked = false;
|
checkboxes[x].checked = false;
|
||||||
|
$("#flag-car-club-member").prop("checked", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue