<?php Block::put('breadcrumb') ?>
    <ul>
        <li><a href="<?= Backend::url('netsti/system/contacts') ?>"><?= trans('netsti.system::lang.contacts.title') ?></a></li>
        <li><?= e($this->pageTitle) ?></li>
    </ul>
<?php Block::endPut() ?>

<style>
	.font-huge{ font-size: 26px; line-height: 1em; }
	.font-small{ line-height: 1em; padding: 0; margin: 0; }
</style>

<?php if (!$this->fatalError): ?>

	<div class="layout container">
		<div class="layout-row">
			<div data-control="toolbar">
				<a href="<?= Backend::url('netsti/system/contacts') ?>" class="btn btn-primary oc-icon-chevron-left">
					<?= trans('netsti.system::lang.back_close') ?>
				</a>

				<a href="<?= Backend::url('netsti/system/contacts/update/'.$this->vars['formModel']->id) ?>" class="btn btn-primary oc-icon-edit">
					<?= trans('netsti.system::lang.edit') ?>
				</a>
			</div>
			<hr>
			<div class="form-group span-left">
				<label><?= trans('netsti.system::lang.contacts.name') ?></label>
				<p class="font-huge"><?= $this->vars['formModel']->name ?></p>
				<p class="font-small text-muted"><em><?= $this->vars['formModel']->position ?></em></p>
			</div>

			<div class="form-group span-right">
				<label><?= trans('netsti.system::lang.contacts.company') ?></label>
				<p class="font-huge"><?= $this->vars['formModel']->company ?></p>
			</div>

			<div class="form-group span-left">
				<label><?= trans('netsti.system::lang.contacts.email') ?></label>
				<p class="font-huge"><?= $this->vars['formModel']->email ?></p>
			</div>

			<div class="form-group span-right">
				<label><?= trans('netsti.system::lang.contacts.phone') ?></label>
				<p class="font-huge"><?= $this->vars['formModel']->phone ?></p>
			</div>
		</div>
	</div>

<?php else: ?>

    <p class="flash-message static error"><?= e($this->fatalError) ?></p>
    <p><a href="<?= Backend::url('netsti/system/contacts') ?>" class="btn btn-default"><?= trans('netsti.system::lang.returnlist') ?></a></p>

<?php endif ?>