mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-15 11:42:10 -05:00
30 lines
622 B
PHP
30 lines
622 B
PHP
<?php namespace Visiosoft\ProfileModule\Profile\User;
|
|
|
|
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
|
|
use Anomaly\UsersModule\User\UserModel;
|
|
|
|
class UserFormBuilder extends FormBuilder
|
|
{
|
|
|
|
protected $model = UserModel::class;
|
|
|
|
protected $fields = [
|
|
'file',
|
|
'first_name' => [
|
|
'required' => true,
|
|
],
|
|
'last_name' => [
|
|
'required' => true,
|
|
],
|
|
'email' => [
|
|
'required' => true,
|
|
],
|
|
];
|
|
|
|
protected $actions = [
|
|
'update' => [
|
|
'text' => 'visiosoft.module.profile::button.update_profile'
|
|
],
|
|
];
|
|
}
|