diff --git a/views/shop/_form.php b/views/shop/_form.php index b465219..9e59d9b 100644 --- a/views/shop/_form.php +++ b/views/shop/_form.php @@ -32,85 +32,9 @@ 'form' => $form, ] ) ?> - $day): ?> - - - modeStr[ $key ][ 'from' ]) ) ? $model->modeStr[ $key ][ 'from' ] : '09:00', - [ - 'size' => 10, - 'type' => 'time', - - ] - ) ?> - - - modeStr[ $key ][ 'to' ]) ) ? $model->modeStr[ $key ][ 'to' ] : '18:00', - [ - 'size' => 10, - 'type' => 'time', - ] - ) ?> - - modeStr[ $key ][ 'off' ]) ) ? true : false) ?> - - - modeStr[ 'data' ])): ?> - - modeStr[ 'data' ] as $key => $data): ?> - - - 10, - 'type' => 'data', - ] - ) ?> - - 10, - 'type' => 'time', - - ] - ) ?> - - - 10, - 'type' => 'time', - ] - ) ?> - - - - - - 'fa fa-plus', - ] - ) . ' Добавить дату', - [ - 'id' => 'add-data', - 'class' => 'btn btn-success', - 'data-count' => ( isset($model->modeStr[ 'data' ]) ) ? count($model->modeStr[ 'data' ]) : 0, - ] - ) ?> + field($model, 'mode') + ->textarea() ?>