<?php require view('theme/header'); ?>
<div class="container">
	<?php if($user["user_balance"] < 1): ?>
		<div class="col-md-12">
			<div class="alert alert-dismissible alert-danger">
				<b>Uyarı!</b>
				<p style="margin:0">Sevgili müşterimiz, bakiyeniz azalmış gibi gözüküyor, sorunsuz sipariş verebilmek için lütfen bakiye yüklemeyi unutmayınız.</p>
			</div>
		</div>
	<?php endif; ?>
	<div class="col-md-8 col-md-offset-2">
		<div class="well">
			<form id="auto_order" onsubmit="return false;">
				<div class="form-loader">
					<span class="intro-banner-vdo-play-btn pinkBg">
						<span class="ripple pinkBg"></span>
						<span class="ripple pinkBg"></span>
						<span class="ripple pinkBg"></span>
					</span>
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_CATEGORY_TITLE}:</label>
					<select id="category" class="form-control">
						{AUTO_FORM_CATEGORIES}
					</select>
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_SERVICE_TITLE}:</label>
					<select id="service" name="service" class="form-control">
					</select>
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_DESC_TITLE}:</label>
					<div class="panel panel-default">
						<div class="panel-body">
							<small id="description" class="card-text"></small>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_LINK_TITLE}:</label>
					<input type="text" name="link" id="link" class="form-control" />
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_QUANTITY_TITLE}: <small class="help-block min-max" >(Min: <span id="min"></span> - Maks: <span id="max"></span>)</small></label>
					<input type="text" name="quantity" id="quantity" class="form-control" />
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_EXPIRATION}:</label>
					<input type="text" name="expiration" class="form-control datepicker" autocomplete="off" />
				</div>
				<div class="form-group">
					<label>{AUTO_FORM_POST_LIMIT}:</label>
					<input type="number" name="limit" id="limit" min="1" class="form-control" />
				</div>
				<div class="form-group">
					<button class="btn btn-primary">{AUTO_FORM_SUBMIT}</button>
				</div>
			</form>
		</div>	
	</div>
</div>

<?php require view('theme/footer'); ?>