Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
skeeks
/
cms-module-form
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7dcac8ea
authored
Apr 21, 2015
by
semenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.2
parent
a579ee29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
models/FormValidateModel.php
+19
-0
widgets/ActiveForm.php
+8
-0
No files found.
models/FormValidateModel.php
View file @
7dcac8ea
...
...
@@ -237,4 +237,22 @@ class FormValidateModel extends Model
return
$result
;
}
/**
* @inheritdoc
*/
public
function
attributeLabelsValues
()
{
$result
=
[];
foreach
(
$this
->
modelForm
->
fields
()
as
$field
)
{
if
(
$this
->
getAttribute
(
$field
->
attribute
))
{
$result
[
$field
->
normalName
()]
=
$this
->
getAttribute
(
$field
->
attribute
);
}
}
return
$result
;
}
}
\ No newline at end of file
widgets/ActiveForm.php
View file @
7dcac8ea
...
...
@@ -83,6 +83,14 @@ class ActiveForm extends \skeeks\cms\base\widgets\ActiveForm
sx.notify.error(response.message);
}
if (data.redirect)
{
_.delay(function()
{
window.location.href = data.redirect;
}, 200);
}
})
.execute();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment