ups.twig (46276B)
1 {{ header }}{{ column_left }} 2 <div id="content"> 3 <div class="page-header"> 4 <div class="container-fluid"> 5 <div class="pull-right"> 6 <button type="submit" form="form-shipping" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button> 7 <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div> 8 <h1>{{ heading_title }}</h1> 9 <ul class="breadcrumb"> 10 {% for breadcrumb in breadcrumbs %} 11 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 12 {% endfor %} 13 </ul> 14 </div> 15 </div> 16 <div class="container-fluid"> 17 {% if error_warning %} 18 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }} 19 <button type="button" class="close" data-dismiss="alert">×</button> 20 </div> 21 {% endif %} 22 <div class="panel panel-default"> 23 <div class="panel-heading"> 24 <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3> 25 </div> 26 <div class="panel-body"> 27 <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-shipping" class="form-horizontal"> 28 <div class="form-group required"> 29 <label class="col-sm-2 control-label" for="input-key"><span data-toggle="tooltip" title="{{ help_key }}">{{ entry_key }}</span></label> 30 <div class="col-sm-10"> 31 <input type="text" name="shipping_ups_key" value="{{ shipping_ups_key }}" placeholder="{{ entry_key }}" id="input-key" class="form-control" /> 32 {% if error_key %} 33 <div class="text-danger">{{ error_key }}</div> 34 {% endif %} 35 </div> 36 </div> 37 <div class="form-group required"> 38 <label class="col-sm-2 control-label" for="input-username"><span data-toggle="tooltip" title="{{ help_username }}">{{ entry_username }}</span></label> 39 <div class="col-sm-10"> 40 <input type="text" name="shipping_ups_username" value="{{ shipping_ups_username }}" placeholder="{{ entry_username }}" id="input-username" class="form-control" /> 41 {% if error_username %} 42 <div class="text-danger">{{ error_username }}</div> 43 {% endif %} 44 </div> 45 </div> 46 <div class="form-group required"> 47 <label class="col-sm-2 control-label" for="input-password"><span data-toggle="tooltip" title="{{ help_password }}">{{ entry_password }}</span></label> 48 <div class="col-sm-10"> 49 <input type="text" name="shipping_ups_password" value="{{ shipping_ups_password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control" /> 50 {% if error_password %} 51 <div class="text-danger">{{ error_password }}</div> 52 {% endif %} 53 </div> 54 </div> 55 <div class="form-group"> 56 <label class="col-sm-2 control-label" for="input-pickup"><span data-toggle="tooltip" title="{{ help_pickup }}">{{ entry_pickup }}</span></label> 57 <div class="col-sm-10"> 58 <select name="shipping_ups_pickup" id="input-pickup" class="form-control"> 59 {% for pickup in pickups %} 60 {% if pickup.value == shipping_ups_pickup %} 61 <option value="{{ pickup.value }}" selected="selected">{{ pickup.text }}</option> 62 {% else %} 63 <option value="{{ pickup.value }}">{{ pickup.text }}</option> 64 {% endif %} 65 {% endfor %} 66 </select> 67 </div> 68 </div> 69 <div class="form-group"> 70 <label class="col-sm-2 control-label" for="input-packaging"><span data-toggle="tooltip" title="{{ help_packaging }}">{{ entry_packaging }}</span></label> 71 <div class="col-sm-10"> 72 <select name="shipping_ups_packaging" id="input-packaging" class="form-control"> 73 {% for package in packages %} 74 {% if package.value == shipping_ups_packaging %} 75 <option value="{{ package.value }}" selected="selected">{{ package.text }}</option> 76 {% else %} 77 <option value="{{ package.value }}">{{ package.text }}</option> 78 {% endif %} 79 {% endfor %} 80 </select> 81 </div> 82 </div> 83 <div class="form-group"> 84 <label class="col-sm-2 control-label" for="input-classification"><span data-toggle="tooltip" title="{{ help_classification }}">{{ entry_classification }}</span></label> 85 <div class="col-sm-10"> 86 <select name="shipping_ups_classification" id="input-classification" class="form-control"> 87 {% for classification in classifications %} 88 {% if classification.value == shipping_ups_classification %} 89 <option value="{{ classification.value }}" selected="selected">{{ classification.text }}</option> 90 {% else %} 91 <option value="{{ classification.value }}">{{ classification.text }}</option> 92 {% endif %} 93 {% endfor %} 94 </select> 95 </div> 96 </div> 97 <div class="form-group"> 98 <label class="col-sm-2 control-label" for="input-origin"><span data-toggle="tooltip" title="{{ help_origin }}">{{ entry_origin }}</span></label> 99 <div class="col-sm-10"> 100 <select name="shipping_ups_origin" id="input-origin" class="form-control"> 101 {% for origin in origins %} 102 {% if origin.value == shipping_ups_origin %} 103 <option value="{{ origin.value }}" selected="selected">{{ origin.text }}</option> 104 {% else %} 105 <option value="{{ origin.value }}">{{ origin.text }}</option> 106 {% endif %} 107 {% endfor %} 108 </select> 109 </div> 110 </div> 111 <div class="form-group required"> 112 <label class="col-sm-2 control-label" for="input-city"><span data-toggle="tooltip" title="{{ help_city }}">{{ entry_city }}</span></label> 113 <div class="col-sm-10"> 114 <input type="text" name="shipping_ups_city" value="{{ shipping_ups_city }}" placeholder="{{ entry_city }}" id="input-city" class="form-control" /> 115 {% if error_city %} 116 <div class="text-danger">{{ error_city }}</div> 117 {% endif %} 118 </div> 119 </div> 120 <div class="form-group required"> 121 <label class="col-sm-2 control-label" for="input-state"><span data-toggle="tooltip" title="{{ help_state }}">{{ entry_state }}</span></label> 122 <div class="col-sm-10"> 123 <input type="text" name="shipping_ups_state" value="{{ shipping_ups_state }}" placeholder="{{ entry_state }}" id="input-state" class="form-control" maxlength="2" /> 124 {% if error_state %} 125 <div class="text-danger">{{ error_state }}</div> 126 {% endif %} 127 </div> 128 </div> 129 <div class="form-group required"> 130 <label class="col-sm-2 control-label" for="input-country"><span data-toggle="tooltip" title="{{ help_country }}">{{ entry_country }}</span></label> 131 <div class="col-sm-10"> 132 <input type="text" name="shipping_ups_country" value="{{ shipping_ups_country }}" placeholder="{{ entry_country }}" id="input-country" class="form-control" maxlength="2" /> 133 {% if error_country %} 134 <div class="text-danger">{{ error_country }}</div> 135 {% endif %} 136 </div> 137 </div> 138 <div class="form-group"> 139 <label class="col-sm-2 control-label" for="input-postcode"><span data-toggle="tooltip" title="{{ help_postcode }}">{{ entry_postcode }}</span></label> 140 <div class="col-sm-10"> 141 <input type="text" name="shipping_ups_postcode" value="{{ shipping_ups_postcode }}" placeholder="{{ entry_postcode }}" id="input-postcode" class="form-control" /> 142 </div> 143 </div> 144 <div class="form-group"> 145 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_test }}">{{ entry_test }}</span></label> 146 <div class="col-sm-10"> 147 <label class="radio-inline"> 148 {% if shipping_ups_test %} 149 <input type="radio" name="shipping_ups_test" value="1" checked="checked" /> 150 {{ text_yes }} 151 {% else %} 152 <input type="radio" name="shipping_ups_test" value="1" /> 153 {{ text_yes }} 154 {% endif %} 155 </label> 156 <label class="radio-inline"> 157 {% if not shipping_ups_test %} 158 <input type="radio" name="shipping_ups_test" value="0" checked="checked" /> 159 {{ text_no }} 160 {% else %} 161 <input type="radio" name="shipping_ups_test" value="0" /> 162 {{ text_no }} 163 {% endif %} 164 </label> 165 </div> 166 </div> 167 <div class="form-group"> 168 <label class="col-sm-2 control-label" for="input-quote-type"><span data-toggle="tooltip" title="{{ help_quote_type }}">{{ entry_quote_type }}</span></label> 169 <div class="col-sm-10"> 170 <select name="shipping_ups_quote_type" id="input-quote-type" class="form-control"> 171 {% for quote_type in quote_types %} 172 {% if quote_type.value == shipping_ups_quote_type %} 173 <option value="{{ quote_type.value }}" selected="selected">{{ quote_type.text }}</option> 174 {% else %} 175 <option value="{{ quote_type.value }}">{{ quote_type.text }}</option> 176 {% endif %} 177 {% endfor %} 178 </select> 179 </div> 180 </div> 181 <div class="form-group"> 182 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_service }}">{{ entry_service }}</span></label> 183 <div class="col-sm-10"> 184 <div id="service" class="well well-sm" style="height: 150px; overflow: auto;"> 185 <div id="US"> 186 <div class="checkbox"> 187 <label> 188 {% if shipping_ups_us_01 %} 189 <input type="checkbox" name="shipping_ups_us_01" value="1" checked="checked" /> 190 {{ text_next_day_air }} 191 {% else %} 192 <input type="checkbox" name="shipping_ups_us_01" value="1" /> 193 {{ text_next_day_air }} 194 {% endif %} 195 </label> 196 </div> 197 <div class="checkbox"> 198 <label> 199 {% if shipping_ups_us_02 %} 200 <input type="checkbox" name="shipping_ups_us_02" value="1" checked="checked" /> 201 {{ text_2nd_day_air }} 202 {% else %} 203 <input type="checkbox" name="shipping_ups_us_02" value="1" /> 204 {{ text_2nd_day_air }} 205 {% endif %} 206 </label> 207 </div> 208 <div class="checkbox"> 209 <label> 210 {% if shipping_ups_us_03 %} 211 <input type="checkbox" name="shipping_ups_us_03" value="1" checked="checked" /> 212 {{ text_ground }} 213 {% else %} 214 <input type="checkbox" name="shipping_ups_us_03" value="1" /> 215 {{ text_ground }} 216 {% endif %} 217 </label> 218 </div> 219 <div class="checkbox"> 220 <label> 221 {% if shipping_ups_us_07 %} 222 <input type="checkbox" name="shipping_ups_us_07" value="1" checked="checked" /> 223 {{ text_worldwide_express }} 224 {% else %} 225 <input type="checkbox" name="shipping_ups_us_07" value="1" /> 226 {{ text_worldwide_express }} 227 {% endif %} 228 </label> 229 </div> 230 <div class="checkbox"> 231 <label> 232 {% if shipping_ups_us_08 %} 233 <input type="checkbox" name="shipping_ups_us_08" value="1" checked="checked" /> 234 {{ text_worldwide_expedited }} 235 {% else %} 236 <input type="checkbox" name="shipping_ups_us_08" value="1" /> 237 {{ text_worldwide_expedited }} 238 {% endif %} 239 </label> 240 </div> 241 <div class="checkbox"> 242 <label> 243 {% if shipping_ups_us_11 %} 244 <input type="checkbox" name="shipping_ups_us_11" value="1" checked="checked" /> 245 {{ text_standard }} 246 {% else %} 247 <input type="checkbox" name="shipping_ups_us_11" value="1" /> 248 {{ text_standard }} 249 {% endif %} 250 </label> 251 </div> 252 <div class="checkbox"> 253 <label> 254 {% if shipping_ups_us_12 %} 255 <input type="checkbox" name="shipping_ups_us_12" value="1" checked="checked" /> 256 {{ text_3_day_select }} 257 {% else %} 258 <input type="checkbox" name="shipping_ups_us_12" value="1" /> 259 {{ text_3_day_select }} 260 {% endif %} 261 </label> 262 </div> 263 <div class="checkbox"> 264 <label> 265 {% if shipping_ups_us_13 %} 266 <input type="checkbox" name="shipping_ups_us_13" value="1" checked="checked" /> 267 {{ text_next_day_air_saver }} 268 {% else %} 269 <input type="checkbox" name="shipping_ups_us_13" value="1" /> 270 {{ text_next_day_air_saver }} 271 {% endif %} 272 </label> 273 </div> 274 <div class="checkbox"> 275 <label> 276 {% if shipping_ups_us_14 %} 277 <input type="checkbox" name="shipping_ups_us_14" value="1" checked="checked" /> 278 {{ text_next_day_air_early_am }} 279 {% else %} 280 <input type="checkbox" name="shipping_ups_us_14" value="1" /> 281 {{ text_next_day_air_early_am }} 282 {% endif %} 283 </label> 284 </div> 285 <div class="checkbox"> 286 <label> 287 {% if shipping_ups_us_54 %} 288 <input type="checkbox" name="shipping_ups_us_54" value="1" checked="checked" /> 289 {{ text_worldwide_express_plus }} 290 {% else %} 291 <input type="checkbox" name="shipping_ups_us_54" value="1" /> 292 {{ text_worldwide_express_plus }} 293 {% endif %} 294 </label> 295 </div> 296 <div class="checkbox"> 297 <label> 298 {% if shipping_ups_us_59 %} 299 <input type="checkbox" name="shipping_ups_us_59" value="1" checked="checked" /> 300 {{ text_2nd_day_air_am }} 301 {% else %} 302 <input type="checkbox" name="shipping_ups_us_59" value="1" /> 303 {{ text_2nd_day_air_am }} 304 {% endif %} 305 </label> 306 </div> 307 <div class="checkbox"> 308 <label> 309 {% if shipping_ups_us_65 %} 310 <input type="checkbox" name="shipping_ups_us_65" value="1" checked="checked" /> 311 {{ text_saver }} 312 {% else %} 313 <input type="checkbox" name="shipping_ups_us_65" value="1" /> 314 {{ text_saver }} 315 {% endif %} 316 </label> 317 </div> 318 </div> 319 <div id="PR"> 320 <div class="checkbox"> 321 <label> 322 {% if shipping_ups_pr_01 %} 323 <input type="checkbox" name="shipping_ups_pr_01" value="1" checked="checked" /> 324 {{ text_next_day_air }} 325 {% else %} 326 <input type="checkbox" name="shipping_ups_pr_01" value="1" /> 327 {{ text_next_day_air }} 328 {% endif %} 329 </label> 330 </div> 331 <div class="checkbox"> 332 <label> 333 {% if shipping_ups_pr_02 %} 334 <input type="checkbox" name="shipping_ups_pr_02" value="1" checked="checked" /> 335 {{ text_2nd_day_air }} 336 {% else %} 337 <input type="checkbox" name="shipping_ups_pr_02" value="1" /> 338 {{ text_2nd_day_air }} 339 {% endif %} 340 </label> 341 </div> 342 <div class="checkbox"> 343 <label> 344 {% if shipping_ups_pr_03 %} 345 <input type="checkbox" name="shipping_ups_pr_03" value="1" checked="checked" /> 346 {{ text_ground }} 347 {% else %} 348 <input type="checkbox" name="shipping_ups_pr_03" value="1" /> 349 {{ text_ground }} 350 {% endif %} 351 </label> 352 </div> 353 <div class="checkbox"> 354 <label> 355 {% if shipping_ups_pr_07 %} 356 <input type="checkbox" name="shipping_ups_pr_07" value="1" checked="checked" /> 357 {{ text_worldwide_express }} 358 {% else %} 359 <input type="checkbox" name="shipping_ups_pr_07" value="1" /> 360 {{ text_worldwide_express }} 361 {% endif %} 362 </label> 363 </div> 364 <div class="checkbox"> 365 <label> 366 {% if shipping_ups_pr_08 %} 367 <input type="checkbox" name="shipping_ups_pr_08" value="1" checked="checked" /> 368 {{ text_worldwide_expedited }} 369 {% else %} 370 <input type="checkbox" name="shipping_ups_pr_08" value="1" /> 371 {{ text_worldwide_expedited }} 372 {% endif %} 373 </label> 374 </div> 375 <div class="checkbox"> 376 <label> 377 {% if shipping_ups_pr_14 %} 378 <input type="checkbox" name="shipping_ups_pr_14" value="1" checked="checked" /> 379 {{ text_next_day_air_early_am }} 380 {% else %} 381 <input type="checkbox" name="shipping_ups_pr_14" value="1" /> 382 {{ text_next_day_air_early_am }} 383 {% endif %} 384 </label> 385 </div> 386 <div class="checkbox"> 387 <label> 388 {% if shipping_ups_pr_54 %} 389 <input type="checkbox" name="shipping_ups_pr_54" value="1" checked="checked" /> 390 {{ text_worldwide_express_plus }} 391 {% else %} 392 <input type="checkbox" name="shipping_ups_pr_54" value="1" /> 393 {{ text_worldwide_express_plus }} 394 {% endif %} 395 </label> 396 </div> 397 <div class="checkbox"> 398 <label> 399 {% if shipping_ups_pr_65 %} 400 <input type="checkbox" name="shipping_ups_pr_65" value="1" checked="checked" /> 401 {{ text_saver }} 402 {% else %} 403 <input type="checkbox" name="shipping_ups_pr_65" value="1" /> 404 {{ text_saver }} 405 {% endif %} 406 </label> 407 </div> 408 </div> 409 <div id="CA"> 410 <div class="checkbox"> 411 <label> 412 {% if shipping_ups_ca_01 %} 413 <input type="checkbox" name="shipping_ups_ca_01" value="1" checked="checked" /> 414 {{ text_express }} 415 {% else %} 416 <input type="checkbox" name="shipping_ups_ca_01" value="1" /> 417 {{ text_express }} 418 {% endif %} 419 </label> 420 </div> 421 <div class="checkbox"> 422 <label> 423 {% if shipping_ups_ca_02 %} 424 <input type="checkbox" name="shipping_ups_ca_02" value="1" checked="checked" /> 425 {{ text_expedited }} 426 {% else %} 427 <input type="checkbox" name="shipping_ups_ca_02" value="1" /> 428 {{ text_expedited }} 429 {% endif %} 430 </label> 431 </div> 432 <div class="checkbox"> 433 <label> 434 {% if shipping_ups_ca_07 %} 435 <input type="checkbox" name="shipping_ups_ca_07" value="1" checked="checked" /> 436 {{ text_worldwide_express }} 437 {% else %} 438 <input type="checkbox" name="shipping_ups_ca_07" value="1" /> 439 {{ text_worldwide_express }} 440 {% endif %} 441 </label> 442 </div> 443 <div class="checkbox"> 444 <label> 445 {% if shipping_ups_ca_08 %} 446 <input type="checkbox" name="shipping_ups_ca_08" value="1" checked="checked" /> 447 {{ text_worldwide_expedited }} 448 {% else %} 449 <input type="checkbox" name="shipping_ups_ca_08" value="1" /> 450 {{ text_worldwide_expedited }} 451 {% endif %} 452 </label> 453 </div> 454 <div class="checkbox"> 455 <label> 456 {% if shipping_ups_ca_11 %} 457 <input type="checkbox" name="shipping_ups_ca_11" value="1" checked="checked" /> 458 {{ text_standard }} 459 {% else %} 460 <input type="checkbox" name="shipping_ups_ca_11" value="1" /> 461 {{ text_standard }} 462 {% endif %} 463 </label> 464 </div> 465 <div class="checkbox"> 466 <label> 467 {% if shipping_ups_ca_12 %} 468 <input type="checkbox" name="shipping_ups_ca_12" value="1" checked="checked" /> 469 {{ text_3_day_select }} 470 {% else %} 471 <input type="checkbox" name="shipping_ups_ca_12" value="1" /> 472 {{ text_3_day_select }} 473 {% endif %} 474 </label> 475 </div> 476 <div class="checkbox"> 477 <label> 478 {% if shipping_ups_ca_13 %} 479 <input type="checkbox" name="shipping_ups_ca_13" value="1" checked="checked" /> 480 {{ text_saver }} 481 {% else %} 482 <input type="checkbox" name="shipping_ups_ca_13" value="1" /> 483 {{ text_saver }} 484 {% endif %} 485 </label> 486 </div> 487 <div class="checkbox"> 488 <label> 489 {% if shipping_ups_ca_14 %} 490 <input type="checkbox" name="shipping_ups_ca_14" value="1" checked="checked" /> 491 {{ text_express_early_am }} 492 {% else %} 493 <input type="checkbox" name="shipping_ups_ca_14" value="1" /> 494 {{ text_express_early_am }} 495 {% endif %} 496 </label> 497 </div> 498 <div class="checkbox"> 499 <label> 500 {% if shipping_ups_ca_54 %} 501 <input type="checkbox" name="shipping_ups_ca_54" value="1" checked="checked" /> 502 {{ text_worldwide_express_plus }} 503 {% else %} 504 <input type="checkbox" name="shipping_ups_ca_54" value="1" /> 505 {{ text_worldwide_express_plus }} 506 {% endif %} 507 </label> 508 </div> 509 <div class="checkbox"> 510 <label> 511 {% if shipping_ups_ca_65 %} 512 <input type="checkbox" name="shipping_ups_ca_65" value="1" checked="checked" /> 513 {{ text_saver }} 514 {% else %} 515 <input type="checkbox" name="shipping_ups_ca_65" value="1" /> 516 {{ text_saver }} 517 {% endif %} 518 </label> 519 </div> 520 </div> 521 <div id="MX"> 522 <div class="checkbox"> 523 <label> 524 {% if shipping_ups_mx_07 %} 525 <input type="checkbox" name="shipping_ups_mx_07" value="1" checked="checked" /> 526 {{ text_worldwide_express }} 527 {% else %} 528 <input type="checkbox" name="shipping_ups_mx_07" value="1" /> 529 {{ text_worldwide_express }} 530 {% endif %} 531 </label> 532 </div> 533 <div class="checkbox"> 534 <label> 535 {% if shipping_ups_mx_08 %} 536 <input type="checkbox" name="shipping_ups_mx_08" value="1" checked="checked" /> 537 {{ text_worldwide_expedited }} 538 {% else %} 539 <input type="checkbox" name="shipping_ups_mx_08" value="1" /> 540 {{ text_worldwide_expedited }} 541 {% endif %} 542 </label> 543 </div> 544 <div class="checkbox"> 545 <label> 546 {% if shipping_ups_mx_54 %} 547 <input type="checkbox" name="shipping_ups_mx_54" value="1" checked="checked" /> 548 {{ text_worldwide_express_plus }} 549 {% else %} 550 <input type="checkbox" name="shipping_ups_mx_54" value="1" /> 551 {{ text_worldwide_express_plus }} 552 {% endif %} 553 </label> 554 </div> 555 <div class="checkbox"> 556 <label> 557 {% if shipping_ups_mx_65 %} 558 <input type="checkbox" name="shipping_ups_mx_65" value="1" checked="checked" /> 559 {{ text_saver }} 560 {% else %} 561 <input type="checkbox" name="shipping_ups_mx_65" value="1" /> 562 {{ text_saver }} 563 {% endif %} 564 </label> 565 </div> 566 </div> 567 <div id="EU"> 568 <div class="checkbox"> 569 <label> 570 {% if shipping_ups_eu_07 %} 571 <input type="checkbox" name="shipping_ups_eu_07" value="1" checked="checked" /> 572 {{ text_express }} 573 {% else %} 574 <input type="checkbox" name="shipping_ups_eu_07" value="1" /> 575 {{ text_express }} 576 {% endif %} 577 </label> 578 </div> 579 <div class="checkbox"> 580 <label> 581 {% if shipping_ups_eu_08 %} 582 <input type="checkbox" name="shipping_ups_eu_08" value="1" checked="checked" /> 583 {{ text_expedited }} 584 {% else %} 585 <input type="checkbox" name="shipping_ups_eu_08" value="1" /> 586 {{ text_expedited }} 587 {% endif %} 588 </label> 589 </div> 590 <div class="checkbox"> 591 <label> 592 {% if shipping_ups_eu_11 %} 593 <input type="checkbox" name="shipping_ups_eu_11" value="1" checked="checked" /> 594 {{ text_standard }} 595 {% else %} 596 <input type="checkbox" name="shipping_ups_eu_11" value="1" /> 597 {{ text_standard }} 598 {% endif %} 599 </label> 600 </div> 601 <div class="checkbox"> 602 <label> 603 {% if shipping_ups_eu_54 %} 604 <input type="checkbox" name="shipping_ups_eu_54" value="1" checked="checked" /> 605 {{ text_worldwide_express_plus }} 606 {% else %} 607 <input type="checkbox" name="shipping_ups_eu_54" value="1" /> 608 {{ text_worldwide_express_plus }} 609 {% endif %} 610 </label> 611 </div> 612 <div class="checkbox"> 613 <label> 614 {% if shipping_ups_eu_65 %} 615 <input type="checkbox" name="shipping_ups_eu_65" value="1" checked="checked" /> 616 {{ text_saver }} 617 {% else %} 618 <input type="checkbox" name="shipping_ups_eu_65" value="1" /> 619 {{ text_saver }} 620 {% endif %} 621 </label> 622 </div> 623 <div class="checkbox"> 624 <label> 625 {% if shipping_ups_eu_82 %} 626 <input type="checkbox" name="shipping_ups_eu_82" value="1" checked="checked" /> 627 {{ text_today_standard }} 628 {% else %} 629 <input type="checkbox" name="shipping_ups_eu_82" value="1" /> 630 {{ text_today_standard }} 631 {% endif %} 632 </label> 633 </div> 634 <div class="checkbox"> 635 <label> 636 {% if shipping_ups_eu_83 %} 637 <input type="checkbox" name="shipping_ups_eu_83" value="1" checked="checked" /> 638 {{ text_today_dedicated_courier }} 639 {% else %} 640 <input type="checkbox" name="shipping_ups_eu_83" value="1" /> 641 {{ text_today_dedicated_courier }} 642 {% endif %} 643 </label> 644 </div> 645 <div class="checkbox"> 646 <label> 647 {% if shipping_ups_eu_84 %} 648 <input type="checkbox" name="shipping_ups_eu_84" value="1" checked="checked" /> 649 {{ text_today_intercity }} 650 {% else %} 651 <input type="checkbox" name="shipping_ups_eu_84" value="1" /> 652 {{ text_today_intercity }} 653 {% endif %} 654 </label> 655 </div> 656 <div class="checkbox"> 657 <label> 658 {% if shipping_ups_eu_85 %} 659 <input type="checkbox" name="shipping_ups_eu_85" value="1" checked="checked" /> 660 {{ text_today_express }} 661 {% else %} 662 <input type="checkbox" name="shipping_ups_eu_85" value="1" /> 663 {{ text_today_express }} 664 {% endif %} 665 </label> 666 </div> 667 <div class="checkbox"> 668 <label> 669 {% if shipping_ups_eu_86 %} 670 <input type="checkbox" name="shipping_ups_eu_86" value="1" checked="checked" /> 671 {{ text_today_express_saver }} 672 {% else %} 673 <input type="checkbox" name="shipping_ups_eu_86" value="1" /> 674 {{ text_today_express_saver }} 675 {% endif %} 676 </label> 677 </div> 678 </div> 679 <div id="other"> 680 <div class="checkbox"> 681 <label> 682 {% if shipping_ups_other_07 %} 683 <input type="checkbox" name="shipping_ups_other_07" value="1" checked="checked" /> 684 {{ text_express }} 685 {% else %} 686 <input type="checkbox" name="shipping_ups_other_07" value="1" /> 687 {{ text_express }} 688 {% endif %} 689 </label> 690 </div> 691 <div class="checkbox"> 692 <label> 693 {% if shipping_ups_other_08 %} 694 <input type="checkbox" name="shipping_ups_other_08" value="1" checked="checked" /> 695 {{ text_expedited }} 696 {% else %} 697 <input type="checkbox" name="shipping_ups_other_08" value="1" /> 698 {{ text_expedited }} 699 {% endif %} 700 </label> 701 </div> 702 <div class="checkbox"> 703 <label> 704 {% if shipping_ups_other_11 %} 705 <input type="checkbox" name="shipping_ups_other_11" value="1" checked="checked" /> 706 {{ text_standard }} 707 {% else %} 708 <input type="checkbox" name="shipping_ups_other_11" value="1" /> 709 {{ text_standard }} 710 {% endif %} 711 </label> 712 </div> 713 <div class="checkbox"> 714 <label> 715 {% if shipping_ups_other_54 %} 716 <input type="checkbox" name="shipping_ups_other_54" value="1" checked="checked" /> 717 {{ text_worldwide_express_plus }} 718 {% else %} 719 <input type="checkbox" name="shipping_ups_other_54" value="1" /> 720 {{ text_worldwide_express_plus }} 721 {% endif %} 722 </label> 723 </div> 724 <div class="checkbox"> 725 <label> 726 {% if shipping_ups_other_65 %} 727 <input type="checkbox" name="shipping_ups_other_65" value="1" checked="checked" /> 728 {{ text_saver }} 729 {% else %} 730 <input type="checkbox" name="shipping_ups_other_65" value="1" /> 731 {{ text_saver }} 732 {% endif %} 733 </label> 734 </div> 735 </div> 736 </div> 737 <button type="button" onclick="$(this).parent().find(':checkbox').prop('checked', true);" class="btn btn-link">{{ text_select_all }}</button> / <button type="button" onclick="$(this).parent().find(':checkbox').prop('checked', false);" class="btn btn-link">{{ text_unselect_all }}</button></div> 738 </div> 739 <div class="form-group"> 740 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_insurance }}">{{ entry_insurance }}</span></label> 741 <div class="col-sm-10"> 742 <label class="radio-inline"> 743 {% if shipping_ups_insurance %} 744 <input type="radio" name="shipping_ups_insurance" value="1" checked="checked" /> 745 {{ text_yes }} 746 {% else %} 747 <input type="radio" name="shipping_ups_insurance" value="1" /> 748 {{ text_yes }} 749 {% endif %} 750 </label> 751 <label class="radio-inline"> 752 {% if not shipping_ups_insurance %} 753 <input type="radio" name="shipping_ups_insurance" value="0" checked="checked" /> 754 {{ text_no }} 755 {% else %} 756 <input type="radio" name="shipping_ups_insurance" value="0" /> 757 {{ text_no }} 758 {% endif %} 759 </label> 760 </div> 761 </div> 762 <div class="form-group"> 763 <label class="col-sm-2 control-label">{{ entry_display_weight }}</label> 764 <div class="col-sm-10"> 765 <label class="radio-inline"> 766 {% if shipping_ups_display_weight %} 767 <input type="radio" name="shipping_ups_display_weight" value="1" checked="checked" /> 768 {{ text_yes }} 769 {% else %} 770 <input type="radio" name="shipping_ups_display_weight" value="1" /> 771 {{ text_yes }} 772 {% endif %} 773 </label> 774 <label class="radio-inline"> 775 {% if not shipping_ups_display_weight %} 776 <input type="radio" name="shipping_ups_display_weight" value="0" checked="checked" /> 777 {{ text_no }} 778 {% else %} 779 <input type="radio" name="shipping_ups_display_weight" value="0" /> 780 {{ text_no }} 781 {% endif %} 782 </label> 783 </div> 784 </div> 785 <div class="form-group"> 786 <label class="col-sm-2 control-label" for="input-weight-class"><span data-toggle="tooltip" title="{{ help_weight_class }}">{{ entry_weight_class }}</span></label> 787 <div class="col-sm-10"> 788 <select name="shipping_ups_weight_class_id" id="input-weight-class" class="form-control"> 789 {% for weight_class in weight_classes %} 790 {% if weight_class.weight_class_id == shipping_ups_weight_class_id %} 791 <option value="{{ weight_class.weight_class_id }}" selected="selected">{{ weight_class.title }}</option> 792 {% else %} 793 <option value="{{ weight_class.weight_class_id }}">{{ weight_class.title }}</option> 794 {% endif %} 795 {% endfor %} 796 </select> 797 </div> 798 </div> 799 <div class="form-group"> 800 <label class="col-sm-2 control-label" for="input-length-class"><span data-toggle="tooltip" title="{{ help_length_class }}">{{ entry_length_class }}</span></label> 801 <div class="col-sm-10"> 802 <select name="shipping_ups_length_class_id" id="input-length-class" class="form-control"> 803 {% for length_class in length_classes %} 804 {% if length_class.length_class_id == shipping_ups_length_class_id %} 805 <option value="{{ length_class.length_class_id }}" selected="selected">{{ length_class.title }}</option> 806 {% else %} 807 <option value="{{ length_class.length_class_id }}">{{ length_class.title }}</option> 808 {% endif %} 809 {% endfor %} 810 </select> 811 </div> 812 </div> 813 <div class="form-group required"> 814 <label class="col-sm-2 control-label" for="input-length"><span data-toggle="tooltip" title="{{ help_dimension }}">{{ entry_dimension }}</span></label> 815 <div class="col-sm-10"> 816 <div class="row"> 817 <div class="col-sm-4"> 818 <input type="text" name="shipping_ups_length" value="{{ shipping_ups_length }}" placeholder="{{ entry_length }}" id="input-length" class="form-control" /> 819 </div> 820 <div class="col-sm-4"> 821 <input type="text" name="shipping_ups_width" value="{{ shipping_ups_width }}" placeholder="{{ entry_width }}" id="input-width" class="form-control" /> 822 </div> 823 <div class="col-sm-4"> 824 <input type="text" name="shipping_ups_height" value="{{ shipping_ups_height }}" placeholder="{{ entry_height }}" id="input-height" class="form-control" /> 825 </div> 826 </div> 827 {% if error_dimension %} 828 <div class="text-danger">{{ error_dimension }}</div> 829 {% endif %} 830 </div> 831 </div> 832 <div class="form-group"> 833 <label class="col-sm-2 control-label" for="input-tax-class">{{ entry_tax_class }}</label> 834 <div class="col-sm-10"> 835 <select name="shipping_ups_tax_class_id" id="input-tax-class" class="form-control"> 836 <option value="0">{{ text_none }}</option> 837 {% for tax_class in tax_classes %} 838 {% if tax_class.tax_class_id == shipping_ups_tax_class_id %} 839 <option value="{{ tax_class.tax_class_id }}" selected="selected">{{ tax_class.title }}</option> 840 {% else %} 841 <option value="{{ tax_class.tax_class_id }}">{{ tax_class.title }}</option> 842 {% endif %} 843 {% endfor %} 844 </select> 845 </div> 846 </div> 847 <div class="form-group"> 848 <label class="col-sm-2 control-label" for="input-geo-zone">{{ entry_geo_zone }}</label> 849 <div class="col-sm-10"> 850 <select name="shipping_ups_geo_zone_id" id="input-geo-zone" class="form-control"> 851 <option value="0">{{ text_all_zones }}</option> 852 {% for geo_zone in geo_zones %} 853 {% if geo_zone.geo_zone_id == shipping_ups_geo_zone_id %} 854 <option value="{{ geo_zone.geo_zone_id }}" selected="selected">{{ geo_zone.name }}</option> 855 {% else %} 856 <option value="{{ geo_zone.geo_zone_id }}">{{ geo_zone.name }}</option> 857 {% endif %} 858 {% endfor %} 859 </select> 860 </div> 861 </div> 862 <div class="form-group"> 863 <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label> 864 <div class="col-sm-10"> 865 <select name="shipping_ups_status" id="input-status" class="form-control"> 866 {% if shipping_ups_status %} 867 <option value="1" selected="selected">{{ text_enabled }}</option> 868 <option value="0">{{ text_disabled }}</option> 869 {% else %} 870 <option value="1">{{ text_enabled }}</option> 871 <option value="0" selected="selected">{{ text_disabled }}</option> 872 {% endif %} 873 </select> 874 </div> 875 </div> 876 <div class="form-group"> 877 <label class="col-sm-2 control-label" for="input-sort-order">{{ entry_sort_order }}</label> 878 <div class="col-sm-10"> 879 <input type="text" name="shipping_ups_sort_order" value="{{ shipping_ups_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" /> 880 </div> 881 </div> 882 <div class="form-group"> 883 <label class="col-sm-2 control-label" for="input-debug"><span data-toggle="tooltip" title="{{ help_debug }}">{{ entry_debug }}</span></label> 884 <div class="col-sm-10"> 885 <select name="shipping_ups_debug" id="input-debug" class="form-control"> 886 {% if shipping_ups_debug %} 887 <option value="1" selected="selected">{{ text_enabled }}</option> 888 <option value="0">{{ text_disabled }}</option> 889 {% else %} 890 <option value="1">{{ text_enabled }}</option> 891 <option value="0" selected="selected">{{ text_disabled }}</option> 892 {% endif %} 893 </select> 894 </div> 895 </div> 896 </form> 897 </div> 898 </div> 899 </div> 900 <script type="text/javascript"><!-- 901 $('select[name=\'shipping_ups_origin\']').on('change', function() { 902 $('#service > div').hide(); 903 904 $('#' + this.value).show(); 905 }); 906 907 $('select[name=\'shipping_ups_origin\']').trigger('change'); 908 //--></script></div> 909 {{ footer }}