-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feature: user edit form * fix: user edit form fix * refactor: test var_dump in result array save * fix: now the select of schools correctly shows the schools that the user belongs to
- Loading branch information
1 parent
e14a482
commit 6606b8c
Showing
9 changed files
with
180 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$('#Users_password').attr('value', ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div id="mainPage" class="main"> | ||
<?php | ||
$this->setPageTitle('TAG - ' . Yii::t('default', 'Update User')); | ||
$title = Yii::t('default', 'Update User'); | ||
$contextDesc = Yii::t('default', 'Available actions that may be taken on User.'); | ||
$this->menu = array( | ||
array('label' => Yii::t('default', 'List User'), | ||
'url' => array('index'), | ||
'description' => Yii::t('default', 'This action list all User, you can search, delete and update')), | ||
); | ||
?> | ||
<?php | ||
echo $this->renderPartial('_form', array( | ||
'model' => $model, | ||
'title' => $title, | ||
'actual_role' => $actual_role | ||
)); | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<div id="mainPage" class="main"> | ||
<?php | ||
$this->setPageTitle('TAG - ' . Yii::t('default', 'Users')); | ||
|
||
$contextDesc = Yii::t('default', 'Available actions that may be taken on Classroom.'); | ||
$this->menu = array( | ||
array('label' => Yii::t('default', 'Users'), 'url' => array('create'), 'description' => Yii::t('default', 'This action create a new Classroom')), | ||
); | ||
?> | ||
|
||
<div class="innerLR"> | ||
<div class="columnone" style="padding-right: 1em"> | ||
<?php if (Yii::app()->user->hasFlash('success')): ?> | ||
<div class="alert alert-success"> | ||
<?php echo Yii::app()->user->getFlash('success') ?> | ||
</div> | ||
<br/> | ||
<?php endif ?> | ||
<div class="widget"> | ||
<div class="widget-body"> | ||
<?php | ||
$this->widget('zii.widgets.grid.CGridView', array( | ||
'dataProvider' => $filter->search(), | ||
'enablePagination' => true, | ||
'filter' => $filter, | ||
'itemsCssClass' => 'table table-condensed table-striped table-hover table-primary table-vertical-center checkboxs', | ||
'columns' => array( | ||
array( | ||
'name' => 'name', | ||
'type' => 'raw', | ||
'value' => 'CHtml::link($data->name,Yii::app()->createUrl("admin/update",array("id"=>$data->id)))', | ||
'htmlOptions' => array('width' => '400px') | ||
), | ||
array( | ||
'name' => 'username', | ||
'type' => 'raw', | ||
'value' => '$data->username', | ||
), | ||
array( | ||
'name' => 'active', | ||
'type' => 'raw', | ||
'value' => '$data->active ? Sim : Não' | ||
), | ||
array( | ||
'class' => 'CButtonColumn', | ||
'template' => '{update}', | ||
), | ||
), | ||
)); | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |