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
9aa4c8eb
authored
Mar 16, 2015
by
semenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new module
parent
5f45078a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
38 deletions
+28
-38
controllers/BackendController.php
+21
-0
models/Form.php
+6
-0
models/forms/EmailForm.php
+0
-38
views/admin-form/_form.php
+1
-0
No files found.
controllers/BackendController.php
0 → 100644
View file @
9aa4c8eb
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 15.03.2015
*/
namespace
skeeks\modules\cms\form\controllers
;
use
skeeks\cms\base\Controller
;
/**
* Class BackendController
* @package skeeks\modules\cms\form\controllers
*/
class
BackendController
extends
Controller
{
public
function
actionSubmit
()
{
}
}
\ No newline at end of file
models/Form.php
View file @
9aa4c8eb
...
...
@@ -122,4 +122,9 @@ class Form extends Core
public
function
render
()
{
}
}
\ No newline at end of file
models/forms/EmailForm.php
deleted
100644 → 0
View file @
5f45078a
<?php
/**
* LoginForm
*
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010-2014 SkeekS (Sx)
* @date 28.10.2014
* @since 1.0.0
*/
namespace
skeeks\modules\cms\form\models\forms
;
use
Yii
;
use
yii\base\Model
;
/**
* Login form
*/
class
EmailForm
extends
Model
{
public
$value
;
/**
* @inheritdoc
*/
public
function
rules
()
{
return
[
// username and password are both required
[[
'value'
],
'required'
],
// rememberMe must be a boolean value
[
'value'
,
'email'
],
];
}
}
views/admin-form/_form.php
View file @
9aa4c8eb
...
...
@@ -64,6 +64,7 @@ use common\models\User;
],
'controllerRoute'
=>
'form/admin-form-field'
,
'gridViewOptions'
=>
[
'sortable'
=>
true
,
'columns'
=>
[
//['class' => 'yii\grid\SerialColumn'],
'attribute'
,
...
...
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