shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

klarna_fee.twig (5339B)


      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-total" 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">&times;</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-total" class="form-horizontal">
     28           <ul class="nav nav-tabs" id="country">
     29             {% for country in countries %}
     30             <li><a href="#tab-{{ country.code }}" data-toggle="tab">{{ country.name }}</a></li>
     31             {% endfor %}
     32           </ul>
     33           <div class="tab-content">
     34             {% for country in countries %}
     35             <div class="tab-pane" id="tab-{{ country.code }}">
     36               <div class="form-group">
     37                 <label class="col-sm-2 control-label" for="input-total{{ country.code }}">{{ entry_total }}</label>
     38                 <div class="col-sm-10">
     39                   <input type="text" name="total_klarna_fee[{{ country.code }}][total]" value="{{ total_klarna_fee[country.code] ? total_klarna_fee[country.code].total }}" placeholder="{{ entry_total }}" id="input-total{{ country.code }}" class="form-control" />
     40                 </div>
     41               </div>
     42               <div class="form-group">
     43                 <label class="col-sm-2 control-label" for="input-fee{{ country.code }}">{{ entry_fee }}</label>
     44                 <div class="col-sm-10">
     45                   <input type="text" name="total_klarna_fee[{{ country.code }}][fee]" value="{{ total_klarna_fee[country.code] ? total_klarna_fee[country.code].fee }}" placeholder="{{ entry_fee }}" id="input-fee{{ country.code }}" class="form-control" />
     46                 </div>
     47               </div>
     48               <div class="form-group">
     49                 <label class="col-sm-2 control-label" for="input-tax-class{{ country.code }}">{{ entry_tax_class }}</label>
     50                 <div class="col-sm-10">
     51                   <select name="total_klarna_fee[{{ country.code }}][tax_class_id]" id="input-tax-class{{ country.code }}" class="form-control">
     52                     <option value="0">{{ text_none }}</option>
     53                     {% for tax_class in tax_classes %}
     54                     {% if total_klarna_fee[country.code] and total_klarna_fee[country.code].tax_class_id == tax_class.tax_class_id %}
     55                     <option value="{{ tax_class.tax_class_id }}" selected="selected">{{ tax_class.title }}</option>
     56                     {% else %}
     57                     <option value="{{ tax_class.tax_class_id }}">{{ tax_class.title }}</option>
     58                     {% endif %}
     59                     {% endfor %}
     60                   </select>
     61                 </div>
     62               </div>
     63               <div class="form-group">
     64                 <label class="col-sm-2 control-label" for="input-status{{ country.code }}">{{ entry_status }}</label>
     65                 <div class="col-sm-10">
     66                   <select name="total_klarna_fee[{{ country.code }}][status]" id="input-status{{ country.code }}" class="form-control">
     67                     {% if total_klarna_fee[country.code] and total_klarna_fee[country.code].status %}
     68                     <option value="1" selected="selected">{{ text_enabled }}</option>
     69                     <option value="0">{{ text_disabled }}</option>
     70                     {% else %}
     71                     <option value="1">{{ text_enabled }}</option>
     72                     <option value="0" selected="selected">{{ text_disabled }}</option>
     73                     {% endif %}
     74                   </select>
     75                 </div>
     76               </div>
     77               <div class="form-group">
     78                 <label class="col-sm-2 control-label" for="input-sort-order{{ country.code }}">{{ entry_sort_order }}</label>
     79                 <div class="col-sm-10">
     80                   <input type="text" name="total_klarna_fee[{{ country.code }}][sort_order]" value="{{ total_klarna_fee[country.code] ? total_klarna_fee[country.code].sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order{{ country.code }}" class="form-control" />
     81                 </div>
     82               </div>
     83             </div>
     84             {% endfor %}
     85           </div>
     86         </form>
     87       </div>
     88     </div>
     89   </div>
     90   <script type="text/javascript"><!--
     91 $('#country a:first').tab('show');
     92 //--></script></div>
     93 {{ footer }}