Skip to content

Commit be714e6

Browse files
author
Eugene Tupikov
committed
removal of depending on the widget yii2-button-widget
1 parent 46f9949 commit be714e6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

MultipleInput.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,10 @@ private function getRowTemplate()
206206
[
207207
'tagName' => 'div',
208208
'encodeLabel' => false,
209-
'label' => Html::tag('i', null, 'glyphicon glyphicon-{btn_action}'),
210-
'type' => '{btn_type}',
209+
'label' => Html::tag('i', null, ['class' => 'glyphicon glyphicon-{btn_action}']),
211210
'options' => [
212211
'id' => $this->getElementId('button'),
213-
'class' => "ps-button multiple-input-list__btn btn js-{$this->getId()}-input-{btn_action}",
212+
'class' => "{btn_type} multiple-input-list__btn btn js-{$this->getId()}-input-{btn_action}",
214213
]
215214
]
216215
);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unclead/yii2-multiple-input",
3-
"description": "Multiple input widget for Yii2",
3+
"description": "Widget for rendering multiple input for an attribute of Yii2 framework model",
44
"keywords": ["yii2", "yii2-multiple-input", "multiple input", "multiple field"],
55
"type": "yii2-extension",
66
"license": "MIT",

examples/views/example.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
use yii\bootstrap\ActiveForm;
4-
use unclead\widgets\Button;
54
use unclead\widgets\MultipleInput;
65
use unclead\widgets\examples\models\ExampleModel;
6+
use yii\helpers\Html;
77

88
/* @var $this \yii\base\View */
99
/* @var $model ExampleModel */
@@ -26,5 +26,5 @@
2626
// 'limit' => 4,
2727
// ]);
2828
?>
29-
<?= Button::update();?>
29+
<?= Html::submitButton('Update', ['class' => 'btn btn-success']);?>
3030
<?php ActiveForm::end();?>

0 commit comments

Comments
 (0)