Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
dfa2e989
Commit
dfa2e989
authored
Jan 25, 2017
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Проверяем BaseForm
parent
f25faf00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
common/components/BaseForm.php
common/components/BaseForm.php
+0
-2
common/modules/school/views/course/index.php
common/modules/school/views/course/index.php
+8
-4
No files found.
common/components/BaseForm.php
View file @
dfa2e989
...
...
@@ -103,9 +103,7 @@ class BaseForm extends \yii\widgets\ActiveForm
case
'text'
:
$field
=
$this
->
field
(
$this
->
model
,
$key
,
$optEl
)
->
textInput
(
$opt
);
if
(
array_key_exists
(
'options'
,
$element
)
&&
array_key_exists
(
'label'
,
$element
[
'options'
]))
{
$field
->
label
(
$element
[
'options'
][
'label'
]);
}
$config
[
'options'
][]
=
$field
;
break
;
case
'email'
:
...
...
common/modules/school/views/course/index.php
View file @
dfa2e989
...
...
@@ -6,6 +6,7 @@ use common\modules\school\assets\WidgetAssetBundle;
use
yii\web\View
;
use
common\modules\users\widgets\RegistrationWidget
;
use
common\modules\users\widgets\LoginWidget
;
use
yii\widgets\ActiveForm
;
WidgetAssetBundle
::
register
(
$this
);
...
...
@@ -104,11 +105,14 @@ WidgetAssetBundle::register($this);
<div
class=
"row"
style=
"padding-bottom: 30px;"
>
<div
class=
"col-md-4 col-xs-6 col-sm-12"
>
<?php
echo
$form
;
?>
<?php
//echo $formLogin;
$f
=
ActiveForm
::
begin
([
'id'
=>
'sh_reg_form'
,
'options'
=>
[
'enctype'
=>
'multipart/form-data'
]]);
echo
$f
->
field
(
$form
,
'name'
)
->
textInput
([
'placeholder'
=>
"Ваше имя*"
,
'class'
=>
'input_st field-input required alphanumeric'
])
->
label
(
false
);
ActiveForm
::
end
();
?>
<?php
//echo $form; ?>
<?
php
//echo $formLogin; ?>
<?
php
//echo \common\modules\eauth\widgets\SocialWidget::widget(['action' => '/site/login']); ?>
</
div
>
<
div
class
=
"col-md-8 col-xs-6 col-sm-12"
>
...
...
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