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
af8e50b2
Commit
af8e50b2
authored
Mar 24, 2019
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3032 - Арт Проект. Обновление вертки РДБ
https://task-on.com/ehlektronnyj-uchet-zayavok
parent
9741cc5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
1 deletion
+65
-1
common/modules/content/models/CoContentLang.php
common/modules/content/models/CoContentLang.php
+2
-0
frontend/views/layouts/block/business-case-form.php
frontend/views/layouts/block/business-case-form.php
+1
-1
frontend/views/layouts/block/case-demo-form.php
frontend/views/layouts/block/case-demo-form.php
+62
-0
No files found.
common/modules/content/models/CoContentLang.php
View file @
af8e50b2
...
@@ -151,6 +151,8 @@ class CoContentLang extends \common\components\ActiveRecordModel
...
@@ -151,6 +151,8 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'business-cases'
);
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'business-cases'
);
$arrWhatReplaceNext
[]
=
'[business-case-form]'
;
$arrWhatReplaceNext
[]
=
'[business-case-form]'
;
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'business-case-form'
);
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'business-case-form'
);
$arrWhatReplaceNext
[]
=
'[case-demo-form]'
;
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'case-demo-form'
);
$arrWhatReplaceNext
[]
=
'[projects]'
;
$arrWhatReplaceNext
[]
=
'[projects]'
;
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'projects'
);
$arrReplaceNext
[]
=
CoBlocks
::
printStaticBlock
(
'projects'
);
$arrWhatReplaceNext
[]
=
'[case-subscribe]'
;
$arrWhatReplaceNext
[]
=
'[case-subscribe]'
;
...
...
frontend/views/layouts/block/business-case-form.php
View file @
af8e50b2
...
@@ -8,7 +8,7 @@ use yii\widgets\ActiveForm;
...
@@ -8,7 +8,7 @@ use yii\widgets\ActiveForm;
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12 col-sm-12"
>
<div
class=
"col-md-12 col-sm-12"
>
<div
class=
"calk_form"
>
<div
class=
"calk_form"
>
<span
class=
"calk_form__title"
>
Отправить запрос
на расчет стоимости
</span>
<span
class=
"calk_form__title"
>
Отправить запрос
</span>
<?php
<?php
...
...
frontend/views/layouts/block/case-demo-form.php
0 → 100644
View file @
af8e50b2
<?php
use
common\modules\bids\models\Bid
;
use
yii\helpers\Html
;
use
yii\widgets\ActiveForm
;
/**
* @var $this \yii\web\View
*/
?>
<div
class=
"popup"
id=
"demo_form"
>
<!-- 13.03.2019 -->
<div
class=
"txtbtnclose"
>
Закрыть
</div><span
class=
"popup__title"
>
Демо доступ
</span>
<?php
$model
=
new
Bid
;
$model
->
scenario
=
Bid
::
SCENARIO_CALLBACK
;
$model
->
form
=
Bid
::
FORM_CALLBACK
;
$form
=
ActiveForm
::
begin
([
'action'
=>
'/bids/bid/add'
,
'enableClientValidation'
=>
false
,
'options'
=>
[
'class'
=>
'valid_form bids-form'
,
'data-title'
=>
'Заказать звонок'
,
'data-form'
=>
'Заказать звонок'
,
'data-tag'
=>
Bid
::
TAG_TREATMENT
],
]);
?>
<div
class=
"message-box callback send_secce"
>
Ваша заявка отправлена, мы вам перезвоним.
</div>
<div
class=
"content"
>
<?php
echo
Html
::
hiddenInput
(
'scenario'
,
$model
->
scenario
,
[
'class'
=>
'not_clear'
]);
?>
<?php
echo
$form
->
field
(
$model
,
'form'
,
[
'template'
=>
'{input}'
])
->
hiddenInput
([
'class'
=>
'not_clear'
]);
?>
<?php
echo
$form
->
field
(
$model
,
'name'
,
[
'template'
=>
'<div class="row"><div class="col-sm-4">{input}</div></div>'
,
'errorOptions'
=>
[]
])
->
textInput
([
'placeholder'
=>
\Yii
::
t
(
'form'
,
'Your name'
),
'class'
=>
'input_st'
]);
?>
<?php
echo
$form
->
field
(
$model
,
'email'
,
[
'template'
=>
'<div class="row"><div class="col-sm-4">{input}</div></div>'
,
'errorOptions'
=>
[]
])
->
textInput
([
'placeholder'
=>
'E-mail'
,
'class'
=>
'input_st'
]);
?>
<?php
echo
$form
->
field
(
$model
,
'phone'
,
[
'template'
=>
'<div class="row"><div class="col-sm-4">{input}</div></div>'
,
'errorOptions'
=>
[]
])
->
textInput
([
'placeholder'
=>
\Yii
::
t
(
'form'
,
'Telephone'
)
.
'*'
,
'class'
=>
'input_st'
]);
?>
<?php
echo
Html
::
submitButton
(
'Демо доступ'
,
[
'class'
=>
'save-button popup_bt_send'
]);
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
\ No newline at end of file
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