usps.twig (33909B)
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-user-id">{{ entry_user_id }}</label> 30 <div class="col-sm-10"> 31 <input type="text" name="shipping_usps_user_id" value="{{ shipping_usps_user_id }}" placeholder="{{ entry_user_id }}" id="input-user-id" class="form-control" /> 32 {% if error_user_id %} 33 <div class="text-danger">{{ error_user_id }}</div> 34 {% endif %} 35 </div> 36 </div> 37 <div class="form-group required"> 38 <label class="col-sm-2 control-label" for="input-postcode">{{ entry_postcode }}</label> 39 <div class="col-sm-10"> 40 <input type="text" name="shipping_usps_postcode" value="{{ shipping_usps_postcode }}" placeholder="{{ entry_postcode }}" id="input-postcode" class="form-control" /> 41 {% if error_postcode %} 42 <div class="text-danger">{{ error_postcode }}</div> 43 {% endif %} 44 </div> 45 </div> 46 <div class="form-group"> 47 <label class="col-sm-2 control-label">{{ entry_domestic }}</label> 48 <div class="col-sm-10"> 49 <div class="well well-sm" style="height: 150px; overflow: auto;"> 50 <div class="checkbox"> 51 <label> 52 {% if shipping_usps_domestic_00 %} 53 <input type="checkbox" name="shipping_usps_domestic_00" value="1" checked="checked" /> 54 {{ text_domestic_00 }} 55 {% else %} 56 <input type="checkbox" name="shipping_usps_domestic_00" value="1" /> 57 {{ text_domestic_00 }} 58 {% endif %} 59 </label> 60 </div> 61 <div class="checkbox"> 62 <label> 63 {% if shipping_usps_domestic_01 %} 64 <input type="checkbox" name="shipping_usps_domestic_01" value="1" checked="checked" /> 65 {{ text_domestic_01 }} 66 {% else %} 67 <input type="checkbox" name="shipping_usps_domestic_01" value="1" /> 68 {{ text_domestic_01 }} 69 {% endif %} 70 </label> 71 </div> 72 <div class="checkbox"> 73 <label> 74 {% if shipping_usps_domestic_02 %} 75 <input type="checkbox" name="shipping_usps_domestic_02" value="1" checked="checked" /> 76 {{ text_domestic_02 }} 77 {% else %} 78 <input type="checkbox" name="shipping_usps_domestic_02" value="1" /> 79 {{ text_domestic_02 }} 80 {% endif %} 81 </label> 82 </div> 83 <div class="checkbox"> 84 <label> 85 {% if shipping_usps_domestic_03 %} 86 <input type="checkbox" name="shipping_usps_domestic_03" value="1" checked="checked" /> 87 {{ text_domestic_03 }} 88 {% else %} 89 <input type="checkbox" name="shipping_usps_domestic_03" value="1" /> 90 {{ text_domestic_03 }} 91 {% endif %} 92 </label> 93 </div> 94 <div class="checkbox"> 95 <label> 96 {% if shipping_usps_domestic_1 %} 97 <input type="checkbox" name="shipping_usps_domestic_1" value="1" checked="checked" /> 98 {{ text_domestic_1 }} 99 {% else %} 100 <input type="checkbox" name="shipping_usps_domestic_1" value="1" /> 101 {{ text_domestic_1 }} 102 {% endif %} 103 </label> 104 </div> 105 <div class="checkbox"> 106 <label> 107 {% if shipping_usps_domestic_2 %} 108 <input type="checkbox" name="shipping_usps_domestic_2" value="1" checked="checked" /> 109 {{ text_domestic_2 }} 110 {% else %} 111 <input type="checkbox" name="shipping_usps_domestic_2" value="1" /> 112 {{ text_domestic_2 }} 113 {% endif %} 114 </label> 115 </div> 116 <div class="checkbox"> 117 <label> 118 {% if shipping_usps_domestic_3 %} 119 <input type="checkbox" name="shipping_usps_domestic_3" value="1" checked="checked" /> 120 {{ text_domestic_3 }} 121 {% else %} 122 <input type="checkbox" name="shipping_usps_domestic_3" value="1" /> 123 {{ text_domestic_3 }} 124 {% endif %} 125 </label> 126 </div> 127 <div class="checkbox"> 128 <label> 129 {% if shipping_usps_domestic_4 %} 130 <input type="checkbox" name="shipping_usps_domestic_4" value="1" checked="checked" /> 131 {{ text_domestic_4 }} 132 {% else %} 133 <input type="checkbox" name="shipping_usps_domestic_4" value="1" /> 134 {{ text_domestic_4 }} 135 {% endif %} 136 </label> 137 </div> 138 <div class="checkbox"> 139 <label> 140 {% if shipping_usps_domestic_5 %} 141 <input type="checkbox" name="shipping_usps_domestic_5" value="1" checked="checked" /> 142 {{ text_domestic_5 }} 143 {% else %} 144 <input type="checkbox" name="shipping_usps_domestic_5" value="1" /> 145 {{ text_domestic_5 }} 146 {% endif %} 147 </label> 148 </div> 149 <div class="checkbox"> 150 <label> 151 {% if shipping_usps_domestic_6 %} 152 <input type="checkbox" name="shipping_usps_domestic_6" value="1" checked="checked" /> 153 {{ text_domestic_6 }} 154 {% else %} 155 <input type="checkbox" name="shipping_usps_domestic_6" value="1" /> 156 {{ text_domestic_6 }} 157 {% endif %} 158 </label> 159 </div> 160 <div class="checkbox"> 161 <label> 162 {% if shipping_usps_domestic_7 %} 163 <input type="checkbox" name="shipping_usps_domestic_7" value="1" checked="checked" /> 164 {{ text_domestic_7 }} 165 {% else %} 166 <input type="checkbox" name="shipping_usps_domestic_7" value="1" /> 167 {{ text_domestic_7 }} 168 {% endif %} 169 </label> 170 </div> 171 <div class="checkbox"> 172 <label> 173 {% if shipping_usps_domestic_12 %} 174 <input type="checkbox" name="shipping_usps_domestic_12" value="1" checked="checked" /> 175 {{ text_domestic_12 }} 176 {% else %} 177 <input type="checkbox" name="shipping_usps_domestic_12" value="1" /> 178 {{ text_domestic_12 }} 179 {% endif %} 180 </label> 181 </div> 182 <div class="checkbox"> 183 <label> 184 {% if shipping_usps_domestic_13 %} 185 <input type="checkbox" name="shipping_usps_domestic_13" value="1" checked="checked" /> 186 {{ text_domestic_13 }} 187 {% else %} 188 <input type="checkbox" name="shipping_usps_domestic_13" value="1" /> 189 {{ text_domestic_13 }} 190 {% endif %} 191 </label> 192 </div> 193 <div class="checkbox"> 194 <label> 195 {% if shipping_usps_domestic_16 %} 196 <input type="checkbox" name="shipping_usps_domestic_16" value="1" checked="checked" /> 197 {{ text_domestic_16 }} 198 {% else %} 199 <input type="checkbox" name="shipping_usps_domestic_16" value="1" /> 200 {{ text_domestic_16 }} 201 {% endif %} 202 </label> 203 </div> 204 <div class="checkbox"> 205 <label> 206 {% if shipping_usps_domestic_17 %} 207 <input type="checkbox" name="shipping_usps_domestic_17" value="1" checked="checked" /> 208 {{ text_domestic_17 }} 209 {% else %} 210 <input type="checkbox" name="shipping_usps_domestic_17" value="1" /> 211 {{ text_domestic_17 }} 212 {% endif %} 213 </label> 214 </div> 215 <div class="checkbox"> 216 <label> 217 {% if shipping_usps_domestic_18 %} 218 <input type="checkbox" name="shipping_usps_domestic_18" value="1" checked="checked" /> 219 {{ text_domestic_18 }} 220 {% else %} 221 <input type="checkbox" name="shipping_usps_domestic_18" value="1" /> 222 {{ text_domestic_18 }} 223 {% endif %} 224 </label> 225 </div> 226 <div class="checkbox"> 227 <label> 228 {% if shipping_usps_domestic_19 %} 229 <input type="checkbox" name="shipping_usps_domestic_19" value="1" checked="checked" /> 230 {{ text_domestic_19 }} 231 {% else %} 232 <input type="checkbox" name="shipping_usps_domestic_19" value="1" /> 233 {{ text_domestic_19 }} 234 {% endif %} 235 </label> 236 </div> 237 <div class="checkbox"> 238 <label> 239 {% if shipping_usps_domestic_22 %} 240 <input type="checkbox" name="shipping_usps_domestic_22" value="1" checked="checked" /> 241 {{ text_domestic_22 }} 242 {% else %} 243 <input type="checkbox" name="shipping_usps_domestic_22" value="1" /> 244 {{ text_domestic_22 }} 245 {% endif %} 246 </label> 247 </div> 248 <div class="checkbox"> 249 <label> 250 {% if shipping_usps_domestic_23 %} 251 <input type="checkbox" name="shipping_usps_domestic_23" value="1" checked="checked" /> 252 {{ text_domestic_23 }} 253 {% else %} 254 <input type="checkbox" name="shipping_usps_domestic_23" value="1" /> 255 {{ text_domestic_23 }} 256 {% endif %} 257 </label> 258 </div> 259 <div class="checkbox"> 260 <label> 261 {% if shipping_usps_domestic_25 %} 262 <input type="checkbox" name="shipping_usps_domestic_25" value="1" checked="checked" /> 263 {{ text_domestic_25 }} 264 {% else %} 265 <input type="checkbox" name="shipping_usps_domestic_25" value="1" /> 266 {{ text_domestic_25 }} 267 {% endif %} 268 </label> 269 </div> 270 <div class="checkbox"> 271 <label> 272 {% if shipping_usps_domestic_27 %} 273 <input type="checkbox" name="shipping_usps_domestic_27" value="1" checked="checked" /> 274 {{ text_domestic_27 }} 275 {% else %} 276 <input type="checkbox" name="shipping_usps_domestic_27" value="1" /> 277 {{ text_domestic_27 }} 278 {% endif %} 279 </label> 280 </div> 281 <div class="checkbox"> 282 <label> 283 {% if shipping_usps_domestic_28 %} 284 <input type="checkbox" name="shipping_usps_domestic_28" value="1" checked="checked" /> 285 {{ text_domestic_28 }} 286 {% else %} 287 <input type="checkbox" name="shipping_usps_domestic_28" value="1" /> 288 {{ text_domestic_28 }} 289 {% endif %} 290 </label> 291 </div> 292 </div> 293 <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> 294 </div> 295 <div class="form-group"> 296 <label class="col-sm-2 control-label">{{ entry_international }}</label> 297 <div class="col-sm-10"> 298 <div class="well well-sm" style="height: 150px; overflow: auto;"> 299 <div class="checkbox"> 300 <label> 301 {% if shipping_usps_international_1 %} 302 <input type="checkbox" name="shipping_usps_international_1" value="1" checked="checked" /> 303 {{ text_international_1 }} 304 {% else %} 305 <input type="checkbox" name="shipping_usps_international_1" value="1" /> 306 {{ text_international_1 }} 307 {% endif %} 308 </label> 309 </div> 310 <div class="checkbox"> 311 <label> 312 {% if shipping_usps_international_2 %} 313 <input type="checkbox" name="shipping_usps_international_2" value="1" checked="checked" /> 314 {{ text_international_2 }} 315 {% else %} 316 <input type="checkbox" name="shipping_usps_international_2" value="1" /> 317 {{ text_international_2 }} 318 {% endif %} 319 </label> 320 </div> 321 <div class="checkbox"> 322 <label> 323 {% if shipping_usps_international_4 %} 324 <input type="checkbox" name="shipping_usps_international_4" value="1" checked="checked" /> 325 {{ text_international_4 }} 326 {% else %} 327 <input type="checkbox" name="shipping_usps_international_4" value="1" /> 328 {{ text_international_4 }} 329 {% endif %} 330 </label> 331 </div> 332 <div class="checkbox"> 333 <label> 334 {% if shipping_usps_international_5 %} 335 <input type="checkbox" name="shipping_usps_international_5" value="1" checked="checked" /> 336 {{ text_international_5 }} 337 {% else %} 338 <input type="checkbox" name="shipping_usps_international_5" value="1" /> 339 {{ text_international_5 }} 340 {% endif %} 341 </label> 342 </div> 343 <div class="checkbox"> 344 <label> 345 {% if shipping_usps_international_6 %} 346 <input type="checkbox" name="shipping_usps_international_6" value="1" checked="checked" /> 347 {{ text_international_6 }} 348 {% else %} 349 <input type="checkbox" name="shipping_usps_international_6" value="1" /> 350 {{ text_international_6 }} 351 {% endif %} 352 </label> 353 </div> 354 <div class="checkbox"> 355 <label> 356 {% if shipping_usps_international_7 %} 357 <input type="checkbox" name="shipping_usps_international_7" value="1" checked="checked" /> 358 {{ text_international_7 }} 359 {% else %} 360 <input type="checkbox" name="shipping_usps_international_7" value="1" /> 361 {{ text_international_7 }} 362 {% endif %} 363 </label> 364 </div> 365 <div class="checkbox"> 366 <label> 367 {% if shipping_usps_international_8 %} 368 <input type="checkbox" name="shipping_usps_international_8" value="1" checked="checked" /> 369 {{ text_international_8 }} 370 {% else %} 371 <input type="checkbox" name="shipping_usps_international_8" value="1" /> 372 {{ text_international_8 }} 373 {% endif %} 374 </label> 375 </div> 376 <div class="checkbox"> 377 <label> 378 {% if shipping_usps_international_9 %} 379 <input type="checkbox" name="shipping_usps_international_9" value="1" checked="checked" /> 380 {{ text_international_9 }} 381 {% else %} 382 <input type="checkbox" name="shipping_usps_international_9" value="1" /> 383 {{ text_international_9 }} 384 {% endif %} 385 </label> 386 </div> 387 <div class="checkbox"> 388 <label> 389 {% if shipping_usps_international_10 %} 390 <input type="checkbox" name="shipping_usps_international_10" value="1" checked="checked" /> 391 {{ text_international_10 }} 392 {% else %} 393 <input type="checkbox" name="shipping_usps_international_10" value="1" /> 394 {{ text_international_10 }} 395 {% endif %} 396 </label> 397 </div> 398 <div class="checkbox"> 399 <label> 400 {% if shipping_usps_international_11 %} 401 <input type="checkbox" name="shipping_usps_international_11" value="1" checked="checked" /> 402 {{ text_international_11 }} 403 {% else %} 404 <input type="checkbox" name="shipping_usps_international_11" value="1" /> 405 {{ text_international_11 }} 406 {% endif %} 407 </label> 408 </div> 409 <div class="checkbox"> 410 <label> 411 {% if shipping_usps_international_12 %} 412 <input type="checkbox" name="shipping_usps_international_12" value="1" checked="checked" /> 413 {{ text_international_12 }} 414 {% else %} 415 <input type="checkbox" name="shipping_usps_international_12" value="1" /> 416 {{ text_international_12 }} 417 {% endif %} 418 </label> 419 </div> 420 <div class="checkbox"> 421 <label> 422 {% if shipping_usps_international_13 %} 423 <input type="checkbox" name="shipping_usps_international_13" value="1" checked="checked" /> 424 {{ text_international_13 }} 425 {% else %} 426 <input type="checkbox" name="shipping_usps_international_13" value="1" /> 427 {{ text_international_13 }} 428 {% endif %} 429 </label> 430 </div> 431 <div class="checkbox"> 432 <label> 433 {% if shipping_usps_international_14 %} 434 <input type="checkbox" name="shipping_usps_international_14" value="1" checked="checked" /> 435 {{ text_international_14 }} 436 {% else %} 437 <input type="checkbox" name="shipping_usps_international_14" value="1" /> 438 {{ text_international_14 }} 439 {% endif %} 440 </label> 441 </div> 442 <div class="checkbox"> 443 <label> 444 {% if shipping_usps_international_15 %} 445 <input type="checkbox" name="shipping_usps_international_15" value="1" checked="checked" /> 446 {{ text_international_15 }} 447 {% else %} 448 <input type="checkbox" name="shipping_usps_international_15" value="1" /> 449 {{ text_international_15 }} 450 {% endif %} 451 </label> 452 </div> 453 <div class="checkbox"> 454 <label> 455 {% if shipping_usps_international_16 %} 456 <input type="checkbox" name="shipping_usps_international_16" value="1" checked="checked" /> 457 {{ text_international_16 }} 458 {% else %} 459 <input type="checkbox" name="shipping_usps_international_16" value="1" /> 460 {{ text_international_16 }} 461 {% endif %} 462 </label> 463 </div> 464 <div class="checkbox"> 465 <label> 466 {% if shipping_usps_international_21 %} 467 <input type="checkbox" name="shipping_usps_international_21" value="1" checked="checked" /> 468 {{ text_international_21 }} 469 {% else %} 470 <input type="checkbox" name="shipping_usps_international_21" value="1" /> 471 {{ text_international_21 }} 472 {% endif %} 473 </label> 474 </div> 475 </div> 476 <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> 477 </div> 478 <div class="form-group"> 479 <label class="col-sm-2 control-label" for="input-size">{{ entry_size }}</label> 480 <div class="col-sm-10"> 481 <select name="shipping_usps_size" id="input-size" class="form-control"> 482 {% for size in sizes %} 483 {% if size.value == shipping_usps_size %} 484 <option value="{{ size.value }}" selected="selected">{{ size.text }}</option> 485 {% else %} 486 <option value="{{ size.value }}">{{ size.text }}</option> 487 {% endif %} 488 {% endfor %} 489 </select> 490 </div> 491 </div> 492 <div class="form-group"> 493 <label class="col-sm-2 control-label" for="input-container">{{ entry_container }}</label> 494 <div class="col-sm-10"> 495 <select name="shipping_usps_container" id="input-container" class="form-control"> 496 {% for container in containers %} 497 {% if container.value == shipping_usps_container %} 498 <option value="{{ container.value }}" selected="selected">{{ container.text }}</option> 499 {% else %} 500 <option value="{{ container.value }}">{{ container.text }}</option> 501 {% endif %} 502 {% endfor %} 503 </select> 504 </div> 505 </div> 506 <div class="form-group"> 507 <label class="col-sm-2 control-label" for="input-machinable">{{ entry_machinable }}</label> 508 <div class="col-sm-10"> 509 <select name="shipping_usps_machinable" id="input-machinable" class="form-control"> 510 {% if shipping_usps_machinable %} 511 <option value="1" selected="selected">{{ text_yes }}</option> 512 <option value="0">{{ text_no }}</option> 513 {% else %} 514 <option value="1">{{ text_yes }}</option> 515 <option value="0" selected="selected">{{ text_no }}</option> 516 {% endif %} 517 </select> 518 </div> 519 </div> 520 <div class="form-group required"> 521 <label class="col-sm-2 control-label" for="input-length"><span data-toggle="tooltip" title="{{ help_dimension }}">{{ entry_dimension }}</span></label> 522 <div class="col-sm-10"> 523 <div class="row"> 524 <div class="col-sm-4"> 525 <input type="text" name="shipping_usps_length" value="{{ shipping_usps_length }}" placeholder="{{ entry_length }}" id="input-length" class="form-control" /> 526 </div> 527 <div class="col-sm-4"> 528 <input type="text" name="shipping_usps_width" value="{{ shipping_usps_width }}" placeholder="{{ entry_width }}" id="input-width" class="form-control" /> 529 </div> 530 <div class="col-sm-4"> 531 <input type="text" name="shipping_usps_height" value="{{ shipping_usps_height }}" placeholder="{{ entry_height }}" id="input-height" class="form-control" /> 532 </div> 533 </div> 534 {% if error_dimension %} 535 <div class="text-danger">{{ error_dimension }}</div> 536 {% endif %} 537 </div> 538 </div> 539 <div class="form-group"> 540 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_display_time }}">{{ entry_display_time }}</span></label> 541 <div class="col-sm-10"> 542 <label class="radio-inline"> 543 {% if shipping_usps_display_time %} 544 <input type="radio" name="shipping_usps_display_time" value="1" checked="checked" /> 545 {{ text_yes }} 546 {% else %} 547 <input type="radio" name="shipping_usps_display_time" value="1" /> 548 {{ text_yes }} 549 {% endif %} 550 </label> 551 <label class="radio-inline"> 552 {% if not shipping_usps_display_time %} 553 <input type="radio" name="shipping_usps_display_time" value="0" checked="checked" /> 554 {{ text_no }} 555 {% else %} 556 <input type="radio" name="shipping_usps_display_time" value="0" /> 557 {{ text_no }} 558 {% endif %} 559 </label> 560 </div> 561 </div> 562 <div class="form-group"> 563 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_display_weight }}">{{ entry_display_weight }}</span></label> 564 <div class="col-sm-10"> 565 <label class="radio-inline"> 566 {% if shipping_usps_display_weight %} 567 <input type="radio" name="shipping_usps_display_weight" value="1" checked="checked" /> 568 {{ text_yes }} 569 {% else %} 570 <input type="radio" name="shipping_usps_display_weight" value="1" /> 571 {{ text_yes }} 572 {% endif %} 573 </label> 574 <label class="radio-inline"> 575 {% if not shipping_usps_display_weight %} 576 <input type="radio" name="shipping_usps_display_weight" value="0" checked="checked" /> 577 {{ text_no }} 578 {% else %} 579 <input type="radio" name="shipping_usps_display_weight" value="0" /> 580 {{ text_no }} 581 {% endif %} 582 </label> 583 </div> 584 </div> 585 <div class="form-group"> 586 <label class="col-sm-2 control-label" for="input-weight-class"><span data-toggle="tooltip" title="{{ help_weight_class }}">{{ entry_weight_class }}</span></label> 587 <div class="col-sm-10"> 588 <select name="shipping_usps_weight_class_id" id="input-weight-class" class="form-control"> 589 {% for weight_class in weight_classes %} 590 {% if weight_class.weight_class_id == shipping_usps_weight_class_id %} 591 <option value="{{ weight_class.weight_class_id }}" selected="selected">{{ weight_class.title }}</option> 592 {% else %} 593 <option value="{{ weight_class.weight_class_id }}">{{ weight_class.title }}</option> 594 {% endif %} 595 {% endfor %} 596 </select> 597 </div> 598 </div> 599 <div class="form-group"> 600 <label class="col-sm-2 control-label" for="input-tax-class">{{ entry_tax }}</label> 601 <div class="col-sm-10"> 602 <select name="shipping_usps_tax_class_id" id="input-tax-class" class="form-control"> 603 <option value="0">{{ text_none }}</option> 604 {% for tax_class in tax_classes %} 605 {% if tax_class.tax_class_id == shipping_usps_tax_class_id %} 606 <option value="{{ tax_class.tax_class_id }}" selected="selected">{{ tax_class.title }}</option> 607 {% else %} 608 <option value="{{ tax_class.tax_class_id }}">{{ tax_class.title }}</option> 609 {% endif %} 610 {% endfor %} 611 </select> 612 </div> 613 </div> 614 <div class="form-group"> 615 <label class="col-sm-2 control-label" for="input-geo-zone">{{ entry_geo_zone }}</label> 616 <div class="col-sm-10"> 617 <select name="shipping_usps_geo_zone_id" id="input-geo-zone" class="form-control"> 618 <option value="0">{{ text_all_zones }}</option> 619 {% for geo_zone in geo_zones %} 620 {% if geo_zone.geo_zone_id == shipping_usps_geo_zone_id %} 621 <option value="{{ geo_zone.geo_zone_id }}" selected="selected">{{ geo_zone.name }}</option> 622 {% else %} 623 <option value="{{ geo_zone.geo_zone_id }}">{{ geo_zone.name }}</option> 624 {% endif %} 625 {% endfor %} 626 </select> 627 </div> 628 </div> 629 <div class="form-group"> 630 <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label> 631 <div class="col-sm-10"> 632 <select name="shipping_usps_status" id="input-status" class="form-control"> 633 {% if shipping_usps_status %} 634 <option value="1" selected="selected">{{ text_enabled }}</option> 635 <option value="0">{{ text_disabled }}</option> 636 {% else %} 637 <option value="1">{{ text_enabled }}</option> 638 <option value="0" selected="selected">{{ text_disabled }}</option> 639 {% endif %} 640 </select> 641 </div> 642 </div> 643 <div class="form-group"> 644 <label class="col-sm-2 control-label" for="input-sort-order">{{ entry_sort_order }}</label> 645 <div class="col-sm-10"> 646 <input type="text" name="shipping_usps_sort_order" value="{{ shipping_usps_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" /> 647 </div> 648 </div> 649 <div class="form-group"> 650 <label class="col-sm-2 control-label" for="input-debug"><span data-toggle="tooltip" title="{{ help_debug }}">{{ entry_debug }}</span></label> 651 <div class="col-sm-10"> 652 <select name="shipping_usps_debug" id="input-debug" class="form-control"> 653 {% if shipping_usps_debug %} 654 <option value="1" selected="selected">{{ text_enabled }}</option> 655 <option value="0">{{ text_disabled }}</option> 656 {% else %} 657 <option value="1">{{ text_enabled }}</option> 658 <option value="0" selected="selected">{{ text_disabled }}</option> 659 {% endif %} 660 </select> 661 </div> 662 </div> 663 </form> 664 </div> 665 </div> 666 </div> 667 </div> 668 {{ footer }}