{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-module_testimonial" 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 %}
    <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
        <div class="pull-right"><b>Store</b>
          <select style="width:174px;" onchange="location = this.options[this.selectedIndex].value;">
            <option value="{{ store_action }}&store_id=0">{{ text_default }}</option>
				{% for store in stores %}
					{% if store.store_id==store_id %} 
                  select = 'selected="selected"';
				  {% else %}
                  select = '';
				  {% endif %}
			  {% endfor %}
          </select>
        </div>
      </div>
      <div class="panel-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-module_testimonial" class="form-horizontal">
		{% for language in languages %}
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-heading{{ language.language_id }}">{{ entry_heading }}</label>
            <div class="col-sm-10">
				<div class="input-group">
				<span class="input-group-addon">
				<img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" />
				</span>
				<input name="module_testimonial_heading{{ language.language_id }}" cols="80" rows="10" placeholder="{{ entry_heading }}" id="input-bank{{ language.language_id }}" class="form-control" value="{{ module_testimonial_heading[language.language_id] ? module_testimonial_heading[language.language_id] }}" />
               </div>
            </div>
          </div>
          {% endfor %}
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
				<div class="col-sm-10">
					<select name="module_testimonial_status" id="input-status" class="form-control">
						{% if module_testimonial_status %}
						<option value="1" selected="selected">{{ text_enabled }}</option>
						<option value="0">{{ text_disabled }}</option>
						{% else %}
						<option value="1">{{ text_enabled }}</option>
						<option value="0" selected="selected">{{ text_disabled }}</option>
						{% endif %}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-testimonial-width">{{ entry_image_testimonial }}</label>
				<div class="col-sm-10">
					<div class="row">
						<div class="col-sm-6">
							<input type="text" name="module_testimonial_width" value="{{ module_testimonial_width }}" placeholder="{{ entry_width }}" id="input-module_testimonial-width" class="form-control" />
						</div>
						<div class="col-sm-6">
							<input type="text" name="module_testimonial_height" value="{{ module_testimonial_height }}" placeholder="{{ entry_height }}" class="form-control" />
						</div>
					</div>
					{% if error_image_testimonial %}
					<div class="text-danger">{{ error_image_testimonial }}</div>
					{% endif %}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_publishdate }}</label>
				<div class="col-sm-10">
					<select name="module_testimonial_publishdate" id="input-status" class="form-control">
						{% if module_testimonial_publishdate %}
						<option value="1" selected="selected">{{ text_enabled }}</option>
						<option value="0">{{ text_disabled }}</option>
						{% else %}
						<option value="1">{{ text_enabled }}</option>
						<option value="0" selected="selected">{{ text_disabled }}</option>
						{% endif %}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_bg_image }}</label>
				<div class="col-sm-10">
					<div class="row">
						<div class="col-sm-12">
							<a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="{{ thumb }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a><input type="hidden" name="module_testimonial_image" value="{{ module_testimonial_image }}" id="input-image" />
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_bg_color }}</label>
				<div class="col-sm-10">
					<div class="row">
						<div class="col-sm-12">
							<input type="text" class="color form-control" name="module_testimonial_bgcolor" value="{{ module_testimonial_bgcolor }}" placeholder="{{ module_testimonial_bgcolor }}" class="form-control" />
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_font_color }}</label>
				<div class="col-sm-10">
					<div class="row">
						<div class="col-sm-12">
							<input type="text"  class="color form-control" name="module_testimonial_fontcolor" value="{{ module_testimonial_fontcolor }}" placeholder="{{ entry_font_color }}" class="form-control" />
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="input-status">{{ entry_heading_color }}</label>
				<div class="col-sm-10">
					<div class="row">
						<div class="col-sm-12">
							<input type="text"  class="color form-control" name="module_testimonial_heading_color" value="{{ module_testimonial_heading_color }}" placeholder="{{ entry_heading_color }}" class="form-control" />
						</div>
					</div>
				</div>
			</div>
        </form>
      </div>
    </div>
  </div>
</div>
<link href="view/javascript/colorpicker/css/bootstrap-colorpicker.css" rel="stylesheet"/>
<script src="view/javascript/colorpicker/js/colorpicker-color.js"></script>
<script src="view/javascript/colorpicker/js/colorpicker.js"></script>
<script src="view/javascript/colorpicker/js/docs.js"></script>
<script>
	$(function(){
		$('.color').colorpicker();
	});
</script>
{{ footer }}