Add prepaid return label checkbox to package pickup form

This commit is contained in:
Skylar Ittner 2022-06-07 12:11:56 -06:00
parent adc8b1d07a
commit 0ff5b13ec3
2 changed files with 13 additions and 1 deletions

View File

@ -32,7 +32,8 @@ function requestPickup() {
accountkey: getStorage("accountkey"), accountkey: getStorage("accountkey"),
count: $("#pickupRequestForm #packagecount").val(), count: $("#pickupRequestForm #packagecount").val(),
address: $("#pickupRequestForm #streetaddress").val() + " " + $("#pickupRequestForm #zipcode").val(), address: $("#pickupRequestForm #streetaddress").val() + " " + $("#pickupRequestForm #zipcode").val(),
instructions: instructions instructions: instructions,
prepaid: $("#prepaid-label-checkbox").is(":checked") ? "1" : "0"
}, function (success) { }, function (success) {
app.dialog.close(); app.dialog.close();
if (success.status == "OK") { if (success.status == "OK") {

View File

@ -102,6 +102,17 @@
</div> </div>
</div> </div>
</li> </li>
<li>
<label class="item-checkbox item-content text-align-left">
<!-- Checkbox input -->
<input type="checkbox" id="prepaid-label-checkbox" />
<!-- Checkbox icon -->
<i class="icon icon-checkbox"></i>
<span class="item-inner">
<span class="item-title">Package has a prepaid return label</span>
</span>
</label>
</li>
<li class="padding"> <li class="padding">
By requesting a pickup, you confirm that you aren't sending any <a onclick="openBrowser('https://helena.express/articles/restricted-items')">restricted items</a>. By requesting a pickup, you confirm that you aren't sending any <a onclick="openBrowser('https://helena.express/articles/restricted-items')">restricted items</a>.
You agree that we can bill your saved payment method for the shipping cost. You agree that we can bill your saved payment method for the shipping cost.