{{ header }}{{ column_left }}
<div id="content">
	<div class="page-header">
		<div class="container-fluid">
			<div class="pull-right">
				<button type="submit" form="form" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
				<a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a>
			</div>
			<h1>{{ heading_title }}</h1>
			<ul class="breadcrumb">
				{% for breadcrumb in breadcrumbs %}
				<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
				{% endfor %}
			</ul>
		</div>
	</div>
	<div class="container-fluid">
		{% if error_warning %}
		<script>
			usNotify('warning', '{{ error_warning }}');
		</script>
		{% endif %}
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
			</div>
			<div class="panel-body">
				<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
						<div class="col-sm-10">
							<div class="toggle-group">
							    <input type="checkbox" name="status" {% if status %}checked="checked"{% endif %} id="status" tabindex="1">
							    <label for="status"></label>
							    <div class="onoffswitch pull-left" aria-hidden="true">
							        <div class="onoffswitch-label">
							            <div class="onoffswitch-inner"></div>
							            <div class="onoffswitch-switch"></div>
							        </div>
							    </div>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label>
						<div class="col-sm-10">
							<input type="text" name="name" value="{{ name }}" placeholder="{{ entry_name }}" id="input-name" class="form-control" />
							{% if error_name %}
							<div class="text-danger">
								<script>
									usNotify('warning', '{{ error_name }}');
								</script>
							</div>
							{% endif %}
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-slideshow">{{ entry_slideshow }}</label>
						<div class="col-sm-10">
							<select name="slideshow_id" id="input-slideshow" class="form-control">
								<option value="">{{ text_select }}</option>
								{% for slideshow in slideshows_plus %}
								<option value="{{ slideshow.slideshow_id }}" {% if (slideshow.slideshow_id == slideshow_id) %}selected="selected"{% endif %}>{{ slideshow['name'] }}</option>
								{% endfor %}
							</select>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="input-width">{{ entry_width }}</label>
							<div class="col-sm-8">
								<div class="input-group">
									<input type="text" name="width" value="{{ width }}" placeholder="{{ entry_width }}" id="input-width" class="form-control" />
									<span class="input-group-addon">px</span>
								</div>
								{% if error_width %}
								<div class="text-danger">
									<script>
										usNotify('warning', '{{ error_width }}');
									</script>
								</div>
								{% endif %}
							</div>
						</div>
						<div class="col-sm-6">
							<label class="col-sm-2 control-label" for="input-height">{{ entry_height }}</label>
							<div class="col-sm-10">
								<div class="input-group">
									<input type="text" name="height" value="{{ height }}" placeholder="{{ entry_height }}" id="input-height" class="form-control" />
									<span class="input-group-addon">px</span>
								</div>
								{% if error_height %}
								<div class="text-danger">
									<script>
										usNotify('warning', '{{ error_height }}');
									</script>
								</div>
								{% endif %}
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="paginations_status">{{ entry_paginations }}</label>
							<div class="col-sm-8">
								<div class="toggle-group">
								    <input type="checkbox" name="paginations_status" {% if paginations_status %}checked="checked"{% endif %} id="paginations_status" tabindex="1">
								    <label for="paginations_status"></label>
								    <div class="onoffswitch pull-left" aria-hidden="true">
								        <div class="onoffswitch-label">
								            <div class="onoffswitch-inner"></div>
								            <div class="onoffswitch-switch"></div>
								        </div>
								    </div>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="preload_img">{{ entry_preload_img }}</label>
							<div class="col-sm-8">
								<div class="toggle-group">
								    <input type="checkbox" name="preload_img" {% if preload_img %}checked="checked"{% endif %} id="preload_img" tabindex="1">
								    <label for="preload_img"></label>
								    <div class="onoffswitch pull-left" aria-hidden="true">
								        <div class="onoffswitch-label">
								            <div class="onoffswitch-inner"></div>
								            <div class="onoffswitch-switch"></div>
								        </div>
								    </div>
								</div>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="slider_type">{{ entry_slider_type }}</label>
							<div class="col-sm-8">
								<select name="slider_type" id="slider_type" class="form-control">
									<option value="1" {% if (slider_type == 1) %}selected="selected"{% endif %}>{{ text_slider_type_1 }}</option>
									<option value="2" {% if (slider_type == 2) %}selected="selected"{% endif %}>{{ text_slider_type_2 }}</option>
								</select>
							</div>
						</div>
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="slider_with_megamenu">{{ entry_with_megamenu }}</label>
							<div class="col-sm-8">
								<div class="toggle-group">
								    <input type="checkbox" name="slider_with_megamenu" {% if slider_with_megamenu %}checked="checked"{% endif %} id="slider_with_megamenu" tabindex="1">
								    <label for="slider_with_megamenu"></label>
								    <div class="onoffswitch pull-left" aria-hidden="true">
								        <div class="onoffswitch-label">
								            <div class="onoffswitch-inner"></div>
								            <div class="onoffswitch-switch"></div>
								        </div>
								    </div>
								</div>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="slider_autoplay">{{ entry_autoplay }}</label>
							<div class="col-sm-8">
								<div class="toggle-group">
								    <input type="checkbox" name="slider_autoplay" {% if slider_autoplay %}checked="checked"{% endif %} id="slider_autoplay" tabindex="1">
								    <label for="slider_autoplay"></label>
								    <div class="onoffswitch pull-left" aria-hidden="true">
								        <div class="onoffswitch-label">
								            <div class="onoffswitch-inner"></div>
								            <div class="onoffswitch-switch"></div>
								        </div>
								    </div>
								</div>
							</div>
						</div>
						<div class="col-sm-6">
							<label class="col-sm-4 control-label" for="arrows_status">{{ entry_arrows }}</label>
							<div class="col-sm-8">
								<div class="toggle-group">
								    <input type="checkbox" name="arrows_status" {% if arrows_status %}checked="checked"{% endif %} id="arrows_status" tabindex="1">
								    <label for="arrows_status"></label>
								    <div class="onoffswitch pull-left" aria-hidden="true">
								        <div class="onoffswitch-label">
								            <div class="onoffswitch-inner"></div>
								            <div class="onoffswitch-switch"></div>
								        </div>
								    </div>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{{ footer }}
