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
8da6749b
authored
Sep 26, 2015
by
semenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Обновлено управление формой
parent
01670aa3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
CHANGELOG.md
+4
-0
VERSION
+2
-2
cmsWidgets/form2/_form.php
+14
-2
No files found.
CHANGELOG.md
View file @
8da6749b
Процесс разработки модуля.
==============
2.
0.4
-----------------
*
Обновлено управление формой
2.
0.3
-----------------
*
Изменения по административной части
...
...
VERSION
View file @
8da6749b
2.0.3
\ No newline at end of file
2.0.4
\ No newline at end of file
cmsWidgets/form2/_form.php
View file @
8da6749b
...
...
@@ -11,11 +11,23 @@ use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?=
$form
->
fieldSet
(
'Настройки'
);
?>
<?=
$form
->
fieldSelect
(
$model
,
'form_id'
,
\yii\helpers\ArrayHelper
::
map
(
<?
/*
= $form->fieldSelect($model, 'form_id', \yii\helpers\ArrayHelper::map(
\skeeks\modules\cms\form2\models\Form2Form::find()->all(),
'id',
'name'
));
?>
)); */
?>
<?=
$form
->
field
(
$model
,
'form_id'
)
->
widget
(
\skeeks\cms\widgets\formInputs\EditedSelect
::
className
(),
[
'controllerRoute'
=>
'/form2/admin-form'
,
'items'
=>
\yii\helpers\ArrayHelper
::
map
(
\skeeks\modules\cms\form2\models\Form2Form
::
find
()
->
all
(),
'id'
,
'name'
),
]
);
?>
<?=
$form
->
field
(
$model
,
'btnSubmit'
)
->
textInput
();
?>
<?=
$form
->
field
(
$model
,
'btnSubmitClass'
)
->
textInput
();
?>
...
...
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