global $db; ob_start(); ?> = \Html::input( [ 'label' => 'Nazwa', 'name' => 'name', 'id' => 'name', 'value' => $this -> task[ 'name' ], 'class' => 'require', 'inline' => true ] ); ?> = \Html::textarea( [ 'label' => 'Treść', 'name' => 'text', 'id' => 'text', 'value' => $this -> task[ 'text' ], 'rows' => 10, 'skip_encoding' => true ] ); ?> = \Html::input( [ 'label' => 'Data rozpoczęcia', 'name' => 'date_start', 'id' => 'date_start', 'value' => $this -> task[ 'date_start' ], 'class' => 'datetime', 'inline' => true, 'autocomplete' => 'off' ] ); ?> = \Html::input( [ 'label' => 'Data zakończenia', 'name' => 'date_end', 'id' => 'date_end', 'value' => $this -> task[ 'date_end' ], 'class' => 'datetime', 'inline' => true, 'autocomplete' => 'off' ] ); ?> $projects[ 0 ] = '--- wybierz projekt ---'; if ( is_array( $this -> projects ) ) foreach ( $this -> projects as $project ) $projects[ $project[ 'id' ] ] = $project[ 'name' ]; ?> = \Html::select( [ 'label' => 'Projekt', 'name' => 'project_id', 'id' => 'project_id', 'value' => $this -> task[ 'id' ] ? $this -> task[ 'project_id' ] : $this -> project_id, 'values' => $projects ] ); ?> $clients[ 0 ] = '--- wybierz klienta ---'; if ( is_array( $this -> clients ) ) foreach ( $this -> clients as $client ) $clients[ $client[ 'id' ] ] = $client[ 'firm' ]; ?> = \Html::select( [ 'label' => 'Klient', 'name' => 'client_id', 'id' => 'client_id', 'value' => $this -> task[ 'id' ] ? $this -> task[ 'client_id' ] : 0, 'values' => $clients ] ); ?> if ( $this -> user['id'] == 1 ):?> = \Html::input([ 'label' => 'Stawka', 'name' => 'pay_rate', 'id' => 'pay_rate', 'value' => $this -> task[ 'pay_rate' ], 'class' => 'price', 'inline' => true, 'autocomplete' => 'off' ]);?> endif;?> = \Html::input_switch( [ 'label' => 'Powiadom o zmianie statusu', 'name' => 'status_change_mail', 'id' => 'status_change_mail', 'checked' => $this -> task[ 'status_change_mail' ] ? true : false, 'type' => 'checkbox' ] ); ?>