<div id="scaffold">
<?php View::content()?>
<?php if ($data) : ?>
	<h1><?= ucwords("$model"),": <span>$action_name</span>" ?></h1>
	<ul>
	<?php foreach ($data->fields as $field) : ?>
		<li><strong><?= $data->alias[$field]?> :</strong>  <?= h($data->$field) ?></li>
	<?php endforeach ?>
	</ul>

	<div class="actions">
		<a href="../" class="btn btn-default">Listado</a>
		<a href="../crear/" class="btn btn-primary">Crear registro</a>
		<a href="../editar/<?= $data->id?>" class="btn btn-warning">Editar</a>
		<a class="del btn btn-danger" title="¿Seguro que quiere borrar?" href="../borrar/<?= $data->id?>" onclick="return confirm('¿Está seguro?');">Borrar</a>
	</div>
<?php else : ?>
	<?php header("HTTP/1.0 404 Not Found")?>
	<h1>No existe</h1>
	<div class="actions">
		<a href="../">Listado</a>
		<a href="../crear/">Crear registro</a>
	</div>
<?php endif ?>
</div>
