tax_rate_form.twig (4733B)
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-tax-rate" 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_form }}</h3> 25 </div> 26 <div class="panel-body"> 27 <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-tax-rate" class="form-horizontal"> 28 <div class="form-group required"> 29 <label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label> 30 <div class="col-sm-10"> 31 <input type="text" name="name" value="{{ name }}" placeholder="{{ entry_name }}" id="input-name" class="form-control" /> 32 {% if error_name %} 33 <div class="text-danger">{{ error_name }}</div> 34 {% endif %} 35 </div> 36 </div> 37 <div class="form-group required"> 38 <label class="col-sm-2 control-label" for="input-rate">{{ entry_rate }}</label> 39 <div class="col-sm-10"> 40 <input type="text" name="rate" value="{{ rate }}" placeholder="{{ entry_rate }}" id="input-rate" class="form-control" /> 41 {% if error_rate %} 42 <div class="text-danger">{{ error_rate }}</div> 43 {% endif %} 44 </div> 45 </div> 46 <div class="form-group"> 47 <label class="col-sm-2 control-label" for="input-type">{{ entry_type }}</label> 48 <div class="col-sm-10"> 49 <select name="type" id="input-type" class="form-control"> 50 {% if type == 'P' %} 51 <option value="P" selected="selected">{{ text_percent }}</option> 52 {% else %} 53 <option value="P">{{ text_percent }}</option> 54 {% endif %} 55 {% if type == 'F' %} 56 <option value="F" selected="selected">{{ text_amount }}</option> 57 {% else %} 58 <option value="F">{{ text_amount }}</option> 59 {% endif %} 60 </select> 61 </div> 62 </div> 63 <div class="form-group"> 64 <label class="col-sm-2 control-label">{{ entry_customer_group }}</label> 65 <div class="col-sm-10"> 66 {% for customer_group in customer_groups %} 67 <div class="checkbox"> 68 <label> 69 {% if customer_group.customer_group_id in tax_rate_customer_group %} 70 <input type="checkbox" name="tax_rate_customer_group[]" value="{{ customer_group.customer_group_id }}" checked="checked" /> 71 {{ customer_group.name }} 72 {% else %} 73 <input type="checkbox" name="tax_rate_customer_group[]" value="{{ customer_group.customer_group_id }}" /> 74 {{ customer_group.name }} 75 {% endif %} 76 </label> 77 </div> 78 {% endfor %} 79 </div> 80 </div> 81 <div class="form-group"> 82 <label class="col-sm-2 control-label" for="input-geo-zone">{{ entry_geo_zone }}</label> 83 <div class="col-sm-10"> 84 <select name="geo_zone_id" id="input-geo-zone" class="form-control"> 85 {% for geo_zone in geo_zones %} 86 {% if geo_zone.geo_zone_id == geo_zone_id %} 87 <option value="{{ geo_zone.geo_zone_id }}" selected="selected">{{ geo_zone.name }}</option> 88 {% else %} 89 <option value="{{ geo_zone.geo_zone_id }}">{{ geo_zone.name }}</option> 90 {% endif %} 91 {% endfor %} 92 </select> 93 </div> 94 </div> 95 </form> 96 </div> 97 </div> 98 </div> 99 </div> 100 {{ footer }}