{{ header }}
<style>
#content{
	position: static !important;
}
.w_content .alert{
	margin-top: 15px;
}
.breadcrumb{
	margin: 0px 0 8px 0 !important;
}
</style>
<link href="view/stylesheet/revirewpro/style.css" rel="stylesheet" />
{{ column_left }}
<div id="content">
<div class="container-fluid">
<div class="w_wrap">
	<div class="w_header">
		<div class="flscr_btn"><i class="fa fa-arrows-alt"></i></div>
		<h1>{{ text_reviewprocj }}</h1>
		<ul class="breadcrumb">
			{% for breadcrumb in breadcrumbs %}
			<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
			{% endfor %}
		</ul>
	</div>
	<div class="w_content">
		{% if success %}
		<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
		  <button type="button" class="close" data-dismiss="alert">&times;</button>
		</div>
		{% endif %}
		<form action="{{ action }}" method="post" enctype="multipart/form-cronjob" id="form-cronjob" class="form-horizontal">
		<div class="row">
			<div class="col-sm-9">
				<div class="form-group">
					<label class="col-sm-3 control-label" for="input-status">{{ entry_status }}</label>
					<div class="col-sm-9">
					  <select name="reviewprocj_crownjob[status]" id="input-status" class="form-control">
						{% if reviewprocj_crownjob['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-3 control-label">{{ text_crownjob }} Link</label>
					<div class="col-sm-9">
						<input readonly="readonly" type="text" name="reviewprocj_crownjob[link]"  class="form-control" value="{{ crownjob_link }}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">{{ entry_order_status }}</label>
					<div class="col-sm-9">
					  <div class="well well-sm" style="height: 100px; overflow: auto;">
						{% for order_status in order_statuss %}
						<div class="checkbox">
						  <label>
							<input type="checkbox" name="reviewprocj_orderstatus[]" {% if order_status['order_status_id'] in reviewprocj_orderstatus %}checked="checked"{% endif %} value="{{ order_status['order_status_id'] }}" />
						  {{ order_status['name'] }}
						  </label>
						</div>
						{% endfor %}
					  </div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span data-toggle="tooltip" title="{{ help_repeated }}">{{ entry_repeated }}</span></label>
					<div class="col-sm-6">
					<div class="btn-group" data-toggle="buttons">
						<label class="btn btn-primary btn-sm {% if reviewprocj_crownjob.repeated  == '1' %} active {% endif %}">
							<input type="radio" {% if reviewprocj_crownjob.repeated %} checked {% endif %} value="1" name="reviewprocj_crownjob[repeated]">{{text_yes}}
						</label>
						<label class="btn btn-primary btn-sm {% if not reviewprocj_crownjob.repeated %} active {% endif %}">
							<input type="radio" {% if not reviewprocj_crownjob.repeated %} checked {% endif %} value="0" name="reviewprocj_crownjob[repeated]">{{text_no}}
						</label>
					</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label" for="input-date-available">{{ entry_days }}</label>
					<div class="col-sm-9">
						<input type="text" name="reviewprocj_crownjob[date]" value="{{ reviewprocj_crownjob['date'] ? reviewprocj_crownjob['date'] }}" placeholder="{{ entry_days }}" class="form-control" />
					</div>
				  </div>
			</div>
			<div class="col-sm-3">
				<div class="well">
					<h3>Kısa Kodlar</h3>
					<p>
						İsim = {firstname}<br/>
						Soyisim = {lastname}<br/>
						Email = {email}<br/>
						Mağaza Adı = {store}<br/>
						Mağaza Logosu = {logo}<br/>
						Ürünler = {products}<br/>
					</p>
				</div>
			</div>
		</div>
          
		  <ul class="nav nav-tabs" id="language">
			{% for language in languages %}
			<li><a href="#language{{ language['language_id'] }}" data-toggle="tab"><img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /> {{ language['name'] }}</a></li>
			{% endfor %}
		</ul>
		<div class="tab-content">
		{% for language in languages %}
			<div class="tab-pane" id="language{{ language['language_id'] }}">
				<div class="form-group">
					<label class="col-sm-2 control-label" for="input-subject{{ language['language_id'] }}"><span data-toggle="tooltip" title="{{ entry_subject }}">{{ entry_subject }}</span></label>
					<div class="col-sm-10">
					  <input type="text" name="reviewprocj_crownjob[{{ language['language_id'] }}][subject]" value="{{ reviewprocj_crownjob[language['language_id']] ? reviewprocj_crownjob[language['language_id']]['subject'] }}" placeholder="{{ entry_subject }}" id="input-subject{{ language['language_id'] }}" class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label" for="input-message{{ language['language_id'] }}"><span data-toggle="tooltip" title="{{ entry_message }}">{{ entry_message }}</span></label>
					<div class="col-sm-10">
					  <textarea name="reviewprocj_crownjob[{{ language['language_id'] }}][message]" rows="5" placeholder="{{ entry_message }}" id="input-message{{ language['language_id'] }}" data-toggle="summernote" data-lang="{{ summernote }}" class="form-control summernote">{{ reviewprocj_crownjob[language['language_id']]['message'] ? reviewprocj_crownjob[language['language_id']]['message'] }}</textarea>
					</div>
				</div>
			</div>
			{% endfor %}
		</div>
		<div class="row">
			<div class="col-sm-7 col-sm-offset-2">
				<button type="submit" class="btn btn-success" form="form-cronjob">{{ entry_save }}</button>
			</div>
		</div>
	
        </form>
    </div>
	<div class="w_footer">
		&copy; Webx IT Solutions <br />Version: 1.0
	</div>
  </div>
</div>

<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
<link href="view/javascript/summernote/summernote.css" rel="stylesheet" />
<script type="text/javascript" src="view/javascript/summernote/summernote-image-attributes.js"></script> 
<script type="text/javascript" src="view/javascript/summernote/opencart.js"></script> 

<script type="text/javascript"><!--

$('.flscr_btn').on('click', function(){
	$('.w_wrap').toggleClass('fullscreen');
});

$('.close').on('click', function(){
	$('.close').parents('.alert').addClass('hide');
});

$('.date').datetimepicker({
	language: '{{ datepicker }}',
	pickTime: false
});
//--></script> 
<script type="text/javascript"><!--
$('#language a:first').tab('show');
//--></script>
</div>
{{ footer }}