store_form.twig (34484B)
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-store" 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 {% if success %} 23 <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }} 24 <button type="button" class="close" data-dismiss="alert">×</button> 25 </div> 26 {% endif %} 27 <div class="panel panel-default"> 28 <div class="panel-heading"> 29 <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_form }}</h3> 30 </div> 31 <div class="panel-body"> 32 <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-store" class="form-horizontal"> 33 <ul class="nav nav-tabs"> 34 <li class="active"><a href="#tab-general" data-toggle="tab">{{ tab_general }}</a></li> 35 <li><a href="#tab-store" data-toggle="tab">{{ tab_store }}</a></li> 36 <li><a href="#tab-local" data-toggle="tab">{{ tab_local }}</a></li> 37 <li><a href="#tab-option" data-toggle="tab">{{ tab_option }}</a></li> 38 <li><a href="#tab-image" data-toggle="tab">{{ tab_image }}</a></li> 39 <li><a href="#tab-server" data-toggle="tab">{{ tab_server }}</a></li> 40 </ul> 41 <div class="tab-content"> 42 <div class="tab-pane active" id="tab-general"> 43 <div class="form-group required"> 44 <label class="col-sm-2 control-label" for="input-url"><span data-toggle="tooltip" data-html="true" title="{{ help_url|escape('html') }}">{{ entry_url }}</span></label> 45 <div class="col-sm-10"> 46 <input type="text" name="config_url" value="{{ config_url }}" placeholder="{{ entry_url }}" id="input-url" class="form-control" /> 47 {% if error_url %} 48 <div class="text-danger">{{ error_url }}</div> 49 {% endif %} 50 </div> 51 </div> 52 <div class="form-group"> 53 <label class="col-sm-2 control-label" for="input-ssl"><span data-toggle="tooltip" data-html="true" title="{{ help_ssl }}">{{ entry_ssl }}</span></label> 54 <div class="col-sm-10"> 55 <input type="text" name="config_ssl" value="{{ config_ssl }}" placeholder="{{ entry_ssl }}" id="input-ssl" class="form-control" /> 56 </div> 57 </div> 58 <div class="form-group required"> 59 <label class="col-sm-2 control-label" for="input-meta-title">{{ entry_meta_title }}</label> 60 <div class="col-sm-10"> 61 <input type="text" name="config_meta_title" value="{{ config_meta_title }}" placeholder="{{ entry_meta_title }}" id="input-meta-title" class="form-control" /> 62 {% if error_meta_title %} 63 <div class="text-danger">{{ error_meta_title }}</div> 64 {% endif %} 65 </div> 66 </div> 67 <div class="form-group"> 68 <label class="col-sm-2 control-label" for="input-meta-description">{{ entry_meta_description }}</label> 69 <div class="col-sm-10"> 70 <textarea name="config_meta_description" rows="5" placeholder="{{ entry_meta_description }}" id="input-meta-description" class="form-control">{{ config_meta_description }}</textarea> 71 </div> 72 </div> 73 <div class="form-group"> 74 <label class="col-sm-2 control-label" for="input-meta-keyword">{{ entry_meta_keyword }}</label> 75 <div class="col-sm-10"> 76 <textarea name="config_meta_keyword" rows="5" placeholder="{{ entry_meta_keyword }}" id="input-meta-keyword" class="form-control">{{ config_meta_keyword }}</textarea> 77 </div> 78 </div> 79 <div class="form-group"> 80 <label class="col-sm-2 control-label" for="input-theme">{{ entry_theme }}</label> 81 <div class="col-sm-10"> 82 <select name="config_theme" id="input-theme" class="form-control"> 83 {% for theme in themes %} 84 {% if theme.value == config_theme %} 85 <option value="{{ theme.value }}" selected="selected">{{ theme.text }}</option> 86 {% else %} 87 <option value="{{ theme.value }}">{{ theme.text }}</option> 88 {% endif %} 89 {% endfor %} 90 </select> 91 <br /> 92 <img src="" alt="" id="theme" class="img-thumbnail" /></div> 93 </div> 94 <div class="form-group"> 95 <label class="col-sm-2 control-label" for="input-layout">{{ entry_layout }}</label> 96 <div class="col-sm-10"> 97 <select name="config_layout_id" id="input-layout" class="form-control"> 98 {% for layout in layouts %} 99 {% if layout.layout_id == config_layout_id %} 100 <option value="{{ layout.layout_id }}" selected="selected">{{ layout.name }}</option> 101 {% else %} 102 <option value="{{ layout.layout_id }}">{{ layout.name }}</option> 103 {% endif %} 104 {% endfor %} 105 </select> 106 </div> 107 </div> 108 </div> 109 <div class="tab-pane" id="tab-store"> 110 <div class="form-group required"> 111 <label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label> 112 <div class="col-sm-10"> 113 <input type="text" name="config_name" value="{{ config_name }}" placeholder="{{ entry_name }}" id="input-name" class="form-control" /> 114 {% if error_name %} 115 <div class="text-danger">{{ error_name }}</div> 116 {% endif %} 117 </div> 118 </div> 119 <div class="form-group required"> 120 <label class="col-sm-2 control-label" for="input-owner">{{ entry_owner }}</label> 121 <div class="col-sm-10"> 122 <input type="text" name="config_owner" value="{{ config_owner }}" placeholder="{{ entry_owner }}" id="input-owner" class="form-control" /> 123 {% if error_owner %} 124 <div class="text-danger">{{ error_owner }}</div> 125 {% endif %} 126 </div> 127 </div> 128 <div class="form-group required"> 129 <label class="col-sm-2 control-label" for="input-address">{{ entry_address }}</label> 130 <div class="col-sm-10"> 131 <textarea name="config_address" rows="5" placeholder="{{ entry_address }}" id="input-address" class="form-control">{{ config_address }}</textarea> 132 {% if error_address %} 133 <div class="text-danger">{{ error_address }}</div> 134 {% endif %} 135 </div> 136 </div> 137 <div class="form-group"> 138 <label class="col-sm-2 control-label" for="input-geocode"><span data-toggle="tooltip" data-container="#tab-general" title="{{ help_geocode }}">{{ entry_geocode }}</span></label> 139 <div class="col-sm-10"> 140 <input type="text" name="config_geocode" value="{{ config_geocode }}" placeholder="{{ entry_geocode }}" id="input-geocode" class="form-control" /> 141 </div> 142 </div> 143 <div class="form-group required"> 144 <label class="col-sm-2 control-label" for="input-email">{{ entry_email }}</label> 145 <div class="col-sm-10"> 146 <input type="text" name="config_email" value="{{ config_email }}" placeholder="{{ entry_email }}" id="input-email" class="form-control" /> 147 {% if error_email %} 148 <div class="text-danger">{{ error_email }}</div> 149 {% endif %} 150 </div> 151 </div> 152 <div class="form-group required"> 153 <label class="col-sm-2 control-label" for="input-telephone">{{ entry_telephone }}</label> 154 <div class="col-sm-10"> 155 <input type="text" name="config_telephone" value="{{ config_telephone }}" placeholder="{{ entry_telephone }}" id="input-telephone" class="form-control" /> 156 {% if error_telephone %} 157 <div class="text-danger">{{ error_telephone }}</div> 158 {% endif %} 159 </div> 160 </div> 161 <div class="form-group"> 162 <label class="col-sm-2 control-label" for="input-fax">{{ entry_fax }}</label> 163 <div class="col-sm-10"> 164 <input type="text" name="config_fax" value="{{ config_fax }}" placeholder="{{ entry_fax }}" id="input-fax" class="form-control" /> 165 </div> 166 </div> 167 <div class="form-group"> 168 <label class="col-sm-2 control-label" for="input-image">{{ entry_image }}</label> 169 <div class="col-sm-10"><a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="{{ thumb }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a> 170 <input type="hidden" name="config_image" value="{{ config_image }}" id="input-image" /> 171 </div> 172 </div> 173 <div class="form-group"> 174 <label class="col-sm-2 control-label" for="input-open"><span data-toggle="tooltip" title="{{ help_open }}">{{ entry_open }}</span></label> 175 <div class="col-sm-10"> 176 <textarea name="config_open" rows="5" placeholder="{{ entry_open }}" id="input-open" class="form-control">{{ config_open }}</textarea> 177 </div> 178 </div> 179 <div class="form-group"> 180 <label class="col-sm-2 control-label" for="input-comment"><span data-toggle="tooltip" title="{{ help_comment }}">{{ entry_comment }}</span></label> 181 <div class="col-sm-10"> 182 <textarea name="config_comment" rows="5" placeholder="{{ entry_comment }}" id="input-comment" class="form-control">{{ config_comment }}</textarea> 183 </div> 184 </div> 185 {% if locations %} 186 <div class="form-group"> 187 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_location }}">{{ entry_location }}</span></label> 188 <div class="col-sm-10"> 189 {% for location in locations %} 190 <div class="checkbox"> 191 <label> 192 {% if location.location_id in config_location %} 193 <input type="checkbox" name="config_location[]" value="{{ location.location_id }}" checked="checked" /> 194 {{ location.name }} 195 {% else %} 196 <input type="checkbox" name="config_location[]" value="{{ location.location_id }}" /> 197 {{ location.name }} 198 {% endif %} 199 </label> 200 </div> 201 {% endfor %} 202 </div> 203 </div> 204 {% endif %} 205 </div> 206 <div class="tab-pane" id="tab-local"> 207 <div class="form-group"> 208 <label class="col-sm-2 control-label" for="input-country">{{ entry_country }}</label> 209 <div class="col-sm-10"> 210 <select name="config_country_id" id="input-country" class="form-control"> 211 {% for country in countries %} 212 {% if country.country_id == config_country_id %} 213 <option value="{{ country.country_id }}" selected="selected">{{ country.name }}</option> 214 {% else %} 215 <option value="{{ country.country_id }}">{{ country.name }}</option> 216 {% endif %} 217 {% endfor %} 218 </select> 219 </div> 220 </div> 221 <div class="form-group"> 222 <label class="col-sm-2 control-label" for="input-zone">{{ entry_zone }}</label> 223 <div class="col-sm-10"> 224 <select name="config_zone_id" id="input-zone" class="form-control"> 225 </select> 226 </div> 227 </div> 228 <div class="form-group"> 229 <label class="col-sm-2 control-label" for="input-language">{{ entry_language }}</label> 230 <div class="col-sm-10"> 231 <select name="config_language" id="input-language" class="form-control"> 232 {% for language in languages %} 233 {% if language.code == config_language %} 234 <option value="{{ language.code }}" selected="selected">{{ language.name }}</option> 235 {% else %} 236 <option value="{{ language.code }}">{{ language.name }}</option> 237 {% endif %} 238 {% endfor %} 239 </select> 240 </div> 241 </div> 242 <div class="form-group"> 243 <label class="col-sm-2 control-label" for="input-currency"><span data-toggle="tooltip" title="{{ help_currency }}">{{ entry_currency }}</span></label> 244 <div class="col-sm-10"> 245 <select name="config_currency" id="input-currency" class="form-control"> 246 {% for currency in currencies %} 247 {% if currency.code == config_currency %} 248 <option value="{{ currency.code }}" selected="selected">{{ currency.title }}</option> 249 {% else %} 250 <option value="{{ currency.code }}">{{ currency.title }}</option> 251 {% endif %} 252 {% endfor %} 253 </select> 254 </div> 255 </div> 256 </div> 257 <div class="tab-pane" id="tab-option"> 258 <fieldset> 259 <legend>{{ text_tax }}</legend> 260 <div class="form-group"> 261 <label class="col-sm-2 control-label">{{ entry_tax }}</label> 262 <div class="col-sm-10"> 263 <label class="radio-inline"> 264 {% if config_tax %} 265 <input type="radio" name="config_tax" value="1" checked="checked" /> 266 {{ text_yes }} 267 {% else %} 268 <input type="radio" name="config_tax" value="1" /> 269 {{ text_yes }} 270 {% endif %} 271 </label> 272 <label class="radio-inline"> 273 {% if not config_tax %} 274 <input type="radio" name="config_tax" value="0" checked="checked" /> 275 {{ text_no }} 276 {% else %} 277 <input type="radio" name="config_tax" value="0" /> 278 {{ text_no }} 279 {% endif %} 280 </label> 281 </div> 282 </div> 283 <div class="form-group"> 284 <label class="col-sm-2 control-label" for="input-tax-default"><span data-toggle="tooltip" title="{{ help_tax_default }}">{{ entry_tax_default }}</span></label> 285 <div class="col-sm-10"> 286 <select name="config_tax_default" id="input-tax-default" class="form-control"> 287 <option value="">{{ text_none }}</option> 288 {% if config_tax_default == 'shipping' %} 289 <option value="shipping" selected="selected">{{ text_shipping }}</option> 290 {% else %} 291 <option value="shipping">{{ text_shipping }}</option> 292 {% endif %} 293 {% if config_tax_default == 'payment' %} 294 <option value="payment" selected="selected">{{ text_payment }}</option> 295 {% else %} 296 <option value="payment">{{ text_payment }}</option> 297 {% endif %} 298 </select> 299 </div> 300 </div> 301 <div class="form-group"> 302 <label class="col-sm-2 control-label" for="input-tax-customer"><span data-toggle="tooltip" title="{{ help_tax_customer }}">{{ entry_tax_customer }}</span></label> 303 <div class="col-sm-10"> 304 <select name="config_tax_customer" id="input-tax-customer" class="form-control"> 305 <option value="">{{ text_none }}</option> 306 {% if config_tax_customer == 'shipping' %} 307 <option value="shipping" selected="selected">{{ text_shipping }}</option> 308 {% else %} 309 <option value="shipping">{{ text_shipping }}</option> 310 {% endif %} 311 {% if config_tax_customer == 'payment' %} 312 <option value="payment" selected="selected">{{ text_payment }}</option> 313 {% else %} 314 <option value="payment">{{ text_payment }}</option> 315 {% endif %} 316 </select> 317 </div> 318 </div> 319 </fieldset> 320 <fieldset> 321 <legend>{{ text_account }}</legend> 322 <div class="form-group"> 323 <label class="col-sm-2 control-label" for="input-customer-group"><span data-toggle="tooltip" title="{{ help_customer_group }}">{{ entry_customer_group }}</span></label> 324 <div class="col-sm-10"> 325 <select name="config_customer_group_id" id="input-customer-group" class="form-control"> 326 {% for customer_group in customer_groups %} 327 {% if customer_group.customer_group_id == config_customer_group_id %} 328 <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option> 329 {% else %} 330 <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option> 331 {% endif %} 332 {% endfor %} 333 </select> 334 </div> 335 </div> 336 <div class="form-group"> 337 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_group_display }}">{{ entry_customer_group_display }}</span></label> 338 <div class="col-sm-10"> 339 {% for customer_group in customer_groups %} 340 <div class="checkbox"> 341 <label> 342 {% if customer_group.customer_group_id in config_customer_group_display %} 343 <input type="checkbox" name="config_customer_group_display[]" value="{{ customer_group.customer_group_id }}" checked="checked" /> 344 {{ customer_group.name }} 345 {% else %} 346 <input type="checkbox" name="config_customer_group_display[]" value="{{ customer_group.customer_group_id }}" /> 347 {{ customer_group.name }} 348 {% endif %} 349 </label> 350 </div> 351 {% endfor %} 352 {% if error_customer_group_display %} 353 <div class="text-danger">{{ error_customer_group_display }}</div> 354 {% endif %} 355 </div> 356 </div> 357 <div class="form-group"> 358 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_price }}">{{ entry_customer_price }}</span></label> 359 <div class="col-sm-10"> 360 <label class="radio-inline"> 361 {% if config_customer_price %} 362 <input type="radio" name="config_customer_price" value="1" checked="checked" /> 363 {{ text_yes }} 364 {% else %} 365 <input type="radio" name="config_customer_price" value="1" /> 366 {{ text_yes }} 367 {% endif %} 368 </label> 369 <label class="radio-inline"> 370 {% if not config_customer_price %} 371 <input type="radio" name="config_customer_price" value="0" checked="checked" /> 372 {{ text_no }} 373 {% else %} 374 <input type="radio" name="config_customer_price" value="0" /> 375 {{ text_no }} 376 {% endif %} 377 </label> 378 </div> 379 </div> 380 <div class="form-group"> 381 <label class="col-sm-2 control-label" for="input-account"><span data-toggle="tooltip" title="{{ help_account }}">{{ entry_account }}</span></label> 382 <div class="col-sm-10"> 383 <select name="config_account_id" id="input-account" class="form-control"> 384 <option value="0">{{ text_none }}</option> 385 {% for information in informations %} 386 {% if information.information_id == config_account_id %} 387 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 388 {% else %} 389 <option value="{{ information.information_id }}">{{ information.title }}</option> 390 {% endif %} 391 {% endfor %} 392 </select> 393 </div> 394 </div> 395 </fieldset> 396 <fieldset> 397 <legend>{{ text_checkout }}</legend> 398 <div class="form-group"> 399 <label class="col-sm-2 control-label">{{ entry_cart_weight }}</label> 400 <div class="col-sm-10"> 401 <label class="radio-inline"> 402 {% if config_cart_weight %} 403 <input type="radio" name="config_cart_weight" value="1" checked="checked" /> 404 {{ text_yes }} 405 {% else %} 406 <input type="radio" name="config_cart_weight" value="1" /> 407 {{ text_yes }} 408 {% endif %} 409 </label> 410 <label class="radio-inline"> 411 {% if not config_cart_weight %} 412 <input type="radio" name="config_cart_weight" value="0" checked="checked" /> 413 {{ text_no }} 414 {% else %} 415 <input type="radio" name="config_cart_weight" value="0" /> 416 {{ text_no }} 417 {% endif %} 418 </label> 419 </div> 420 </div> 421 <div class="form-group"> 422 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_checkout_guest }}">{{ entry_checkout_guest }}</span></label> 423 <div class="col-sm-10"> 424 <label class="radio-inline"> 425 {% if config_checkout_guest %} 426 <input type="radio" name="config_checkout_guest" value="1" checked="checked" /> 427 {{ text_yes }} 428 {% else %} 429 <input type="radio" name="config_checkout_guest" value="1" /> 430 {{ text_yes }} 431 {% endif %} 432 </label> 433 <label class="radio-inline"> 434 {% if not config_checkout_guest %} 435 <input type="radio" name="config_checkout_guest" value="0" checked="checked" /> 436 {{ text_no }} 437 {% else %} 438 <input type="radio" name="config_checkout_guest" value="0" /> 439 {{ text_no }} 440 {% endif %} 441 </label> 442 </div> 443 </div> 444 <div class="form-group"> 445 <label class="col-sm-2 control-label" for="input-checkout"><span data-toggle="tooltip" title="{{ help_checkout }}">{{ entry_checkout }}</span></label> 446 <div class="col-sm-10"> 447 <select name="config_checkout_id" id="input-checkout" class="form-control"> 448 <option value="0">{{ text_none }}</option> 449 {% for information in informations %} 450 {% if information.information_id == config_checkout_id %} 451 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 452 {% else %} 453 <option value="{{ information.information_id }}">{{ information.title }}</option> 454 {% endif %} 455 {% endfor %} 456 </select> 457 </div> 458 </div> 459 <div class="form-group"> 460 <label class="col-sm-2 control-label" for="input-order-status"><span data-toggle="tooltip" title="{{ help_order_status }}">{{ entry_order_status }}</span></label> 461 <div class="col-sm-10"> 462 <select name="config_order_status_id" id="input-order-status" class="form-control"> 463 {% for order_status in order_statuses %} 464 {% if order_status.order_status_id == config_order_status_id %} 465 <option value="{{ order_status.order_status_id }}" selected="selected">{{ order_status.name }}</option> 466 {% else %} 467 <option value="{{ order_status.order_status_id }}">{{ order_status.name }}</option> 468 {% endif %} 469 {% endfor %} 470 </select> 471 </div> 472 </div> 473 </fieldset> 474 <fieldset> 475 <legend>{{ text_stock }}</legend> 476 <div class="form-group"> 477 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_stock_display }}">{{ entry_stock_display }}</span></label> 478 <div class="col-sm-10"> 479 <label class="radio-inline"> 480 {% if config_stock_display %} 481 <input type="radio" name="config_stock_display" value="1" checked="checked" /> 482 {{ text_yes }} 483 {% else %} 484 <input type="radio" name="config_stock_display" value="1" /> 485 {{ text_yes }} 486 {% endif %} 487 </label> 488 <label class="radio-inline"> 489 {% if not config_stock_display %} 490 <input type="radio" name="config_stock_display" value="0" checked="checked" /> 491 {{ text_no }} 492 {% else %} 493 <input type="radio" name="config_stock_display" value="0" /> 494 {{ text_no }} 495 {% endif %} 496 </label> 497 </div> 498 </div> 499 <div class="form-group"> 500 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_stock_checkout }}">{{ entry_stock_checkout }}</span></label> 501 <div class="col-sm-10"> 502 <label class="radio-inline"> 503 {% if config_stock_checkout %} 504 <input type="radio" name="config_stock_checkout" value="1" checked="checked" /> 505 {{ text_yes }} 506 {% else %} 507 <input type="radio" name="config_stock_checkout" value="1" /> 508 {{ text_yes }} 509 {% endif %} 510 </label> 511 <label class="radio-inline"> 512 {% if not config_stock_checkout %} 513 <input type="radio" name="config_stock_checkout" value="0" checked="checked" /> 514 {{ text_no }} 515 {% else %} 516 <input type="radio" name="config_stock_checkout" value="0" /> 517 {{ text_no }} 518 {% endif %} 519 </label> 520 </div> 521 </div> 522 </fieldset> 523 </div> 524 <div class="tab-pane" id="tab-image"> 525 <div class="form-group"> 526 <label class="col-sm-2 control-label" for="input-logo">{{ entry_logo }}</label> 527 <div class="col-sm-10"><a href="" id="thumb-logo" data-toggle="image" class="img-thumbnail"><img src="{{ logo }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a> 528 <input type="hidden" name="config_logo" value="{{ config_logo }}" id="input-logo" /> 529 </div> 530 </div> 531 <div class="form-group"> 532 <label class="col-sm-2 control-label" for="input-icon"><span data-toggle="tooltip" title="{{ help_icon }}">{{ entry_icon }}</span></label> 533 <div class="col-sm-10"><a href="" id="thumb-icon" data-toggle="image" class="img-thumbnail"><img src="{{ icon }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a> 534 <input type="hidden" name="config_icon" value="{{ config_icon }}" id="input-icon" /> 535 </div> 536 </div> 537 </div> 538 <div class="tab-pane" id="tab-server"> 539 <div class="form-group"> 540 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_secure }}">{{ entry_secure }}</span></label> 541 <div class="col-sm-10"> 542 <label class="radio-inline"> 543 {% if config_secure %} 544 <input type="radio" name="config_secure" value="1" checked="checked" /> 545 {{ text_yes }} 546 {% else %} 547 <input type="radio" name="config_secure" value="1" /> 548 {{ text_yes }} 549 {% endif %} 550 </label> 551 <label class="radio-inline"> 552 {% if not config_secure %} 553 <input type="radio" name="config_secure" value="0" checked="checked" /> 554 {{ text_no }} 555 {% else %} 556 <input type="radio" name="config_secure" value="0" /> 557 {{ text_no }} 558 {% endif %} 559 </label> 560 </div> 561 </div> 562 </div> 563 </div> 564 </form> 565 </div> 566 </div> 567 </div> 568 <script type="text/javascript"><!-- 569 $('select[name=\'config_theme\']').on('change', function() { 570 $.ajax({ 571 url: 'index.php?route=setting/setting/theme&user_token={{ user_token }}&theme=' + this.value, 572 dataType: 'html', 573 beforeSend: function() { 574 $('select[name=\'config_theme\']').prop('disabled', true); 575 }, 576 complete: function() { 577 $('select[name=\'config_theme\']').prop('disabled', false); 578 }, 579 success: function(html) { 580 $('#theme').attr('src', html); 581 }, 582 error: function(xhr, ajaxOptions, thrownError) { 583 alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); 584 } 585 }); 586 }); 587 588 $('select[name=\'config_theme\']').trigger('change'); 589 //--></script> <script type="text/javascript"><!-- 590 $('select[name=\'config_country_id\']').on('change', function() { 591 $.ajax({ 592 url: 'index.php?route=localisation/country/country&user_token={{ user_token }}&country_id=' + this.value, 593 dataType: 'json', 594 beforeSend: function() { 595 $('select[name=\'config_country_id\']').prop('disabled', true); 596 }, 597 complete: function() { 598 $('select[name=\'config_country_id\']').prop('disabled', false); 599 }, 600 success: function(json) { 601 html = '<option value="">{{ text_select }}</option>'; 602 603 if (json['zone'] && json['zone'] != '') { 604 for (i = 0; i < json['zone'].length; i++) { 605 html += '<option value="' + json['zone'][i]['zone_id'] + '"'; 606 607 if (json['zone'][i]['zone_id'] == '{{ config_zone_id }}') { 608 html += ' selected="selected"'; 609 } 610 611 html += '>' + json['zone'][i]['name'] + '</option>'; 612 } 613 } else { 614 html += '<option value="0" selected="selected">{{ text_none }}</option>'; 615 } 616 617 $('select[name=\'config_zone_id\']').html(html); 618 }, 619 error: function(xhr, ajaxOptions, thrownError) { 620 alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); 621 } 622 }); 623 }); 624 625 $('select[name=\'config_country_id\']').trigger('change'); 626 //--></script></div> 627 {{ footer }}