first commit
This commit is contained in:
17
apps/backend/modules/sfGuardUser/templates/_edit_actions.php
Normal file
17
apps/backend/modules/sfGuardUser/templates/_edit_actions.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2009/09/10 15:21:05
|
||||
?>
|
||||
<?php echo st_get_admin_actions_head('style="margin-top: 10px; float: right"') ?>
|
||||
<?php echo st_get_admin_action('list', __('Lista', array(), 'stAdminGeneratorPlugin'), 'sfGuardUser/list', array (
|
||||
)) ?>
|
||||
|
||||
<?php if($sf_guard_user->getId() == $sf_user->getGuardUser()->getId() || $sf_user->getGuardUser()->getIsSuperAdmin()): ?>
|
||||
|
||||
<?php echo st_get_admin_action('save', __('Zapisz', array(), 'stAdminGeneratorPlugin'), null, array (
|
||||
'name' => 'save',
|
||||
)) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo st_get_admin_actions_foot() ?>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php if(!$sf_user->getGuardUser()->getIsSuperAdmin() || $sf_user->getGuardUser()->getId() == $sf_guard_user->getId()): ?>
|
||||
<?php echo st_admin_checkbox_tag('sf_guard_user[is_active]', true, $sf_guard_user->getIsActive(), array('disabled' => true)); ?>
|
||||
<?php echo input_hidden_tag('sf_guard_user[is_active]', $sf_guard_user->getIsActive()) ?>
|
||||
<?php else: ?>
|
||||
<?php echo st_admin_checkbox_tag('sf_guard_user[is_active]', true, $sf_guard_user->getIsActive()); ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php if(!$sf_user->getGuardUser()->getIsSuperAdmin() || $sf_user->getGuardUser()->getId() == $sf_guard_user->getId()): ?>
|
||||
<?php echo st_admin_checkbox_tag('sf_guard_user[is_super_admin]', true, $sf_guard_user->getIsSuperAdmin(), array('disabled' => true)); ?>
|
||||
<?php echo input_hidden_tag('sf_guard_user[is_super_admin]', $sf_guard_user->getIsSuperAdmin()) ?>
|
||||
<?php else: ?>
|
||||
<?php echo st_admin_checkbox_tag('sf_guard_user[is_super_admin]', true, $sf_guard_user->getIsSuperAdmin()); ?>
|
||||
<?php endif; ?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(function($) {
|
||||
$('#sf_guard_user_is_super_admin').change(function() {
|
||||
$('#group, #permission, #module_permission').attr('disabled', this.checked).trigger("chosen:updated");
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2009/09/10 15:21:05
|
||||
?>
|
||||
<?php if($sf_user->getGuardUser()->getIsSuperAdmin()): ?>
|
||||
<?php echo st_get_admin_actions_head('style="margin-top: 10px; float: right"') ?>
|
||||
<?php echo st_get_admin_action('create', __('Dodaj'), 'sfGuardUser/create', array (
|
||||
)) ?> <?php echo st_get_admin_actions_foot() ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2009/09/10 15:21:05
|
||||
?>
|
||||
<td>
|
||||
<ul class="st_object_actions">
|
||||
<li><?php echo link_to(image_tag('backend/icons/edit.gif', array('alt' => __('edit'), 'title' => __('edit'))), 'sfGuardUser/edit?id='.$sf_guard_user->getId()) ?></li>
|
||||
</ul>
|
||||
</td>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2009/09/10 15:21:05
|
||||
?>
|
||||
<td>
|
||||
|
||||
<div id="st_object_actions_td_frame">
|
||||
<ul class="st_object_actions">
|
||||
|
||||
|
||||
|
||||
<?php if($sf_user->getGuardUser()->getIsSuperAdmin()): ?>
|
||||
|
||||
<?php if($sf_guard_user->getId() != $sf_user->getGuardUser()->getId()): ?>
|
||||
|
||||
<?php if (method_exists($sf_guard_user, 'getIsSystemDefault') == false || (method_exists($sf_guard_user, 'getIsSystemDefault') && !$sf_guard_user->getIsSystemDefault())): ?>
|
||||
|
||||
<li><?php echo link_to(image_tag('backend/icons/delete.gif', array('alt' => __('delete'), 'title' => __('delete'))), 'sfGuardUser/delete?id='.$sf_guard_user->getId(), array (
|
||||
'post' => true,
|
||||
'confirm' => __('Jesteś pewien?', array(), 'stAdminGeneratorPlugin'),
|
||||
)) ?></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
1
apps/backend/modules/sfGuardUser/templates/_password.php
Normal file
1
apps/backend/modules/sfGuardUser/templates/_password.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo input_password_tag('sf_guard_user[password]', '', array('control_name' => 'sf_guard_user[password]', 'autocomplete' => 'off')) ?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo input_password_tag('sf_guard_user[password_bis]', '', array('control_name' => 'sf_guard_user[password_bis]', 'autocomplete' => 'off')) ?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo checkbox_tag('webapi_read',1,$sf_guard_user->hasPermission("webapi_read"));?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo checkbox_tag('webapi_write',1,$sf_guard_user->hasPermission("webapi_write"));?>
|
||||
Reference in New Issue
Block a user