<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use frontend\models\Attributesvalues;
use common\widgets\TinyMce;

/* @var $this yii\web\View */
/* @var $model frontend\models\Accounts */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="accounts-form">
	<?php $form = ActiveForm::begin(); ?>
		<div class="row">
			<div class="col-md-6">
				<?= $form->field($model, 'account_name')->textInput(['maxlength' => 50])->label() ?>

			</div>
			<div class="col-md-6">

			</div>
		</div>
		<div class="row">
			<div class="col-md-6">
				<?= $form->field($model, 'address1')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'address2')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'town')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'county')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'post_code')->textInput(['maxlength' => 50])->label()?>
			</div>
			<div class="col-md-6">
				<?= $form->field($model, 'telephone_no')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'fax_no')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'email')->textInput(['maxlength' => 50])->label()?>
				<?= $form->field($model, 'status')->dropDownList(Attributesvalues::formArray('sys_status'), ['prompt' => 'Please Select']) ->label()?>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<?= $form->field($model, 'notes')->widget(TinyMce::class, [])->Label() ?>
			
			</div>
		</div>
				
			
	<div class="form-group">
		<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
	</div>
	<?php ActiveForm::end(); ?>
</div>
