Wrap all admin views in g-block and g-block content. This provides the means to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.

This commit is contained in:
Chad Kieffer
2009-10-18 20:22:10 -06:00
parent 91ab6f161f
commit 5f56cbf997
20 changed files with 889 additions and 886 deletions

View File

@@ -1,32 +1,34 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-modules">
<div class="g-block ui-helper-clearfix">
<h1> <?= t("Gallery Modules") ?> </h1>
<p>
<?= t("Power up your Gallery by adding more modules! Each module provides new cool features.") ?>
</p>
<form method="post" action="<?= url::site("admin/modules/save") ?>">
<?= access::csrf_form_field() ?>
<table>
<tr>
<th> <?= t("Installed") ?> </th>
<th> <?= t("Name") ?> </th>
<th> <?= t("Version") ?> </th>
<th> <?= t("Description") ?> </th>
</tr>
<? $i = 0 ?>
<? foreach ($available as $module_name => $module_info): ?>
<tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
<? $data = array("name" => $module_name); ?>
<? if ($module_info->locked) $data["disabled"] = 1; ?>
<td> <?= form::checkbox($data, '1', module::is_active($module_name)) ?> </td>
<td> <?= t($module_info->name) ?> </td>
<td> <?= $module_info->version ?> </td>
<td> <?= t($module_info->description) ?> </td>
</tr>
<? $i++ ?>
<? endforeach ?>
</table>
<input type="submit" value="<?= t("Update")->for_html_attr() ?>"/>
</form>
<div class="g-block-content">
<form method="post" action="<?= url::site("admin/modules/save") ?>">
<?= access::csrf_form_field() ?>
<table>
<tr>
<th> <?= t("Installed") ?> </th>
<th> <?= t("Name") ?> </th>
<th> <?= t("Version") ?> </th>
<th> <?= t("Description") ?> </th>
</tr>
<? $i = 0 ?>
<? foreach ($available as $module_name => $module_info): ?>
<tr class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
<? $data = array("name" => $module_name); ?>
<? if ($module_info->locked) $data["disabled"] = 1; ?>
<td> <?= form::checkbox($data, '1', module::is_active($module_name)) ?> </td>
<td> <?= t($module_info->name) ?> </td>
<td> <?= $module_info->version ?> </td>
<td> <?= t($module_info->description) ?> </td>
</tr>
<? $i++ ?>
<? endforeach ?>
</table>
<input type="submit" value="<?= t("Update")->for_html_attr() ?>" />
</form>
</div>
</div>