setting.twig (80998B)
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" id="button-save" form="form-setting" data-toggle="tooltip" title="{{ button_save }}" disabled="disabled" 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"> {% if error_warning %} 17 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }} 18 <button type="button" class="close" data-dismiss="alert">×</button> 19 </div> 20 {% endif %} 21 {% if success %} 22 <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }} 23 <button type="button" class="close" data-dismiss="alert">×</button> 24 </div> 25 {% endif %} 26 <div class="panel panel-default"> 27 <div class="panel-heading"> 28 <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3> 29 </div> 30 <div class="panel-body"> 31 <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-setting" class="form-horizontal"> 32 <ul class="nav nav-tabs"> 33 <li class="active"><a href="#tab-general" data-toggle="tab">{{ tab_general }}</a></li> 34 <li><a href="#tab-store" data-toggle="tab">{{ tab_store }}</a></li> 35 <li><a href="#tab-local" data-toggle="tab">{{ tab_local }}</a></li> 36 <li><a href="#tab-option" data-toggle="tab">{{ tab_option }}</a></li> 37 <li><a href="#tab-image" data-toggle="tab">{{ tab_image }}</a></li> 38 <li><a href="#tab-mail" data-toggle="tab">{{ tab_mail }}</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-meta-title">{{ entry_meta_title }}</label> 45 <div class="col-sm-10"> 46 <input type="text" name="config_meta_title" value="{{ config_meta_title }}" placeholder="{{ entry_meta_title }}" id="input-meta-title" class="form-control" /> 47 {% if error_meta_title %} 48 <div class="text-danger">{{ error_meta_title }}</div> 49 {% endif %} </div> 50 </div> 51 <div class="form-group"> 52 <label class="col-sm-2 control-label" for="input-meta-description">{{ entry_meta_description }}</label> 53 <div class="col-sm-10"> 54 <textarea name="config_meta_description" rows="5" placeholder="{{ entry_meta_description }}" id="input-meta-description" class="form-control">{{ config_meta_description }}</textarea> 55 </div> 56 </div> 57 <div class="form-group"> 58 <label class="col-sm-2 control-label" for="input-meta-keyword">{{ entry_meta_keyword }}</label> 59 <div class="col-sm-10"> 60 <textarea name="config_meta_keyword" rows="5" placeholder="{{ entry_meta_keyword }}" id="input-meta-keyword" class="form-control">{{ config_meta_keyword }}</textarea> 61 </div> 62 </div> 63 <div class="form-group"> 64 <label class="col-sm-2 control-label" for="input-theme">{{ entry_theme }}</label> 65 <div class="col-sm-10"> 66 <select name="config_theme" id="input-theme" class="form-control"> 67 68 {% for theme in themes %} 69 {% if theme.value == config_theme %} 70 71 <option value="{{ theme.value }}" selected="selected">{{ theme.text }}</option> 72 73 {% else %} 74 75 <option value="{{ theme.value }}">{{ theme.text }}</option> 76 77 {% endif %} 78 {% endfor %} 79 80 </select> 81 <br /> 82 <img src="" alt="" id="theme" class="img-thumbnail" /></div> 83 </div> 84 <div class="form-group"> 85 <label class="col-sm-2 control-label" for="input-layout">{{ entry_layout }}</label> 86 <div class="col-sm-10"> 87 <select name="config_layout_id" id="input-layout" class="form-control"> 88 89 {% for layout in layouts %} 90 {% if layout.layout_id == config_layout_id %} 91 92 <option value="{{ layout.layout_id }}" selected="selected">{{ layout.name }}</option> 93 94 {% else %} 95 96 <option value="{{ layout.layout_id }}">{{ layout.name }}</option> 97 98 {% endif %} 99 {% endfor %} 100 101 </select> 102 </div> 103 </div> 104 </div> 105 <div class="tab-pane" id="tab-store"> 106 <div class="form-group required"> 107 <label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label> 108 <div class="col-sm-10"> 109 <input type="text" name="config_name" value="{{ config_name }}" placeholder="{{ entry_name }}" id="input-name" class="form-control" /> 110 {% if error_name %} 111 <div class="text-danger">{{ error_name }}</div> 112 {% endif %} </div> 113 </div> 114 <div class="form-group required"> 115 <label class="col-sm-2 control-label" for="input-owner">{{ entry_owner }}</label> 116 <div class="col-sm-10"> 117 <input type="text" name="config_owner" value="{{ config_owner }}" placeholder="{{ entry_owner }}" id="input-owner" class="form-control" /> 118 {% if error_owner %} 119 <div class="text-danger">{{ error_owner }}</div> 120 {% endif %} </div> 121 </div> 122 <div class="form-group required"> 123 <label class="col-sm-2 control-label" for="input-address">{{ entry_address }}</label> 124 <div class="col-sm-10"> 125 <textarea name="config_address" placeholder="{{ entry_address }}" rows="5" id="input-address" class="form-control">{{ config_address }}</textarea> 126 {% if error_address %} 127 <div class="text-danger">{{ error_address }}</div> 128 {% endif %} </div> 129 </div> 130 <div class="form-group"> 131 <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> 132 <div class="col-sm-10"> 133 <input type="text" name="config_geocode" value="{{ config_geocode }}" placeholder="{{ entry_geocode }}" id="input-geocode" class="form-control" /> 134 </div> 135 </div> 136 <div class="form-group required"> 137 <label class="col-sm-2 control-label" for="input-email">{{ entry_email }}</label> 138 <div class="col-sm-10"> 139 <input type="text" name="config_email" value="{{ config_email }}" placeholder="{{ entry_email }}" id="input-email" class="form-control" /> 140 {% if error_email %} 141 <div class="text-danger">{{ error_email }}</div> 142 {% endif %} </div> 143 </div> 144 <div class="form-group required"> 145 <label class="col-sm-2 control-label" for="input-telephone">{{ entry_telephone }}</label> 146 <div class="col-sm-10"> 147 <input type="text" name="config_telephone" value="{{ config_telephone }}" placeholder="{{ entry_telephone }}" id="input-telephone" class="form-control" /> 148 {% if error_telephone %} 149 <div class="text-danger">{{ error_telephone }}</div> 150 {% endif %} </div> 151 </div> 152 <div class="form-group"> 153 <label class="col-sm-2 control-label" for="input-fax">{{ entry_fax }}</label> 154 <div class="col-sm-10"> 155 <input type="text" name="config_fax" value="{{ config_fax }}" placeholder="{{ entry_fax }}" id="input-fax" class="form-control" /> 156 </div> 157 </div> 158 <div class="form-group"> 159 <label class="col-sm-2 control-label" for="input-image">{{ entry_image }}</label> 160 <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> 161 <input type="hidden" name="config_image" value="{{ config_image }}" id="input-image" /> 162 </div> 163 </div> 164 <div class="form-group"> 165 <label class="col-sm-2 control-label" for="input-open"><span data-toggle="tooltip" data-container="#tab-general" title="{{ help_open }}">{{ entry_open }}</span></label> 166 <div class="col-sm-10"> 167 <textarea name="config_open" rows="5" placeholder="{{ entry_open }}" id="input-open" class="form-control">{{ config_open }}</textarea> 168 </div> 169 </div> 170 <div class="form-group"> 171 <label class="col-sm-2 control-label" for="input-comment"><span data-toggle="tooltip" data-container="#tab-general" title="{{ help_comment }}">{{ entry_comment }}</span></label> 172 <div class="col-sm-10"> 173 <textarea name="config_comment" rows="5" placeholder="{{ entry_comment }}" id="input-comment" class="form-control">{{ config_comment }}</textarea> 174 </div> 175 </div> 176 {% if locations %} 177 <div class="form-group"> 178 <label class="col-sm-2 control-label"><span data-toggle="tooltip" data-container="#tab-general" title="{{ help_location }}">{{ entry_location }}</span></label> 179 <div class="col-sm-10"> {% for location in locations %} 180 <div class="checkbox"> 181 <label> {% if location.location_id in config_location %} 182 <input type="checkbox" name="config_location[]" value="{{ location.location_id }}" checked="checked" /> 183 {{ location.name }} 184 {% else %} 185 <input type="checkbox" name="config_location[]" value="{{ location.location_id }}" /> 186 {{ location.name }} 187 {% endif %} </label> 188 </div> 189 {% endfor %} </div> 190 </div> 191 {% endif %} </div> 192 <div class="tab-pane" id="tab-local"> 193 <div class="form-group"> 194 <label class="col-sm-2 control-label" for="input-country">{{ entry_country }}</label> 195 <div class="col-sm-10"> 196 <select name="config_country_id" id="input-country" class="form-control"> 197 198 {% for country in countries %} 199 {% if country.country_id == config_country_id %} 200 201 <option value="{{ country.country_id }}" selected="selected">{{ country.name }}</option> 202 203 {% else %} 204 205 <option value="{{ country.country_id }}">{{ country.name }}</option> 206 207 {% endif %} 208 {% endfor %} 209 210 </select> 211 </div> 212 </div> 213 <div class="form-group"> 214 <label class="col-sm-2 control-label" for="input-zone">{{ entry_zone }}</label> 215 <div class="col-sm-10"> 216 <select name="config_zone_id" id="input-zone" class="form-control"> 217 </select> 218 </div> 219 </div> 220 <div class="form-group"> 221 <label class="col-sm-2 control-label" for="input-language">{{ entry_language }}</label> 222 <div class="col-sm-10"> 223 <select name="config_language" id="input-language" class="form-control"> 224 225 {% for language in languages %} 226 {% if language.code == config_language %} 227 228 <option value="{{ language.code }}" selected="selected">{{ language.name }}</option> 229 230 {% else %} 231 232 <option value="{{ language.code }}">{{ language.name }}</option> 233 234 {% endif %} 235 {% endfor %} 236 237 </select> 238 </div> 239 </div> 240 <div class="form-group"> 241 <label class="col-sm-2 control-label" for="input-admin-language">{{ entry_admin_language }}</label> 242 <div class="col-sm-10"> 243 <select name="config_admin_language" id="input-admin-language" class="form-control"> 244 245 {% for language in languages %} 246 {% if language.code == config_admin_language %} 247 248 <option value="{{ language.code }}" selected="selected">{{ language.name }}</option> 249 250 {% else %} 251 252 <option value="{{ language.code }}">{{ language.name }}</option> 253 254 {% endif %} 255 {% endfor %} 256 257 </select> 258 </div> 259 </div> 260 <div class="form-group"> 261 <label class="col-sm-2 control-label" for="input-currency"><span data-toggle="tooltip" title="{{ help_currency }}">{{ entry_currency }}</span></label> 262 <div class="col-sm-10"> 263 <select name="config_currency" id="input-currency" class="form-control"> 264 265 {% for currency in currencies %} 266 {% if currency.code == config_currency %} 267 268 <option value="{{ currency.code }}" selected="selected">{{ currency.title }}</option> 269 270 {% else %} 271 272 <option value="{{ currency.code }}">{{ currency.title }}</option> 273 274 {% endif %} 275 {% endfor %} 276 277 </select> 278 </div> 279 </div> 280 <div class="form-group"> 281 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_currency_auto }}">{{ entry_currency_auto }}</span></label> 282 <div class="col-sm-10"> 283 <label class="radio-inline"> {% if config_currency_auto %} 284 <input type="radio" name="config_currency_auto" value="1" checked="checked" /> 285 {{ text_yes }} 286 {% else %} 287 <input type="radio" name="config_currency_auto" value="1" /> 288 {{ text_yes }} 289 {% endif %} </label> 290 <label class="radio-inline"> {% if not config_currency_auto %} 291 <input type="radio" name="config_currency_auto" value="0" checked="checked" /> 292 {{ text_no }} 293 {% else %} 294 <input type="radio" name="config_currency_auto" value="0" /> 295 {{ text_no }} 296 {% endif %} </label> 297 </div> 298 </div> 299 <div class="form-group"> 300 <label class="col-sm-2 control-label" for="input-length-class">{{ entry_length_class }}</label> 301 <div class="col-sm-10"> 302 <select name="config_length_class_id" id="input-length-class" class="form-control"> 303 304 {% for length_class in length_classes %} 305 {% if length_class.length_class_id == config_length_class_id %} 306 307 <option value="{{ length_class.length_class_id }}" selected="selected">{{ length_class.title }}</option> 308 309 {% else %} 310 311 <option value="{{ length_class.length_class_id }}">{{ length_class.title }}</option> 312 313 {% endif %} 314 {% endfor %} 315 316 </select> 317 </div> 318 </div> 319 <div class="form-group"> 320 <label class="col-sm-2 control-label" for="input-weight-class">{{ entry_weight_class }}</label> 321 <div class="col-sm-10"> 322 <select name="config_weight_class_id" id="input-weight-class" class="form-control"> 323 324 {% for weight_class in weight_classes %} 325 {% if weight_class.weight_class_id == config_weight_class_id %} 326 327 <option value="{{ weight_class.weight_class_id }}" selected="selected">{{ weight_class.title }}</option> 328 329 {% else %} 330 331 <option value="{{ weight_class.weight_class_id }}">{{ weight_class.title }}</option> 332 333 {% endif %} 334 {% endfor %} 335 336 </select> 337 </div> 338 </div> 339 </div> 340 <div class="tab-pane" id="tab-option"> 341 <fieldset> 342 <legend>{{ text_product }}</legend> 343 <div class="form-group"> 344 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_product_count }}">{{ entry_product_count }}</span></label> 345 <div class="col-sm-10"> 346 <label class="radio-inline"> {% if config_product_count %} 347 <input type="radio" name="config_product_count" value="1" checked="checked" /> 348 {{ text_yes }} 349 {% else %} 350 <input type="radio" name="config_product_count" value="1" /> 351 {{ text_yes }} 352 {% endif %} </label> 353 <label class="radio-inline"> {% if not config_product_count %} 354 <input type="radio" name="config_product_count" value="0" checked="checked" /> 355 {{ text_no }} 356 {% else %} 357 <input type="radio" name="config_product_count" value="0" /> 358 {{ text_no }} 359 {% endif %} </label> 360 </div> 361 </div> 362 <div class="form-group required"> 363 <label class="col-sm-2 control-label" for="input-admin-limit"><span data-toggle="tooltip" title="{{ help_limit_admin }}">{{ entry_limit_admin }}</span></label> 364 <div class="col-sm-10"> 365 <input type="text" name="config_limit_admin" value="{{ config_limit_admin }}" placeholder="{{ entry_limit_admin }}" id="input-admin-limit" class="form-control" /> 366 {% if error_limit_admin %} 367 <div class="text-danger">{{ error_limit_admin }}</div> 368 {% endif %} </div> 369 </div> 370 </fieldset> 371 <fieldset> 372 <legend>{{ text_review }}</legend> 373 <div class="form-group"> 374 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_review }}">{{ entry_review }}</span></label> 375 <div class="col-sm-10"> 376 <label class="radio-inline"> {% if config_review_status %} 377 <input type="radio" name="config_review_status" value="1" checked="checked" /> 378 {{ text_yes }} 379 {% else %} 380 <input type="radio" name="config_review_status" value="1" /> 381 {{ text_yes }} 382 {% endif %} </label> 383 <label class="radio-inline"> {% if not config_review_status %} 384 <input type="radio" name="config_review_status" value="0" checked="checked" /> 385 {{ text_no }} 386 {% else %} 387 <input type="radio" name="config_review_status" value="0" /> 388 {{ text_no }} 389 {% endif %} </label> 390 </div> 391 </div> 392 <div class="form-group"> 393 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_review_guest }}">{{ entry_review_guest }}</span></label> 394 <div class="col-sm-10"> 395 <label class="radio-inline"> {% if config_review_guest %} 396 <input type="radio" name="config_review_guest" value="1" checked="checked" /> 397 {{ text_yes }} 398 {% else %} 399 <input type="radio" name="config_review_guest" value="1" /> 400 {{ text_yes }} 401 {% endif %} </label> 402 <label class="radio-inline"> {% if not config_review_guest %} 403 <input type="radio" name="config_review_guest" value="0" checked="checked" /> 404 {{ text_no }} 405 {% else %} 406 <input type="radio" name="config_review_guest" value="0" /> 407 {{ text_no }} 408 {% endif %} </label> 409 </div> 410 </div> 411 </fieldset> 412 <fieldset> 413 <legend>{{ text_voucher }}</legend> 414 <div class="form-group required"> 415 <label class="col-sm-2 control-label" for="input-voucher-min"><span data-toggle="tooltip" title="{{ help_voucher_min }}">{{ entry_voucher_min }}</span></label> 416 <div class="col-sm-10"> 417 <input type="text" name="config_voucher_min" value="{{ config_voucher_min }}" placeholder="{{ entry_voucher_min }}" id="input-voucher-min" class="form-control" /> 418 {% if error_voucher_min %} 419 <div class="text-danger">{{ error_voucher_min }}</div> 420 {% endif %} </div> 421 </div> 422 <div class="form-group required"> 423 <label class="col-sm-2 control-label" for="input-voucher-max"><span data-toggle="tooltip" title="{{ help_voucher_max }}">{{ entry_voucher_max }}</span></label> 424 <div class="col-sm-10"> 425 <input type="text" name="config_voucher_max" value="{{ config_voucher_max }}" placeholder="{{ entry_voucher_max }}" id="input-voucher-max" class="form-control" /> 426 {% if error_voucher_max %} 427 <div class="text-danger">{{ error_voucher_max }}</div> 428 {% endif %} </div> 429 </div> 430 </fieldset> 431 <fieldset> 432 <legend>{{ text_tax }}</legend> 433 <div class="form-group"> 434 <label class="col-sm-2 control-label">{{ entry_tax }}</label> 435 <div class="col-sm-10"> 436 <label class="radio-inline"> {% if config_tax %} 437 <input type="radio" name="config_tax" value="1" checked="checked" /> 438 {{ text_yes }} 439 {% else %} 440 <input type="radio" name="config_tax" value="1" /> 441 {{ text_yes }} 442 {% endif %} </label> 443 <label class="radio-inline"> {% if not config_tax %} 444 <input type="radio" name="config_tax" value="0" checked="checked" /> 445 {{ text_no }} 446 {% else %} 447 <input type="radio" name="config_tax" value="0" /> 448 {{ text_no }} 449 {% endif %} </label> 450 </div> 451 </div> 452 <div class="form-group"> 453 <label class="col-sm-2 control-label" for="input-tax-default"><span data-toggle="tooltip" title="{{ help_tax_default }}">{{ entry_tax_default }}</span></label> 454 <div class="col-sm-10"> 455 <select name="config_tax_default" id="input-tax-default" class="form-control"> 456 <option value="">{{ text_none }}</option> 457 458 {% if config_tax_default == 'shipping' %} 459 460 <option value="shipping" selected="selected">{{ text_shipping }}</option> 461 462 {% else %} 463 464 <option value="shipping">{{ text_shipping }}</option> 465 466 {% endif %} 467 {% if config_tax_default == 'payment' %} 468 469 <option value="payment" selected="selected">{{ text_payment }}</option> 470 471 {% else %} 472 473 <option value="payment">{{ text_payment }}</option> 474 475 {% endif %} 476 477 </select> 478 </div> 479 </div> 480 <div class="form-group"> 481 <label class="col-sm-2 control-label" for="input-tax-customer"><span data-toggle="tooltip" title="{{ help_tax_customer }}">{{ entry_tax_customer }}</span></label> 482 <div class="col-sm-10"> 483 <select name="config_tax_customer" id="input-tax-customer" class="form-control"> 484 <option value="">{{ text_none }}</option> 485 486 {% if config_tax_customer == 'shipping' %} 487 488 <option value="shipping" selected="selected">{{ text_shipping }}</option> 489 490 {% else %} 491 492 <option value="shipping">{{ text_shipping }}</option> 493 494 {% endif %} 495 {% if config_tax_customer == 'payment' %} 496 497 <option value="payment" selected="selected">{{ text_payment }}</option> 498 499 {% else %} 500 501 <option value="payment">{{ text_payment }}</option> 502 503 {% endif %} 504 505 </select> 506 </div> 507 </div> 508 </fieldset> 509 <fieldset> 510 <legend>{{ text_account }}</legend> 511 <div class="form-group"> 512 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_online }}">{{ entry_customer_online }}</span></label> 513 <div class="col-sm-10"> 514 <label class="radio-inline"> {% if config_customer_online %} 515 <input type="radio" name="config_customer_online" value="1" checked="checked" /> 516 {{ text_yes }} 517 {% else %} 518 <input type="radio" name="config_customer_online" value="1" /> 519 {{ text_yes }} 520 {% endif %} </label> 521 <label class="radio-inline"> {% if not config_customer_online %} 522 <input type="radio" name="config_customer_online" value="0" checked="checked" /> 523 {{ text_no }} 524 {% else %} 525 <input type="radio" name="config_customer_online" value="0" /> 526 {{ text_no }} 527 {% endif %} </label> 528 </div> 529 </div> 530 <div class="form-group"> 531 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_activity }}">{{ entry_customer_activity }}</span></label> 532 <div class="col-sm-10"> 533 <label class="radio-inline"> {% if config_customer_activity %} 534 <input type="radio" name="config_customer_activity" value="1" checked="checked" /> 535 {{ text_yes }} 536 {% else %} 537 <input type="radio" name="config_customer_activity" value="1" /> 538 {{ text_yes }} 539 {% endif %} </label> 540 <label class="radio-inline"> {% if not config_customer_activity %} 541 <input type="radio" name="config_customer_activity" value="0" checked="checked" /> 542 {{ text_no }} 543 {% else %} 544 <input type="radio" name="config_customer_activity" value="0" /> 545 {{ text_no }} 546 {% endif %} </label> 547 </div> 548 </div> 549 <div class="form-group"> 550 <label class="col-sm-2 control-label">{{ entry_customer_search }}</label> 551 <div class="col-sm-10"> 552 <label class="radio-inline"> {% if config_customer_search %} 553 <input type="radio" name="config_customer_search" value="1" checked="checked" /> 554 {{ text_yes }} 555 {% else %} 556 <input type="radio" name="config_customer_search" value="1" /> 557 {{ text_yes }} 558 {% endif %} </label> 559 <label class="radio-inline"> {% if not config_customer_search %} 560 <input type="radio" name="config_customer_search" value="0" checked="checked" /> 561 {{ text_no }} 562 {% else %} 563 <input type="radio" name="config_customer_search" value="0" /> 564 {{ text_no }} 565 {% endif %} </label> 566 </div> 567 </div> 568 <div class="form-group"> 569 <label class="col-sm-2 control-label" for="input-customer-group"><span data-toggle="tooltip" title="{{ help_customer_group }}">{{ entry_customer_group }}</span></label> 570 <div class="col-sm-10"> 571 <select name="config_customer_group_id" id="input-customer-group" class="form-control"> 572 573 {% for customer_group in customer_groups %} 574 {% if customer_group.customer_group_id == config_customer_group_id %} 575 576 <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option> 577 578 {% else %} 579 580 <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option> 581 582 {% endif %} 583 {% endfor %} 584 585 </select> 586 </div> 587 </div> 588 <div class="form-group"> 589 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_group_display }}">{{ entry_customer_group_display }}</span></label> 590 <div class="col-sm-10"> {% for customer_group in customer_groups %} 591 <div class="checkbox"> 592 <label> {% if customer_group.customer_group_id in config_customer_group_display %} 593 <input type="checkbox" name="config_customer_group_display[]" value="{{ customer_group.customer_group_id }}" checked="checked" /> 594 {{ customer_group.name }} 595 {% else %} 596 <input type="checkbox" name="config_customer_group_display[]" value="{{ customer_group.customer_group_id }}" /> 597 {{ customer_group.name }} 598 {% endif %} </label> 599 </div> 600 {% endfor %} 601 {% if error_customer_group_display %} 602 <div class="text-danger">{{ error_customer_group_display }}</div> 603 {% endif %} </div> 604 </div> 605 <div class="form-group"> 606 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_customer_price }}">{{ entry_customer_price }}</span></label> 607 <div class="col-sm-10"> 608 <label class="radio-inline"> {% if config_customer_price %} 609 <input type="radio" name="config_customer_price" value="1" checked="checked" /> 610 {{ text_yes }} 611 {% else %} 612 <input type="radio" name="config_customer_price" value="1" /> 613 {{ text_yes }} 614 {% endif %} </label> 615 <label class="radio-inline"> {% if not config_customer_price %} 616 <input type="radio" name="config_customer_price" value="0" checked="checked" /> 617 {{ text_no }} 618 {% else %} 619 <input type="radio" name="config_customer_price" value="0" /> 620 {{ text_no }} 621 {% endif %} </label> 622 </div> 623 </div> 624 <div class="form-group"> 625 <label class="col-sm-2 control-label" for="input-login-attempts"><span data-toggle="tooltip" title="{{ help_login_attempts }}">{{ entry_login_attempts }}</span></label> 626 <div class="col-sm-10"> 627 <input type="text" name="config_login_attempts" value="{{ config_login_attempts }}" placeholder="{{ entry_login_attempts }}" id="input-login-attempts" class="form-control" /> 628 {% if error_login_attempts %} 629 <div class="text-danger">{{ error_login_attempts }}</div> 630 {% endif %} </div> 631 </div> 632 <div class="form-group"> 633 <label class="col-sm-2 control-label" for="input-account"><span data-toggle="tooltip" title="{{ help_account }}">{{ entry_account }}</span></label> 634 <div class="col-sm-10"> 635 <select name="config_account_id" id="input-account" class="form-control"> 636 <option value="0">{{ text_none }}</option> 637 638 {% for information in informations %} 639 {% if information.information_id == config_account_id %} 640 641 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 642 643 {% else %} 644 645 <option value="{{ information.information_id }}">{{ information.title }}</option> 646 647 {% endif %} 648 {% endfor %} 649 650 </select> 651 </div> 652 </div> 653 </fieldset> 654 <fieldset> 655 <legend>{{ text_checkout }}</legend> 656 <div class="form-group"> 657 <label class="col-sm-2 control-label" for="input-invoice-prefix"><span data-toggle="tooltip" title="{{ help_invoice_prefix }}">{{ entry_invoice_prefix }}</span></label> 658 <div class="col-sm-10"> 659 <input type="text" name="config_invoice_prefix" value="{{ config_invoice_prefix }}" placeholder="{{ entry_invoice_prefix }}" id="input-invoice-prefix" class="form-control" /> 660 </div> 661 </div> 662 <div class="form-group"> 663 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_cart_weight }}">{{ entry_cart_weight }}</span></label> 664 <div class="col-sm-10"> 665 <label class="radio-inline"> {% if config_cart_weight %} 666 <input type="radio" name="config_cart_weight" value="1" checked="checked" /> 667 {{ text_yes }} 668 {% else %} 669 <input type="radio" name="config_cart_weight" value="1" /> 670 {{ text_yes }} 671 {% endif %} </label> 672 <label class="radio-inline"> {% if not config_cart_weight %} 673 <input type="radio" name="config_cart_weight" value="0" checked="checked" /> 674 {{ text_no }} 675 {% else %} 676 <input type="radio" name="config_cart_weight" value="0" /> 677 {{ text_no }} 678 {% endif %} </label> 679 </div> 680 </div> 681 <div class="form-group"> 682 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_checkout_guest }}">{{ entry_checkout_guest }}</span></label> 683 <div class="col-sm-10"> 684 <label class="radio-inline"> {% if config_checkout_guest %} 685 <input type="radio" name="config_checkout_guest" value="1" checked="checked" /> 686 {{ text_yes }} 687 {% else %} 688 <input type="radio" name="config_checkout_guest" value="1" /> 689 {{ text_yes }} 690 {% endif %} </label> 691 <label class="radio-inline"> {% if not config_checkout_guest %} 692 <input type="radio" name="config_checkout_guest" value="0" checked="checked" /> 693 {{ text_no }} 694 {% else %} 695 <input type="radio" name="config_checkout_guest" value="0" /> 696 {{ text_no }} 697 {% endif %} </label> 698 </div> 699 </div> 700 <div class="form-group"> 701 <label class="col-sm-2 control-label" for="input-checkout"><span data-toggle="tooltip" title="{{ help_checkout }}">{{ entry_checkout }}</span></label> 702 <div class="col-sm-10"> 703 <select name="config_checkout_id" id="input-checkout" class="form-control"> 704 <option value="0">{{ text_none }}</option> 705 706 {% for information in informations %} 707 {% if information.information_id == config_checkout_id %} 708 709 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 710 711 {% else %} 712 713 <option value="{{ information.information_id }}">{{ information.title }}</option> 714 715 {% endif %} 716 {% endfor %} 717 718 </select> 719 </div> 720 </div> 721 <div class="form-group"> 722 <label class="col-sm-2 control-label" for="input-order-status"><span data-toggle="tooltip" title="{{ help_order_status }}">{{ entry_order_status }}</span></label> 723 <div class="col-sm-10"> 724 <select name="config_order_status_id" id="input-order-status" class="form-control"> 725 726 {% for order_status in order_statuses %} 727 {% if order_status.order_status_id == config_order_status_id %} 728 729 <option value="{{ order_status.order_status_id }}" selected="selected">{{ order_status.name }}</option> 730 731 {% else %} 732 733 <option value="{{ order_status.order_status_id }}">{{ order_status.name }}</option> 734 735 {% endif %} 736 {% endfor %} 737 738 </select> 739 </div> 740 </div> 741 <div class="form-group"> 742 <label class="col-sm-2 control-label" for="input-process-status"><span data-toggle="tooltip" title="{{ help_processing_status }}">{{ entry_processing_status }}</span></label> 743 <div class="col-sm-10"> 744 <div class="well well-sm" style="height: 150px; overflow: auto;"> {% for order_status in order_statuses %} 745 <div class="checkbox"> 746 <label> {% if order_status.order_status_id in config_processing_status %} 747 <input type="checkbox" name="config_processing_status[]" value="{{ order_status.order_status_id }}" checked="checked" /> 748 {{ order_status.name }} 749 {% else %} 750 <input type="checkbox" name="config_processing_status[]" value="{{ order_status.order_status_id }}" /> 751 {{ order_status.name }} 752 {% endif %} </label> 753 </div> 754 {% endfor %} </div> 755 {% if error_processing_status %} 756 <div class="text-danger">{{ error_processing_status }}</div> 757 {% endif %} </div> 758 </div> 759 <div class="form-group"> 760 <label class="col-sm-2 control-label" for="input-complete-status"><span data-toggle="tooltip" title="{{ help_complete_status }}">{{ entry_complete_status }}</span></label> 761 <div class="col-sm-10"> 762 <div class="well well-sm" style="height: 150px; overflow: auto;"> {% for order_status in order_statuses %} 763 <div class="checkbox"> 764 <label> {% if order_status.order_status_id in config_complete_status %} 765 <input type="checkbox" name="config_complete_status[]" value="{{ order_status.order_status_id }}" checked="checked" /> 766 {{ order_status.name }} 767 {% else %} 768 <input type="checkbox" name="config_complete_status[]" value="{{ order_status.order_status_id }}" /> 769 {{ order_status.name }} 770 {% endif %} </label> 771 </div> 772 {% endfor %} </div> 773 {% if error_complete_status %} 774 <div class="text-danger">{{ error_complete_status }}</div> 775 {% endif %} </div> 776 </div> 777 <div class="form-group"> 778 <label class="col-sm-2 control-label" for="input-fraud-status"><span data-toggle="tooltip" title="{{ help_fraud_status }}">{{ entry_fraud_status }}</span></label> 779 <div class="col-sm-10"> 780 <select name="config_fraud_status_id" id="input-fraud-status" class="form-control"> 781 782 {% for order_status in order_statuses %} 783 {% if order_status.order_status_id == config_fraud_status_id %} 784 785 <option value="{{ order_status.order_status_id }}" selected="selected">{{ order_status.name }}</option> 786 787 {% else %} 788 789 <option value="{{ order_status.order_status_id }}">{{ order_status.name }}</option> 790 791 {% endif %} 792 {% endfor %} 793 794 </select> 795 </div> 796 </div> 797 <div class="form-group"> 798 <label class="col-sm-2 control-label" for="input-api"><span data-toggle="tooltip" title="{{ help_api }}">{{ entry_api }}</span></label> 799 <div class="col-sm-10"> 800 <select name="config_api_id" id="input-api" class="form-control"> 801 <option value="0">{{ text_none }}</option> 802 803 {% for api in apis %} 804 {% if api.api_id == config_api_id %} 805 806 <option value="{{ api.api_id }}" selected="selected">{{ api.username }}</option> 807 808 {% else %} 809 810 <option value="{{ api.api_id }}">{{ api.username }}</option> 811 812 {% endif %} 813 {% endfor %} 814 815 </select> 816 </div> 817 </div> 818 </fieldset> 819 <fieldset> 820 <legend>{{ text_stock }}</legend> 821 <div class="form-group"> 822 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_stock_display }}">{{ entry_stock_display }}</span></label> 823 <div class="col-sm-10"> 824 <label class="radio-inline"> {% if config_stock_display %} 825 <input type="radio" name="config_stock_display" value="1" checked="checked" /> 826 {{ text_yes }} 827 {% else %} 828 <input type="radio" name="config_stock_display" value="1" /> 829 {{ text_yes }} 830 {% endif %} </label> 831 <label class="radio-inline"> {% if not config_stock_display %} 832 <input type="radio" name="config_stock_display" value="0" checked="checked" /> 833 {{ text_no }} 834 {% else %} 835 <input type="radio" name="config_stock_display" value="0" /> 836 {{ text_no }} 837 {% endif %} </label> 838 </div> 839 </div> 840 <div class="form-group"> 841 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_stock_warning }}">{{ entry_stock_warning }}</span></label> 842 <div class="col-sm-10"> 843 <label class="radio-inline"> {% if config_stock_warning %} 844 <input type="radio" name="config_stock_warning" value="1" checked="checked" /> 845 {{ text_yes }} 846 {% else %} 847 <input type="radio" name="config_stock_warning" value="1" /> 848 {{ text_yes }} 849 {% endif %} </label> 850 <label class="radio-inline"> {% if not config_stock_warning %} 851 <input type="radio" name="config_stock_warning" value="0" checked="checked" /> 852 {{ text_no }} 853 {% else %} 854 <input type="radio" name="config_stock_warning" value="0" /> 855 {{ text_no }} 856 {% endif %} </label> 857 </div> 858 </div> 859 <div class="form-group"> 860 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_stock_checkout }}">{{ entry_stock_checkout }}</span></label> 861 <div class="col-sm-10"> 862 <label class="radio-inline"> {% if config_stock_checkout %} 863 <input type="radio" name="config_stock_checkout" value="1" checked="checked" /> 864 {{ text_yes }} 865 {% else %} 866 <input type="radio" name="config_stock_checkout" value="1" /> 867 {{ text_yes }} 868 {% endif %} </label> 869 <label class="radio-inline"> {% if not config_stock_checkout %} 870 <input type="radio" name="config_stock_checkout" value="0" checked="checked" /> 871 {{ text_no }} 872 {% else %} 873 <input type="radio" name="config_stock_checkout" value="0" /> 874 {{ text_no }} 875 {% endif %} </label> 876 </div> 877 </div> 878 </fieldset> 879 <fieldset> 880 <legend>{{ text_affiliate }}</legend> 881 <div class="form-group"> 882 <label class="col-sm-2 control-label" for="input-affiliate-group">{{ entry_affiliate_group }}</label> 883 <div class="col-sm-10"> 884 <select name="config_affiliate_group_id" id="input-affiliate-group" class="form-control"> 885 886 {% for customer_group in customer_groups %} 887 {% if customer_group.customer_group_id == config_affiliate_group_id %} 888 889 <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option> 890 891 {% else %} 892 893 <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option> 894 895 {% endif %} 896 {% endfor %} 897 898 </select> 899 </div> 900 </div> 901 <div class="form-group"> 902 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_affiliate_approval }}">{{ entry_affiliate_approval }}</span></label> 903 <div class="col-sm-10"> 904 <label class="radio-inline"> {% if config_affiliate_approval %} 905 <input type="radio" name="config_affiliate_approval" value="1" checked="checked" /> 906 {{ text_yes }} 907 {% else %} 908 <input type="radio" name="config_affiliate_approval" value="1" /> 909 {{ text_yes }} 910 {% endif %} </label> 911 <label class="radio-inline"> {% if not config_affiliate_approval %} 912 <input type="radio" name="config_affiliate_approval" value="0" checked="checked" /> 913 {{ text_no }} 914 {% else %} 915 <input type="radio" name="config_affiliate_approval" value="0" /> 916 {{ text_no }} 917 {% endif %} </label> 918 </div> 919 </div> 920 <div class="form-group"> 921 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_affiliate_auto }}">{{ entry_affiliate_auto }}</span></label> 922 <div class="col-sm-10"> 923 <label class="radio-inline"> {% if config_affiliate_auto %} 924 <input type="radio" name="config_affiliate_auto" value="1" checked="checked" /> 925 {{ text_yes }} 926 {% else %} 927 <input type="radio" name="config_affiliate_auto" value="1" /> 928 {{ text_yes }} 929 {% endif %} </label> 930 <label class="radio-inline"> {% if not config_affiliate_auto %} 931 <input type="radio" name="config_affiliate_auto" value="0" checked="checked" /> 932 {{ text_no }} 933 {% else %} 934 <input type="radio" name="config_affiliate_auto" value="0" /> 935 {{ text_no }} 936 {% endif %} </label> 937 </div> 938 </div> 939 <div class="form-group"> 940 <label class="col-sm-2 control-label" for="input-affiliate-commission"><span data-toggle="tooltip" title="{{ help_affiliate_commission }}">{{ entry_affiliate_commission }}</span></label> 941 <div class="col-sm-10"> 942 <input type="text" name="config_affiliate_commission" value="{{ config_affiliate_commission }}" placeholder="{{ entry_affiliate_commission }}" id="input-affiliate-commission" class="form-control" /> 943 </div> 944 </div> 945 <div class="form-group"> 946 <label class="col-sm-2 control-label" for="input-affiliate"><span data-toggle="tooltip" title="{{ help_affiliate }}">{{ entry_affiliate }}</span></label> 947 <div class="col-sm-10"> 948 <select name="config_affiliate_id" id="input-affiliate" class="form-control"> 949 <option value="0">{{ text_none }}</option> 950 951 {% for information in informations %} 952 {% if information.information_id == config_affiliate_id %} 953 954 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 955 956 {% else %} 957 958 <option value="{{ information.information_id }}">{{ information.title }}</option> 959 960 {% endif %} 961 {% endfor %} 962 963 </select> 964 </div> 965 </div> 966 </fieldset> 967 <fieldset> 968 <legend>{{ text_return }}</legend> 969 <div class="form-group"> 970 <label class="col-sm-2 control-label" for="input-return"><span data-toggle="tooltip" title="{{ help_return }}">{{ entry_return }}</span></label> 971 <div class="col-sm-10"> 972 <select name="config_return_id" id="input-return" class="form-control"> 973 <option value="0">{{ text_none }}</option> 974 975 {% for information in informations %} 976 {% if information.information_id == config_return_id %} 977 978 <option value="{{ information.information_id }}" selected="selected">{{ information.title }}</option> 979 980 {% else %} 981 982 <option value="{{ information.information_id }}">{{ information.title }}</option> 983 984 {% endif %} 985 {% endfor %} 986 987 </select> 988 </div> 989 </div> 990 <div class="form-group"> 991 <label class="col-sm-2 control-label" for="input-return-status"><span data-toggle="tooltip" title="{{ help_return_status }}">{{ entry_return_status }}</span></label> 992 <div class="col-sm-10"> 993 <select name="config_return_status_id" id="input-return-status" class="form-control"> 994 995 {% for return_status in return_statuses %} 996 {% if return_status.return_status_id == config_return_status_id %} 997 998 <option value="{{ return_status.return_status_id }}" selected="selected">{{ return_status.name }}</option> 999 1000 {% else %} 1001 1002 <option value="{{ return_status.return_status_id }}">{{ return_status.name }}</option> 1003 1004 {% endif %} 1005 {% endfor %} 1006 1007 </select> 1008 </div> 1009 </div> 1010 </fieldset> 1011 <fieldset> 1012 <legend>{{ text_captcha }}</legend> 1013 <div class="form-group"> 1014 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_captcha }}">{{ entry_captcha }}</span></label> 1015 <div class="col-sm-10"> 1016 <select name="config_captcha" id="input-captcha" class="form-control"> 1017 <option value="">{{ text_none }}</option> 1018 1019 {% for captcha in captchas %} 1020 {% if captcha.value == config_captcha %} 1021 1022 <option value="{{ captcha.value }}" selected="selected">{{ captcha.text }}</option> 1023 1024 {% else %} 1025 1026 <option value="{{ captcha.value }}">{{ captcha.text }}</option> 1027 1028 {% endif %} 1029 {% endfor %} 1030 1031 </select> 1032 </div> 1033 </div> 1034 <div class="form-group"> 1035 <label class="col-sm-2 control-label">{{ entry_captcha_page }}</label> 1036 <div class="col-sm-10"> 1037 <div class="well well-sm" style="height: 150px; overflow: auto;"> {% for captcha_page in captcha_pages %} 1038 <div class="checkbox"> 1039 <label> {% if captcha_page.value in config_captcha_page %} 1040 <input type="checkbox" name="config_captcha_page[]" value="{{ captcha_page.value }}" checked="checked" /> 1041 {{ captcha_page.text }} 1042 {% else %} 1043 <input type="checkbox" name="config_captcha_page[]" value="{{ captcha_page.value }}" /> 1044 {{ captcha_page.text }} 1045 {% endif %} </label> 1046 </div> 1047 {% endfor %} </div> 1048 </div> 1049 </div> 1050 </fieldset> 1051 </div> 1052 <div class="tab-pane" id="tab-image"> 1053 <div class="form-group"> 1054 <label class="col-sm-2 control-label" for="input-logo">{{ entry_logo }}</label> 1055 <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> 1056 <input type="hidden" name="config_logo" value="{{ config_logo }}" id="input-logo" /> 1057 </div> 1058 </div> 1059 <div class="form-group"> 1060 <label class="col-sm-2 control-label" for="input-icon"><span data-toggle="tooltip" title="{{ help_icon }}">{{ entry_icon }}</span></label> 1061 <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> 1062 <input type="hidden" name="config_icon" value="{{ config_icon }}" id="input-icon" /> 1063 </div> 1064 </div> 1065 </div> 1066 <div class="tab-pane" id="tab-mail"> 1067 <fieldset> 1068 <legend>{{ text_general }}</legend> 1069 <div class="form-group"> 1070 <label class="col-sm-2 control-label" for="input-mail-engine"><span data-toggle="tooltip" title="{{ help_mail_engine }}">{{ entry_mail_engine }}</span></label> 1071 <div class="col-sm-10"> 1072 <select name="config_mail_engine" id="input-mail-engine" class="form-control"> 1073 1074 {% if config_mail_engine == 'mail' %} 1075 1076 <option value="mail" selected="selected">{{ text_mail }}</option> 1077 1078 {% else %} 1079 1080 <option value="mail">{{ text_mail }}</option> 1081 1082 {% endif %} 1083 {% if config_mail_engine == 'smtp' %} 1084 1085 <option value="smtp" selected="selected">{{ text_smtp }}</option> 1086 1087 {% else %} 1088 1089 <option value="smtp">{{ text_smtp }}</option> 1090 1091 {% endif %} 1092 1093 </select> 1094 </div> 1095 </div> 1096 <div class="form-group"> 1097 <label class="col-sm-2 control-label" for="input-mail-parameter"><span data-toggle="tooltip" title="{{ help_mail_parameter }}">{{ entry_mail_parameter }}</span></label> 1098 <div class="col-sm-10"> 1099 <input type="text" name="config_mail_parameter" value="{{ config_mail_parameter }}" placeholder="{{ entry_mail_parameter }}" id="input-mail-parameter" class="form-control" /> 1100 </div> 1101 </div> 1102 <div class="form-group"> 1103 <label class="col-sm-2 control-label" for="input-mail-smtp-hostname"><span data-toggle="tooltip" title="{{ help_mail_smtp_hostname }}">{{ entry_mail_smtp_hostname }}</span></label> 1104 <div class="col-sm-10"> 1105 <input type="text" name="config_mail_smtp_hostname" value="{{ config_mail_smtp_hostname }}" placeholder="{{ entry_mail_smtp_hostname }}" id="input-mail-smtp-hostname" class="form-control" /> 1106 </div> 1107 </div> 1108 <div class="form-group"> 1109 <label class="col-sm-2 control-label" for="input-mail-smtp-username">{{ entry_mail_smtp_username }}</label> 1110 <div class="col-sm-10"> 1111 <input type="text" name="config_mail_smtp_username" value="{{ config_mail_smtp_username }}" placeholder="{{ entry_mail_smtp_username }}" id="input-mail-smtp-username" class="form-control" /> 1112 </div> 1113 </div> 1114 <div class="form-group"> 1115 <label class="col-sm-2 control-label" for="input-mail-smtp-password"><span data-toggle="tooltip" title="{{ help_mail_smtp_password }}">{{ entry_mail_smtp_password }}</span></label> 1116 <div class="col-sm-10"> 1117 <input type="text" name="config_mail_smtp_password" value="{{ config_mail_smtp_password }}" placeholder="{{ entry_mail_smtp_password }}" id="input-mail-smtp-password" class="form-control" /> 1118 </div> 1119 </div> 1120 <div class="form-group"> 1121 <label class="col-sm-2 control-label" for="input-mail-smtp-port">{{ entry_mail_smtp_port }}</label> 1122 <div class="col-sm-10"> 1123 <input type="text" name="config_mail_smtp_port" value="{{ config_mail_smtp_port }}" placeholder="{{ entry_mail_smtp_port }}" id="input-mail-smtp-port" class="form-control" /> 1124 </div> 1125 </div> 1126 <div class="form-group"> 1127 <label class="col-sm-2 control-label" for="input-mail-smtp-timeout">{{ entry_mail_smtp_timeout }}</label> 1128 <div class="col-sm-10"> 1129 <input type="text" name="config_mail_smtp_timeout" value="{{ config_mail_smtp_timeout }}" placeholder="{{ entry_mail_smtp_timeout }}" id="input-mail-smtp-timeout" class="form-control" /> 1130 </div> 1131 </div> 1132 </fieldset> 1133 <fieldset> 1134 <legend>{{ text_mail_alert }}</legend> 1135 <div class="form-group"> 1136 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_mail_alert }}">{{ entry_mail_alert }}</span></label> 1137 <div class="col-sm-10"> 1138 <div class="well well-sm" style="height: 150px; overflow: auto;"> {% for mail_alert in mail_alerts %} 1139 <div class="checkbox"> 1140 <label> {% if mail_alert.value in config_mail_alert %} 1141 <input type="checkbox" name="config_mail_alert[]" value="{{ mail_alert.value }}" checked="checked" /> 1142 {{ mail_alert.text }} 1143 {% else %} 1144 <input type="checkbox" name="config_mail_alert[]" value="{{ mail_alert.value }}" /> 1145 {{ mail_alert.text }} 1146 {% endif %} </label> 1147 </div> 1148 {% endfor %} </div> 1149 </div> 1150 </div> 1151 <div class="form-group"> 1152 <label class="col-sm-2 control-label" for="input-mail-alert-email"><span data-toggle="tooltip" title="{{ help_mail_alert_email }}">{{ entry_mail_alert_email }}</span></label> 1153 <div class="col-sm-10"> 1154 <textarea name="config_mail_alert_email" rows="5" placeholder="{{ entry_mail_alert_email }}" id="input-alert-email" class="form-control">{{ config_mail_alert_email }}</textarea> 1155 </div> 1156 </div> 1157 </fieldset> 1158 </div> 1159 <div class="tab-pane" id="tab-server"> 1160 <fieldset> 1161 <legend>{{ text_general }}</legend> 1162 <div class="form-group"> 1163 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_maintenance }}">{{ entry_maintenance }}</span></label> 1164 <div class="col-sm-10"> 1165 <label class="radio-inline"> {% if config_maintenance %} 1166 <input type="radio" name="config_maintenance" value="1" checked="checked" /> 1167 {{ text_yes }} 1168 {% else %} 1169 <input type="radio" name="config_maintenance" value="1" /> 1170 {{ text_yes }} 1171 {% endif %} </label> 1172 <label class="radio-inline"> {% if not config_maintenance %} 1173 <input type="radio" name="config_maintenance" value="0" checked="checked" /> 1174 {{ text_no }} 1175 {% else %} 1176 <input type="radio" name="config_maintenance" value="0" /> 1177 {{ text_no }} 1178 {% endif %} </label> 1179 </div> 1180 </div> 1181 <div class="form-group"> 1182 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_seo_url }}">{{ entry_seo_url }}</span></label> 1183 <div class="col-sm-10"> 1184 <label class="radio-inline"> {% if config_seo_url %} 1185 <input type="radio" name="config_seo_url" value="1" checked="checked" /> 1186 {{ text_yes }} 1187 {% else %} 1188 <input type="radio" name="config_seo_url" value="1" /> 1189 {{ text_yes }} 1190 {% endif %} </label> 1191 <label class="radio-inline"> {% if not config_seo_url %} 1192 <input type="radio" name="config_seo_url" value="0" checked="checked" /> 1193 {{ text_no }} 1194 {% else %} 1195 <input type="radio" name="config_seo_url" value="0" /> 1196 {{ text_no }} 1197 {% endif %} </label> 1198 </div> 1199 </div> 1200 <div class="form-group"> 1201 <label class="col-sm-2 control-label" for="input-robots"><span data-toggle="tooltip" title="{{ help_robots }}">{{ entry_robots }}</span></label> 1202 <div class="col-sm-10"> 1203 <textarea name="config_robots" rows="5" placeholder="{{ entry_robots }}" id="input-robots" class="form-control">{{ config_robots }}</textarea> 1204 </div> 1205 </div> 1206 <div class="form-group"> 1207 <label class="col-sm-2 control-label" for="input-compression"><span data-toggle="tooltip" title="{{ help_compression }}">{{ entry_compression }}</span></label> 1208 <div class="col-sm-10"> 1209 <input type="text" name="config_compression" value="{{ config_compression }}" placeholder="{{ entry_compression }}" id="input-compression" class="form-control" /> 1210 </div> 1211 </div> 1212 </fieldset> 1213 <fieldset> 1214 <legend>{{ text_security }}</legend> 1215 <div class="form-group"> 1216 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_secure }}">{{ entry_secure }}</span></label> 1217 <div class="col-sm-10"> 1218 <label class="radio-inline"> {% if config_secure %} 1219 <input type="radio" name="config_secure" value="1" checked="checked" /> 1220 {{ text_yes }} 1221 {% else %} 1222 <input type="radio" name="config_secure" value="1" /> 1223 {{ text_yes }} 1224 {% endif %} </label> 1225 <label class="radio-inline"> {% if not config_secure %} 1226 <input type="radio" name="config_secure" value="0" checked="checked" /> 1227 {{ text_no }} 1228 {% else %} 1229 <input type="radio" name="config_secure" value="0" /> 1230 {{ text_no }} 1231 {% endif %} </label> 1232 </div> 1233 </div> 1234 <div class="form-group"> 1235 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_password }}">{{ entry_password }}</span></label> 1236 <div class="col-sm-10"> 1237 <label class="radio-inline"> {% if config_password %} 1238 <input type="radio" name="config_password" value="1" checked="checked" /> 1239 {{ text_yes }} 1240 {% else %} 1241 <input type="radio" name="config_password" value="1" /> 1242 {{ text_yes }} 1243 {% endif %} </label> 1244 <label class="radio-inline"> {% if not config_password %} 1245 <input type="radio" name="config_password" value="0" checked="checked" /> 1246 {{ text_no }} 1247 {% else %} 1248 <input type="radio" name="config_password" value="0" /> 1249 {{ text_no }} 1250 {% endif %} </label> 1251 </div> 1252 </div> 1253 <div class="form-group"> 1254 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_shared }}">{{ entry_shared }}</span></label> 1255 <div class="col-sm-10"> 1256 <label class="radio-inline"> {% if config_shared %} 1257 <input type="radio" name="config_shared" value="1" checked="checked" /> 1258 {{ text_yes }} 1259 {% else %} 1260 <input type="radio" name="config_shared" value="1" /> 1261 {{ text_yes }} 1262 {% endif %} </label> 1263 <label class="radio-inline"> {% if not config_shared %} 1264 <input type="radio" name="config_shared" value="0" checked="checked" /> 1265 {{ text_no }} 1266 {% else %} 1267 <input type="radio" name="config_shared" value="0" /> 1268 {{ text_no }} 1269 {% endif %} </label> 1270 </div> 1271 </div> 1272 <div class="form-group"> 1273 <label class="col-sm-2 control-label" for="input-encryption"><span data-toggle="tooltip" title="{{ help_encryption }}">{{ entry_encryption }}</span></label> 1274 <div class="col-sm-10"> 1275 <textarea name="config_encryption" rows="5" placeholder="{{ entry_encryption }}" id="input-encryption" class="form-control">{{ config_encryption }}</textarea> 1276 {% if error_encryption %} 1277 <div class="text-danger">{{ error_encryption }}</div> 1278 {% endif %} </div> 1279 </div> 1280 </fieldset> 1281 <fieldset> 1282 <legend>{{ text_upload }}</legend> 1283 <div class="form-group"> 1284 <label class="col-sm-2 control-label" for="input-file-max-size"><span data-toggle="tooltip" title="{{ help_file_max_size }}">{{ entry_file_max_size }}</span></label> 1285 <div class="col-sm-10"> 1286 <input type="text" name="config_file_max_size" value="{{ config_file_max_size }}" placeholder="{{ entry_file_max_size }}" id="input-file-max-size" class="form-control" /> 1287 </div> 1288 </div> 1289 <div class="form-group"> 1290 <label class="col-sm-2 control-label" for="input-file-ext-allowed"><span data-toggle="tooltip" title="{{ help_file_ext_allowed }}">{{ entry_file_ext_allowed }}</span></label> 1291 <div class="col-sm-10"> 1292 <textarea name="config_file_ext_allowed" rows="5" placeholder="{{ entry_file_ext_allowed }}" id="input-file-ext-allowed" class="form-control">{{ config_file_ext_allowed }}</textarea> 1293 </div> 1294 </div> 1295 <div class="form-group"> 1296 <label class="col-sm-2 control-label" for="input-file-mime-allowed"><span data-toggle="tooltip" title="{{ help_file_mime_allowed }}">{{ entry_file_mime_allowed }}</span></label> 1297 <div class="col-sm-10"> 1298 <textarea name="config_file_mime_allowed" rows="5" placeholder="{{ entry_file_mime_allowed }}" id="input-file-mime-allowed" class="form-control">{{ config_file_mime_allowed }}</textarea> 1299 </div> 1300 </div> 1301 </fieldset> 1302 <fieldset> 1303 <legend>{{ text_error }}</legend> 1304 <div class="form-group"> 1305 <label class="col-sm-2 control-label">{{ entry_error_display }}</label> 1306 <div class="col-sm-10"> 1307 <label class="radio-inline"> {% if config_error_display %} 1308 <input type="radio" name="config_error_display" value="1" checked="checked" /> 1309 {{ text_yes }} 1310 {% else %} 1311 <input type="radio" name="config_error_display" value="1" /> 1312 {{ text_yes }} 1313 {% endif %} </label> 1314 <label class="radio-inline"> {% if not config_error_display %} 1315 <input type="radio" name="config_error_display" value="0" checked="checked" /> 1316 {{ text_no }} 1317 {% else %} 1318 <input type="radio" name="config_error_display" value="0" /> 1319 {{ text_no }} 1320 {% endif %} </label> 1321 </div> 1322 </div> 1323 <div class="form-group"> 1324 <label class="col-sm-2 control-label">{{ entry_error_log }}</label> 1325 <div class="col-sm-10"> 1326 <label class="radio-inline"> {% if config_error_log %} 1327 <input type="radio" name="config_error_log" value="1" checked="checked" /> 1328 {{ text_yes }} 1329 {% else %} 1330 <input type="radio" name="config_error_log" value="1" /> 1331 {{ text_yes }} 1332 {% endif %} </label> 1333 <label class="radio-inline"> {% if not config_error_log %} 1334 <input type="radio" name="config_error_log" value="0" checked="checked" /> 1335 {{ text_no }} 1336 {% else %} 1337 <input type="radio" name="config_error_log" value="0" /> 1338 {{ text_no }} 1339 {% endif %}</label> 1340 </div> 1341 </div> 1342 <div class="form-group required"> 1343 <label class="col-sm-2 control-label" for="input-error-filename">{{ entry_error_filename }}</label> 1344 <div class="col-sm-10"> 1345 <input type="text" name="config_error_filename" value="{{ config_error_filename }}" placeholder="{{ entry_error_filename }}" id="input-error-filename" class="form-control" /> 1346 {% if error_log %} 1347 <div class="text-danger">{{ error_log }}</div> 1348 {% endif %} </div> 1349 </div> 1350 </fieldset> 1351 </div> 1352 </div> 1353 </form> 1354 </div> 1355 </div> 1356 </div> 1357 <script type="text/javascript"><!-- 1358 $('select[name=\'config_theme\']').on('change', function() { 1359 $.ajax({ 1360 url: 'index.php?route=setting/setting/theme&user_token={{ user_token }}&theme=' + this.value, 1361 dataType: 'html', 1362 beforeSend: function() { 1363 $('select[name=\'config_theme\']').prop('disabled', true); 1364 }, 1365 complete: function() { 1366 $('select[name=\'config_theme\']').prop('disabled', false); 1367 }, 1368 success: function(html) { 1369 $('#theme').attr('src', html); 1370 }, 1371 error: function(xhr, ajaxOptions, thrownError) { 1372 alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); 1373 } 1374 }); 1375 }); 1376 1377 $('select[name=\'config_theme\']').trigger('change'); 1378 //--></script> 1379 <script type="text/javascript"><!-- 1380 $('select[name=\'config_country_id\']').on('change', function() { 1381 $.ajax({ 1382 url: 'index.php?route=localisation/country/country&user_token={{ user_token }}&country_id=' + this.value, 1383 dataType: 'json', 1384 beforeSend: function() { 1385 $('select[name=\'config_country_id\']').prop('disabled', true); 1386 }, 1387 complete: function() { 1388 $('select[name=\'config_country_id\']').prop('disabled', false); 1389 }, 1390 success: function(json) { 1391 html = '<option value="">{{ text_select }}</option>'; 1392 1393 if (json['zone'] && json['zone'] != '') { 1394 for (i = 0; i < json['zone'].length; i++) { 1395 html += '<option value="' + json['zone'][i]['zone_id'] + '"'; 1396 1397 if (json['zone'][i]['zone_id'] == '{{ config_zone_id }}') { 1398 html += ' selected="selected"'; 1399 } 1400 1401 html += '>' + json['zone'][i]['name'] + '</option>'; 1402 } 1403 } else { 1404 html += '<option value="0" selected="selected">{{ text_none }}</option>'; 1405 } 1406 1407 $('select[name=\'config_zone_id\']').html(html); 1408 1409 $('#button-save').prop('disabled', false); 1410 }, 1411 error: function(xhr, ajaxOptions, thrownError) { 1412 alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); 1413 } 1414 }); 1415 }); 1416 1417 $('select[name=\'config_country_id\']').trigger('change'); 1418 //--></script></div> 1419 {{ footer }}