{{ header }}
<header class="background-white bottom-margin-large">
	<div class="container-fluid">
		<div class="row no-space-xs">
			<div class="col-xs-12">
				<div class="content-box vertical-padding-large flex between-xs middle-xs">
					<div>
						<span class="text-x-large text-dark">{{ heading_title }}</span>
						<div class="adm-breadcrumb">
							{% for breadcrumb in breadcrumbs %}
								<i class="fas fa-angle-right text-x-small text-gray horizontal-padding-small"></i>
								<a href="{{ breadcrumb.href }}" class="text-x-small text-gray text-decoration-none">{{ breadcrumb.text }}</a>
							{% endfor %}
						</div>
					</div>
					<div class="flex flex-row middle-xs">
						<a href="{{ cancel }}" class="btn-default btn-medium btn-outline right-margin-small">
							<span>{{ button_cancel }}</span>
						</a>
						<button class="btn-default btn-medium btn-primary js-submit-main-form">
							<span>{{ button_save }}</span>
						</button>
					</div>
				</div>
				{% if error_warning %}
					<div class="warning full-width">{{ error_warning }}</div>
				{% endif %}
			</div>
		</div>
	</div>
</header>
<div class="container-fluid">
	<form action="{{ action }}" method="post" class="js-main-form">
		<div class="row">
			<div class="col-xs-12 col-md-8">
				<div class="background-white padding-large bottom-margin-medium shadow-small">
					<label class="field field-medium bottom-padding-large">
						<span class="field-label">{{ entry_title }}</span>
						<input class="field-entry" type="text" name="cod_title" value="{{ cod_title }}">
					</label>
					<label class="field field-medium bottom-padding-large">
						<span class="field-label">{{ entry_total }}</span>
						<span class="text-x-small text-gray">{{ entry_total_obs }}</span>
						<input class="field-entry mask-money" type="text" name="cod_total" value="{{ cod_total }}" class="numericpoint">
					</label>
					<label class="field field-medium">
						<span class="field-label">{{ entry_order_status }}</span>
						<select class="field-entry" name="cod_order_status_id">
							{% for order_status in order_statuses %}
								<option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cod_order_status_id ? 'selected="selected"' : '' }}>
									{{ order_status.name }}
								</option>
							{% endfor %}
						</select>
					</label>

					<label class="field field-medium top-margin-large">
						<span class="field-label">{{ text_shipping }}</span>
						<div class="pne-shipping-methods flex-item-auto flex middle-xs">

							{% for shipping_method in shipping_methods %}
								<label class="checkbox checkbox-medium">
									<input type="checkbox" class="checkbox-entry" name="cod_shipping_methods[]" value="{{ shipping_method.code }}" {{ shipping_method.checked ? 'checked' : '' }}>
									<span class="checkbox-text">{{ shipping_method.title }}</span>
								</label>
							{% endfor %}

						</div>
					</label>

				</div>
			</div>
			<div class="col-xs-12 col-md-4">
				<div class="background-white padding-large bottom-margin-medium shadow-small">
					<label class="field field-medium bottom-padding-large">
						<span class="field-label">{{ entry_status }}</span>
						<select class="field-entry" name="cod_status">
							<option value="1" {{ cod_status ? 'selected="selected"' : '' }}>{{ text_enabled }}</option>
							<option value="0" {{ cod_status ? '' : 'selected="selected"' }}>{{ text_disabled }}</option>
						</select>
					</label>
					<label class="field field-medium bottom-padding-large">
						<span class="field-label">{{ entry_display }}</span>
						<select class="field-entry" name="cod_display">
							{% for key, display in Type_DisplayModuleOption.getEnumList() %}
								<option value="{{ key }}" {{ ftr_geral.isSelected(key, cod_display, Type_DisplayModuleOption.Tp_Todos) }}>{{ display }}</option>
							{% endfor %}
						</select>
					</label>
					<label class="field field-medium bottom-padding-large">
						<span class="field-label">{{ entry_sort_order }}</span>
						<input class="field-entry mask-number" type="text" name="cod_sort_order" value="{{ cod_sort_order }}" size="1">
					</label>
					<label class="field field-medium">
						<span class="field-label">{{ entry_geo_zone }}</span>
						<select class="field-entry" name="cod_geo_zone_id">
							<option value="0">{{ text_all_zones }}</option>
							{% for geo_zone in geo_zones %}
								<option value="{{ geo_zone.geo_zone_id }}" {{ geo_zone.geo_zone_id == cod_geo_zone_id ? 'selected="selected"' : '' }}>
									{{ geo_zone.name }}
								</option>
							{% endfor %}
						</select>
					</label>
				</div>
			</div>
		</div>
	</form>
</div>
{{ footer }}
