|
@@ -4,11 +4,11 @@ use oxusmedia\webApp\webApp;
|
|
|
use oxusmedia\webApp\controller;
|
|
|
use oxusmedia\webApp\grid;
|
|
|
use oxusmedia\webApp\form;
|
|
|
-use oxusmedia\webApp\webApp_column;
|
|
|
-use oxusmedia\webApp\webApp_input;
|
|
|
-use oxusmedia\webApp\webApp_hidden;
|
|
|
-use oxusmedia\webApp\webApp_password;
|
|
|
-use oxusmedia\webApp\webApp_select;
|
|
|
+use oxusmedia\webApp\column;
|
|
|
+use oxusmedia\webApp\input;
|
|
|
+use oxusmedia\webApp\hidden;
|
|
|
+use oxusmedia\webApp\password;
|
|
|
+use oxusmedia\webApp\select;
|
|
|
use oxusmedia\webApp\gridActionButton;
|
|
|
use oxusmedia\webApp\notificacion;
|
|
|
|
|
@@ -95,35 +95,35 @@ class usuario extends controller
|
|
|
|
|
|
$form = new form('usuario', array(
|
|
|
|
|
|
- new webApp_column(array(
|
|
|
+ new column(array(
|
|
|
|
|
|
- new webApp_input('usuario', array(
|
|
|
+ new input('usuario', array(
|
|
|
'rules' => array(
|
|
|
'required' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_input('email', array(
|
|
|
+ new input('email', array(
|
|
|
'rules' => array(
|
|
|
'required' => true,
|
|
|
'email' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_password('pass', array(
|
|
|
+ new password('pass', array(
|
|
|
'label' => 'Contraseña',
|
|
|
'rules' => array(
|
|
|
'required' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_input('nombre', array(
|
|
|
+ new input('nombre', array(
|
|
|
'rules' => array(
|
|
|
'required' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_select('role', $this->getRoleDescription())
|
|
|
+ new select('role', $this->getRoleDescription())
|
|
|
|
|
|
))
|
|
|
|
|
@@ -171,31 +171,31 @@ class usuario extends controller
|
|
|
|
|
|
$form = new form('usuario', array(
|
|
|
|
|
|
- new webApp_column(array(
|
|
|
+ new column(array(
|
|
|
|
|
|
- new webApp_hidden('id'),
|
|
|
+ new hidden('id'),
|
|
|
|
|
|
- new webApp_input('email', array(
|
|
|
+ new input('email', array(
|
|
|
'rules' => array(
|
|
|
'required' => true,
|
|
|
'email' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_password('pass', array(
|
|
|
+ new password('pass', array(
|
|
|
'label' => 'Contraseña',
|
|
|
'htmlOptions' => array(
|
|
|
'placeholder' => 'dejar vacío para no cambiar la contraseña'
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_input('nombre', array(
|
|
|
+ new input('nombre', array(
|
|
|
'rules' => array(
|
|
|
'required' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_select('role', $this->getRoleDescription(), $usuario->usuario == 'admin' ? array('htmlOptions' => array('disabled' => 'disabled')) : null)
|
|
|
+ new select('role', $this->getRoleDescription(), $usuario->usuario == 'admin' ? array('htmlOptions' => array('disabled' => 'disabled')) : null)
|
|
|
|
|
|
))
|
|
|
|
|
@@ -294,23 +294,23 @@ class usuario extends controller
|
|
|
|
|
|
$form = new form('usuario', array(
|
|
|
|
|
|
- new webApp_column(array(
|
|
|
+ new column(array(
|
|
|
|
|
|
- new webApp_input('email', array(
|
|
|
+ new input('email', array(
|
|
|
'rules' => array(
|
|
|
'required' => true,
|
|
|
'email' => true
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_password('pass', array(
|
|
|
+ new password('pass', array(
|
|
|
'label' => 'Contraseña',
|
|
|
'htmlOptions' => array(
|
|
|
'placeholder' => 'dejar vacío para no cambiar la contraseña'
|
|
|
)
|
|
|
)),
|
|
|
|
|
|
- new webApp_input('nombre', array(
|
|
|
+ new input('nombre', array(
|
|
|
'rules' => array(
|
|
|
'required' => true
|
|
|
)
|
|
@@ -339,7 +339,7 @@ class usuario extends controller
|
|
|
)
|
|
|
);
|
|
|
|
|
|
- webApp::notify('Sus datos se actualizaron correctamente', notificacion::SUCCESS);
|
|
|
+ $this->notify('Sus datos se actualizaron correctamente', notificacion::SUCCESS);
|
|
|
|
|
|
}
|
|
|
|