add reception global word listener,allow delete transactions, allow delete account_state
This commit is contained in:
@@ -8,11 +8,13 @@ use yii\widgets\DetailView;
|
||||
use yii\grid\GridView;
|
||||
use yii\base\Object;
|
||||
use yii\data\ArrayDataProvider;
|
||||
use yii\helpers\Url;
|
||||
|
||||
class AccountStateBanknoteCountWidget extends Widget{
|
||||
|
||||
public $model;
|
||||
public $layout;
|
||||
public $index;
|
||||
|
||||
public function run(){
|
||||
|
||||
@@ -77,6 +79,21 @@ class AccountStateBanknoteCountWidget extends Widget{
|
||||
}
|
||||
|
||||
$s .= $this->generateComment();
|
||||
|
||||
$s .= Html::beginTag("div", ['class' => 'row', 'style' => 'margin-top: 6px;']);
|
||||
$s .= Html::beginTag("div", ['class' => 'col-md-12 text-right']);
|
||||
|
||||
$s .= Html::a('<span class="glyphicon glyphicon-trash"></span>Törlés', Url::toRoute(['delete','id' =>$this->model->id_account_state]), [
|
||||
'title' => \Yii::t('yii', 'Delete'),
|
||||
'data-confirm' =>\Yii::t('yii', 'Are you sure to delete this item?'),
|
||||
'data-method' => 'post',
|
||||
'class' => 'btn btn-danger',
|
||||
'style' =>'margin-bottom: 12px;'
|
||||
]);
|
||||
|
||||
$s .= Html::endTag("div");//end col
|
||||
$s .= Html::endTag("div");//end row
|
||||
|
||||
$s .= Html::endTag("div");
|
||||
$s .= Html::endTag("div");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user