예제 #1
0
<?php $this->breadcrumbs = array(
	'Rights'=>Rights::getBaseUrl(),
	Rights::getAuthItemTypeNamePlural($model->type)=>Rights::getAuthItemRoute($model->type),
	$model->name,
); ?>

<div id="updatedAuthItem">

	<h2><?php echo Rights::t('core', 'Update :name', array(
		':name'=>$model->name,
		':type'=>Rights::getAuthItemTypeName($model->type),
	)); ?></h2>

	<?php $this->renderPartial('_form', array('model'=>$formModel)); ?>

	<div class="relations span-11 last">

		<h3><?php echo Rights::t('core', 'Relations'); ?></h3>

		<?php if( $model->name!==Rights::module()->superuserName ): ?>

			<div class="parents">

				<h4><?php echo Rights::t('core', 'Parents'); ?></h4>

				<?php $this->widget('zii.widgets.grid.CGridView', array(
					'dataProvider'=>$parentDataProvider,
					'template'=>'{items}',
					'hideHeader'=>true,
					'emptyText'=>Rights::t('core', 'This item has no parents.'),
					'htmlOptions'=>array('class'=>'grid-view parent-table mini'),
예제 #2
0
파일: update.php 프로젝트: ZK413/yiimine
<?php

$this->breadcrumbs = array('Rights' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
$this->renderPartial('/_menu');
?>

<div id="updatedAuthItem">

    <h2><?php 
echo Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type)));
?>
</h2>

    <?php 
$this->renderPartial('_form', array('model' => $formModel));
?>

    <div class="relations span-11 last">

        <h3><?php 
echo Rights::t('core', 'Relations');
?>
</h3>

        <?php 
if ($model->name !== Rights::module()->superuserName) {
    ?>

            <div class="parents">

                <h4><?php 
예제 #3
0
<?php

$this->breadcrumbs = array('Home' => $this->createUrl('/admin'), 'Права доступа' => Rights::getBaseUrl(), Rights::getAuthItemTypeNamePlural($model->type) => Rights::getAuthItemRoute($model->type), $model->name);
$this->pageHeader = Rights::t('core', 'Update :name', array(':name' => $model->name, ':type' => Rights::getAuthItemTypeName($model->type)));
$this->sidebarContent = $this->renderPartial('/_menu', null, true);
?>

<div id="rights" class="">
<div id="updatedAuthItem">

	<?php 
$this->renderPartial('_form', array('model' => $formModel));
?>

	<div class="relations padding-all">

		<h3><?php 
echo Rights::t('core', 'Relations');
?>
</h3>

		<?php 
if ($model->name !== Rights::module()->superuserName) {
    ?>

	<div class="form wide">
		<div class="row">
			<label><?php 
    echo Rights::t('core', 'Parents');
    ?>
</label>