Treść
Ustawienia
languages)) : foreach ($this -> languages as $lg) : ?>
languages)) : foreach ($this -> languages as $lg) : ?>
= \Html::input( [ 'label' => 'Tytuł', 'name' => 'name[' . $lg['id'] . ']', 'id' => 'name_' . $lg['id'], 'value' => $this -> attribute['languages'][ $lg['id'] ]['name'], 'inline' => true, ] ); ?>
= \Html::input_switch( [ 'label' => 'Aktywny', 'name' => 'status', 'checked' => $this -> attribute['status'] || !$this -> attribute['id'] ? true : false, ] );?> = \Html::select( [ 'label' => 'Typ', 'name' => 'type', 'values' => [0 => 'tekst'],//, 1 => 'kolor', 2 => 'wzór'], 'value' => $this -> attribute['type'], ] );?> = \Html::input( [ 'label' => 'Kolejność', 'name' => 'o', 'id' => 'o', 'value' => $this -> attribute['o'], ] );?>
id = 'attribute-edit'; $grid -> gdb_opt = $gdb; $grid -> include_plugins = true; $grid -> title = 'Edycja cechy'; $grid -> fields = [ [ 'db' => 'id', 'type' => 'hidden', 'value' => $this -> attribute['id'], ], ]; $grid -> actions = [ 'save' => ['url' => '/admin/shop_attribute/attribute_save/', 'back_url' => '/admin/shop_attribute/view_list/'], 'cancel' => ['url' => '/admin/shop_attribute/view_list/'], ]; $grid -> external_code = $out; $grid -> persist_edit = true; $grid -> id_param = 'id'; echo $grid -> draw(); ?>