<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

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

<div class="locations-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'company_name')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'zipcode')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'phone')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'website')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'preference')->textInput() ?>

    <?= $form->field($model, 'lat')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'lang')->textInput(['maxlength' => 256]) ?>

    <?= $form->field($model, 'created_at')->textInput() ?>

    <?= $form->field($model, 'updated_at')->textInput() ?>
   

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
