File: //home/artinside/fhs.artinside.com.br/themes/adminBackup/widgets/pages/company.php
<?php $this->layout("_admin"); ?>
<section class="wrapper">
<!-- page start-->
<div class="row">
<div class="col-12 text-center my-4 text-sm-center">
<h3>Edição de Página Empresa</h3>
<p><?= $page->title; ?> </p>
</div>
<div class="col-lg-9">
<section class="card">
<header class="card-header infinity-bg white-text text-center">
Edição de Página Empresa
</header>
<div class="card-body">
<form class="form-horizontal tasi-form" method="post" action="<?= url("/admin/pages/company/1"); ?>">
<input type="hidden" name="action" value="update"/>
<div class="form-group row" hidden>
<label class="col-sm-2 col-sm-2 control-label">Capa</label>
<div class="col-sm-10">
<input type="file" name="cover" placeholder="Uma imagem de capa" class="form-control" id="j_img_preview"/>
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Título</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="title" value="<?= $page->title; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Endereço</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="adress" value="<?= $page->adress; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
<label class="col-sm-2 col-sm-2 control-label">Número</label>
<div class="col-sm-2">
<input type="text" class="form-control" name="number" value="<?= $page->number; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Compl.</label>
<div class="col-sm-2">
<input type="text" class="form-control" name="complement" value="<?= $page->complement; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
<label class="col-sm-1 col-sm-2 control-label">Cidade</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="city" value="<?= $page->city; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
<label class="col-sm-1 col-sm-1 control-label">UF</label>
<div class="col-sm-1">
<input type="text" class="form-control" name="state" value="<?= $page->state; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Cep</label>
<div class="col-sm-4">
<input type="text" class="form-control mask-cep" name="zip_code" value="<?= $page->zip_code; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
<label class="col-sm-2 col-sm-2 control-label">Email</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="email" value="<?= $page->email; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Fone Principal</label>
<div class="col-sm-4">
<input type="text" class="form-control mask-phone" name="phone_1" value="<?= $page->phone_1; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
<label class="col-sm-2 col-sm-2 control-label">Fone Secundário</label>
<div class="col-sm-4">
<input type="text" class="form-control mask-celular" name="phone_2" value="<?= $page->phone_2; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">CNPJ</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="cnpj" value="<?= $page->cnpj; ?>">
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Conteúdo</label>
<div class="col-sm-10">
<textarea name="description" class="form-control mce"><?= $page->description; ?></textarea>
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Missão</label>
<div class="col-sm-10">
<textarea name="mission" class="form-control "><?= $page->mission; ?></textarea>
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Visão</label>
<div class="col-sm-10">
<textarea name="vision" class="form-control "><?= $page->vision; ?></textarea>
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-sm-2 control-label">Valores</label>
<div class="col-sm-10">
<textarea name="company_values" class="form-control "><?= $page->company_values; ?></textarea>
<!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<button class="btn btn-primary" type="submit">Salvar</button>
<a class="btn btn-danger" href="<?= url("/admin/dash"); ?>">Cancelar</a>
</form>
</div>
</section>
</div>
<div class="col-lg-3">
<section class="card">
<header class="card-header infinity-bg white-text text-center">
Imagem de capa
</header>
<img class="radius img-open" style="width: 100%;" src="<?= image($page->cover, 400); ?>" id="image-preview"/>
</section>
</div>
</div>
<!-- page end-->
</section>