{{ header }}{{ column_left }}
<div id="content">
	<div class="page-header">
		<div class="container-fluid">
			<div class="pull-right">
				<button type="submit" form="form-stripe" 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"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
			<button type="button" class="close" data-dismiss="alert">&times;</button>
		</div>
		{% endif %}
		{% if success %}
		<div class="alert alert-success"><i class="fa fa-check-circle"></i> {{ success }}
			<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>
			<div class="panel-body">
				<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-stripe" class="form-horizontal">
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_environment">
							<span data-toggle="tooltip" title="{{ entry_environment_help }}">{{ entry_environment }}</span>
						</label>
						<div class="col-sm-9">
							<select name="payment_stripe_environment" class="form-control">
								{% if payment_stripe_environment == 'test' %}
								<option value="test" selected="selected">{{ text_test }}</option>
								<option value="live">{{ text_live }}</option>
								{% else %}
								<option value="test">{{ text_test }}</option>
								<option value="live" selected="selected">{{ text_live }}</option>
								{% endif %}
							</select>
							<small class="text-info">{{ entry_environment_help }}</small>
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_test_public_key">
							<span data-toggle="tooltip" title="{{ entry_test_public_key_help }}">{{ entry_test_public_key }}</span>
						</label>
						<div class="col-sm-9">
							<input type="text" name="payment_stripe_test_public_key" id="payment_stripe_test_public_key" value="{{ payment_stripe_test_public_key }}"
							 class="form-control" />
							<small class="text-info">{{ entry_test_public_key_help }}</small>
							{% if error_test_public_key %}
							<div class="text-danger">{{ error_test_public_key }}</div>
							{% endif %}
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_test_secret_key">
							<span data-toggle="tooltip" title="{{ entry_test_secret_key_help }}">{{ entry_test_secret_key }}</span>
						</label>
						<div class="col-sm-9">
							<input type="text" name="payment_stripe_test_secret_key" id="payment_stripe_test_secret_key" value="{{ payment_stripe_test_secret_key }}"
							 class="form-control" />
							<small class="text-info">{{ entry_test_secret_key_help }}</small>
							{% if error_test_secret_key %}
							<div class="text-danger">{{ error_test_secret_key }}</div>
							{% endif %}
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_live_public_key">
							<span data-toggle="tooltip" title="{{ entry_live_public_key_help }}">{{ entry_live_public_key }}</span>
						</label>
						<div class="col-sm-9">
							<input type="text" name="payment_stripe_live_public_key" id="payment_stripe_live_public_key" value="{{ payment_stripe_live_public_key }}"
							 class="form-control" />
							 <small class="text-info">{{ entry_live_public_key_help }}</small>
							{% if error_live_public_key %}
							<div class="text-danger">{{ error_live_public_key }}</div>
							{% endif %}
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_live_secret_key">
							<span data-toggle="tooltip" title="{{ entry_live_secret_key_help }}">{{ entry_live_secret_key }}</span>
						</label>
						<div class="col-sm-9">
							<input type="text" name="payment_stripe_live_secret_key" id="payment_stripe_live_secret_key" value="{{ payment_stripe_live_secret_key }}"
							 class="form-control" />
							 <small class="text-info">{{ entry_live_secret_key_help }}</small>
							{% if error_live_secret_key %}
							<div class="text-danger">{{ error_live_secret_key }}</div>
							{% endif %}
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_order_success_status_id">
							<span data-toggle="tooltip" title="{{ entry_order_success_status_help }}">{{ entry_order_success_status }}</span>
						</label>
						<div class="col-sm-9">
							<select name="payment_stripe_order_success_status_id" id="payment_stripe_order_success_status_id" class="form-control">
								{% for order_status in order_statuses %}
								{% if order_status['order_status_id'] == payment_stripe_order_success_status_id %}
								<option value="{{ order_status['order_status_id'] }}" selected="selected">{{ order_status['name'] }}</option>
								{% else %}
								<option value="{{ order_status['order_status_id'] }}">{{ order_status['name'] }}</option>
								{% endif %}
								{% endfor %}
							</select>
							<small class="text-info">{{ entry_order_success_status_help }}</small>
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_order_failed_status_id">
							<span data-toggle="tooltip" title="{{ entry_order_failed_status_help }}">{{ entry_order_failed_status }}</span>
						</label>
						<div class="col-sm-9">
							<select name="payment_stripe_order_failed_status_id" id="payment_stripe_order_failed_status_id" class="form-control">
								{% for order_status in order_statuses %}
								{% if order_status['order_status_id'] == payment_stripe_order_failed_status_id %}
								<option value="{{ order_status['order_status_id'] }}" selected="selected">{{ order_status['name'] }}</option>
								{% else %}
								<option value="{{ order_status['order_status_id'] }}">{{ order_status['name'] }}</option>
								{% endif %}
								{% endfor %}
							</select>
							<small class="text-info">{{ entry_order_failed_status_help }}</small>
						</div>
					</div>
					<div class="form-group required">
						<label class="control-label col-sm-3" for="payment_stripe_status">
							<span data-toggle="tooltip" title="{{ entry_status_help }}">{{ entry_status }}</span>
						</label>
						<div class="col-sm-9">
							<select name="payment_stripe_status" class="form-control">
								{% if payment_stripe_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 required">
						<label class="control-label col-sm-3" for="payment_stripe_debug">
							<span data-toggle="tooltip" title="{{ entry_debug_help }}">{{ entry_debug }}</span>
						</label>
						<div class="col-sm-9">
							<select name="payment_stripe_debug" class="form-control">
								{% if payment_stripe_debug %}
								<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" for="payment_stripe_sort_order">{{ entry_sort_order }}</label>
						<div class="col-sm-9">
							<input type="text" name="payment_stripe_sort_order" value="{{ payment_stripe_sort_order }}" placeholder="{{ entry_sort_order }}"
							 id="payment_stripe_sort_order" class="form-control" />
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{{ footer }}