<?php use Door\Bootstrap\Helper\Icons; /* @var $app \Door\Core\Application */ $l = $app->lang; $h = $app->html; ?> <h1><?php echo $title; ?> <?php if (isset($return_uri) && $return_uri !== null) { echo $h->anchor($return_uri, Icons::glyphicon('backward') . " " . $l->get_ucf("back"), array('class' => 'btn btn-default')); } ?> </h1> <bv/><br/> <?php if (isset($errors)) { ?> <p class="bg-warning"><?php echo $l->get_ucf("bad_data"); ?> </p> <?php } if (isset($success)) { ?> <p class="bg-success"><?php echo $l->get_ucf("saved"); ?>
<th><?php if ($column instanceof \Door\BSPanel\Data\IColumn) { echo $l->get_ucf($column->name()); } else { echo $l->get_ucf($column); } ?> </th> <?php } ?> <th class="text-right"> <?php if ($create_button) { $uri_param = $filter_param == null ? "" : "?{$filter_param}={$filter_value}"; echo $h->anchor($uri . "/edit" . $uri_param, Icons::glyphicon('plus') . ' ' . $l->get_ucf($model->get_model_name() . ".create"), array('class' => 'btn btn-primary')); } ?> </th> </tr> </thead> <?php foreach ($items as $item) { ?> <tr data-id="<?php echo $item->pk(); ?> "> <?php if ($sortable) { ?>