diff options
Diffstat (limited to 'apps/admin/modules/user/templates')
8 files changed, 72 insertions, 0 deletions
diff --git a/apps/admin/modules/user/templates/_domain_permissions.php b/apps/admin/modules/user/templates/_domain_permissions.php new file mode 100644 index 0000000..0d3e19d --- /dev/null +++ b/apps/admin/modules/user/templates/_domain_permissions.php @@ -0,0 +1,27 @@ +<?php use_helper('I18N','Javascript'); ?> +<?php if($user->getRoleId() == Role::SUPERADMIN): ?> +<?php echo "All Domains" ?> +<?php else: ?> +<?php $list = $user->getDomainPermissionsJoinDomain() ?> +<?php if(count($list) == 0): ?> +<?php echo "None" ?> +<?php else: ?> +<div class="slidelist"> +<?php if(count($list) > sfConfig::get('app_user_domain_perm_collapse_count')): ?> +<?php echo link_to_function(__("Multiple (%1% entries)", array('%1%' => count($list))), visual_effect( +'toggle_slide', 'domain_permissionlist_'.$user->getId())) ?> +<div id="domain_permissionlist_<?php echo $user->getId() ?>" style="display:none"> +<?php endif; ?> + +<ul> +<?php foreach($list as $permission): ?> +<li><?php echo ($permission->getDomain()) ?></li> +<?php endforeach; ?> +</ul> + +<?php if(count($list) > 1): ?> +</div> +<?php endif; ?> +</div> +<?php endif; ?> +<?php endif; ?> diff --git a/apps/admin/modules/user/templates/_last_login.php b/apps/admin/modules/user/templates/_last_login.php new file mode 100644 index 0000000..f15439a --- /dev/null +++ b/apps/admin/modules/user/templates/_last_login.php @@ -0,0 +1 @@ +<?php echo ($user->getLastLogin() ? $user->getLastLogin(): "Never") ?> diff --git a/apps/admin/modules/user/templates/_password.php b/apps/admin/modules/user/templates/_password.php new file mode 100644 index 0000000..e32e4ab --- /dev/null +++ b/apps/admin/modules/user/templates/_password.php @@ -0,0 +1,3 @@ +<?php $value = input_password_tag("user[password]", '', array ( + 'size' => 50, +)); echo $value ? $value : ' ' ?> diff --git a/apps/admin/modules/user/templates/_password1.php b/apps/admin/modules/user/templates/_password1.php new file mode 100644 index 0000000..e32e4ab --- /dev/null +++ b/apps/admin/modules/user/templates/_password1.php @@ -0,0 +1,3 @@ +<?php $value = input_password_tag("user[password]", '', array ( + 'size' => 50, +)); echo $value ? $value : ' ' ?> diff --git a/apps/admin/modules/user/templates/_password2.php b/apps/admin/modules/user/templates/_password2.php new file mode 100644 index 0000000..eab912d --- /dev/null +++ b/apps/admin/modules/user/templates/_password2.php @@ -0,0 +1,3 @@ +<?php $value = input_password_tag("user[password2]", '', array ( + 'size' => 50, +)); echo $value ? $value : ' ' ?> diff --git a/apps/admin/modules/user/templates/_role_id.php b/apps/admin/modules/user/templates/_role_id.php new file mode 100644 index 0000000..bfaf818 --- /dev/null +++ b/apps/admin/modules/user/templates/_role_id.php @@ -0,0 +1 @@ +<?php echo $user->getRole() ?> diff --git a/apps/admin/modules/user/templates/loginSuccess.php b/apps/admin/modules/user/templates/loginSuccess.php new file mode 100644 index 0000000..f41a809 --- /dev/null +++ b/apps/admin/modules/user/templates/loginSuccess.php @@ -0,0 +1,12 @@ + <div id="context"> + <?php echo use_helper("I18N","Asset", "Form", "Validation") ?> + <?php echo form_tag("user/login")?> + <h1><?php echo __("Please authenticate yourself") ?>:</h1> + <hr size="1" /> + <label for="nickname">Username: </label><?php echo input_tag("nickname", $sf_params->get("nickname"), "size=50") ?><?php echo form_error('nickname') ?><br /> + <label for="password">Password: </label><?php echo input_password_tag("password", "", "size=50") ?><?php echo form_error('password') ?><br /> + <?php echo input_hidden_tag("referer", $sf_request->getAttribute('referer')) ?> + <div class="formaction"><?php echo submit_tag("Login") ?></div> + + </form> + </div> diff --git a/apps/admin/modules/user/templates/settingsSuccess.php b/apps/admin/modules/user/templates/settingsSuccess.php new file mode 100644 index 0000000..f1c49d7 --- /dev/null +++ b/apps/admin/modules/user/templates/settingsSuccess.php @@ -0,0 +1,22 @@ + <div id="context"> + <?php echo use_helper("Asset", "Form", "Object", "Validation") ?> + <?php echo form_tag("user/settings")?> + <h1>Update Settings:</h1> + + <hr size="1" /> + + <h2>General Settings:</h2> + + <label for="nickname">Username: </label><?php echo object_input_tag($user, "getNickname","size=50") ?><br /><?php echo form_error('nickname') ?> + <label for="first_name">First Name: </label><?php echo object_input_tag($user, "getFirstName","size=50") ?><br /><?php echo form_error('first_name') ?> + <label for="last_name">Last Name: </label><?php echo object_input_tag($user, "getLastName", "size=50") ?><br /><?php echo form_error('last_name') ?> + <label for="email">E-Mail: </label><?php echo object_input_tag($user, "getEmail", "size=50") ?><div class="sf_admin_edit_help">Used to retrieve your password or to send critical notifications</div><br /><?php echo form_error('email') ?><br /> + + <h2>Change Password:</h2> + <label for="password1">New Password: </label><?php echo input_password_tag("password1", "", "size=50") ?><br /> + <label for="password2">Re-Type New Password: </label><?php echo input_password_tag("password2", "", "size=50") ?><br /><?php echo form_error('password2') ?> + <?php echo input_hidden_tag("referer", $sf_request->getAttribute('referer')) ?> + + <div class="formaction"><?php echo submit_tag("Update") ?><?php echo submit_tag("Cancel") ?></div> + </form> + </div> |