1
0

HTML markup updates, removed CSS after recent updates, a few label headings edits.

This commit is contained in:
Chad Kieffer 2009-11-07 00:12:45 -07:00
parent b763c82ae5
commit 8ab32fe3d5

103
modules/register/views/admin_register.html.php Executable file → Normal file
View File

@ -1,19 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?> <?php defined("SYSPATH") or die("No direct script access.") ?>
<style>
#g-registration-admin li input[type=radio],
#g-registration-admin li input[type=checkbox] {
float: left;
margin-right: .5em;
}
#g-registration-admin li label {
float: left;
}
#g-registration-admin li h3 {
clear: both;
}
</style>
<script type="text/javascript"> <script type="text/javascript">
$("#g-active-pending-users").ready(function() { $("#g-active-pending-users").ready(function() {
$(":radio[name='policy']").click(function (event) { $(":radio[name='policy']").click(function (event) {
@ -25,15 +10,13 @@
}); });
}); });
</script> </script>
<div id="g-admin-register"> <div id="g-admin-register" class="g-block">
<div id="g-registration-admin"> <h1><?= t("User registration adminstration") ?></h1>
<h2><?= t("Registration adminstration") ?></h2> <div id="g-registration-admin" class="g-block-content">
<?= form::open($action, array("method" => "post"), $hidden) ?> <?= form::open($action, array("method" => "post"), $hidden) ?>
<?= form::open_fieldset() ?> <?= form::open_fieldset() ?>
<legend><?= t("Confirmation policy") ?></legend>
<ul> <ul>
<li>
<h3><?= t("Confirmation policy") ?></h3>
</li>
<? foreach ($policy_list as $policy => $text): ?> <? foreach ($policy_list as $policy => $text): ?>
<li> <li>
<?= form::radio("policy", $policy, $policy == $form["policy"]) ?> <?= form::radio("policy", $policy, $policy == $form["policy"]) ?>
@ -44,15 +27,13 @@
<?= form::checkbox("email_verification", "true", !empty($form["email_verification"]), $disable_email) ?> <?= form::checkbox("email_verification", "true", !empty($form["email_verification"]), $disable_email) ?>
<?= form::label("email_verification", t("Require e-mail verification when a visitor creates an account")) ?> <?= form::label("email_verification", t("Require e-mail verification when a visitor creates an account")) ?>
</li> </li>
<? if (!empty($group_list)): ?>
<li> <li>
<h3><?= t("Default group") ?></h3> <? if (!empty($group_list)): ?>
<label for="group" class="g-left"> <?= t("Default group: ") ?></label>
<?= form::dropdown(array("name" => "group"), $group_list, $form["group"]) ?></label>
<? endif ?>
</li> </li>
<li> <li>
<?= form::dropdown(array("name" => "group"), $group_list, $form["group"]) ?>
</li>
<? endif ?>
<li>
<?= form::submit(array("id" => "g-registration-admin", "name" => "save", "class" => "submit", "style" => "clear:both!important"), t("Update")) ?> <?= form::submit(array("id" => "g-registration-admin", "name" => "save", "class" => "submit", "style" => "clear:both!important"), t("Update")) ?>
</li> </li>
</ul> </ul>
@ -60,47 +41,37 @@
<?= form::close() ?> <?= form::close() ?>
</div> </div>
<? if (count($pending)): ?> <? if (count($pending)): ?>
<div id="g-activate-pending-users" style="margin-top: .5em"> <div id="g-activate-pending-users">
<?= form::open($activate, array("method" => "post"), $hidden) ?> <?= form::open($activate, array("method" => "post"), $hidden) ?>
<?= form::open_fieldset() ?> <?= form::open_fieldset() ?>
<ul> <legend><?= t("Pending registrations") ?></legend>
<li> <table>
<h3><?= t("Pending account activations") ?></h3> <tr>
</li> <th><?= t("Activate") ?></th>
<li> <th><?= t("State") ?></th>
<table> <th><?= t("User name") ?></th>
<thead> <th><?= t("Full name") ?></th>
<tr> <th><?= t("Email") ?></th>
<td><?= t("Activate") ?></td> <th><?= t("Registered") ?></th>
<td><?= t("State") ?></td> </tr>
<td><?= t("User name") ?></td> <? foreach ($pending as $user): ?>
<td><?= t("Full name") ?></td> <tr class="<?= text::alternate("g-odd", "g-even") ?>">
<td><?= t("Requested") ?></td> <td>
<td><?= t("Email") ?></td> <? if ($user->state != 2): ?>
</tr> <?= form::checkbox("activate[]", $user->id) ?>
</thead> <? else: ?>
<? foreach ($pending as $user): ?> &nbsp;
<tr> <? endif ?>
<td> </td>
<? if ($user->state != 2): ?> <td><?= register::format_registration_state($user->state) ?></td>
<?= form::checkbox("activate[]", $user->id) ?> <td><?= t($user->name) ?></td>
<? else: ?> <td><?= t($user->full_name) ?></td>
&nbsp; <td><a href="mailto:<?= t($user->email) ?>"><?= t($user->email) ?></a></td>
<? endif ?> <td><?= t(gallery::date_time($user->request_date)) ?></td>
</td> </tr>
<td><?= register::format_registration_state($user->state) ?></td> <? endforeach ?>
<td><?= t($user->name) ?></td> </table>
<td><?= t($user->full_name) ?></td> <?= form::submit(array("id" => "g-registration-activate", "name" => "activate_users", "class" => "submit"), t("Activate selected")) ?>
<td><?= t(gallery::date_time($user->request_date)) ?></td>
<td><?= t($user->email) ?></td>
</tr>
<? endforeach ?>
</table>
</li>
<li>
<?= form::submit(array("id" => "g-registration-activate", "name" => "activate_users", "class" => "submit", "style" => "clear:both!important"), t("Activate")) ?>
</li>
</ul>
<?= form::close_fieldset() ?> <?= form::close_fieldset() ?>
<?= form::close() ?> <?= form::close() ?>
</div> </div>