'Nazwa', 'name' => 'name', 'id' => 'name', 'value' => $this -> task[ 'name' ], 'class' => 'require', 'inline' => true ] ); ?> 'Treść', 'name' => 'text', 'id' => 'text', 'value' => $this -> task[ 'text' ], 'rows' => 10 ] ); ?> 'Data rozpoczęcia', 'name' => 'date_start', 'id' => 'date_start', 'value' => $this -> task[ 'date_start' ], 'class' => 'datetime', 'inline' => true, 'autocomplete' => 'off' ] ); ?> 'Data zakończenia', 'name' => 'date_end', 'id' => 'date_end', 'value' => $this -> task[ 'date_end' ], 'class' => 'datetime', 'inline' => true, 'autocomplete' => 'off' ] ); ?> projects ) ) foreach ( $this -> projects as $project ) $projects[ $project[ 'id' ] ] = $project[ 'name' ]; ?> 'Projekt', 'name' => 'project_id', 'id' => 'project_id', 'value' => $this -> task[ 'id' ] ? $this -> task[ 'project_id' ] : $this -> project_id, 'values' => $projects ] ); ?> clients ) ) foreach ( $this -> clients as $client ) $clients[ $client[ 'id' ] ] = $client[ 'firm' ]; ?> 'Klient', 'name' => 'client_id', 'id' => 'client_id', 'value' => $this -> task[ 'id' ] ? $this -> task[ 'client_id' ] : 0, 'values' => $clients ] ); ?> user['id'] == 1 ):?> 'Stawka', 'name' => 'pay_rate', 'id' => 'pay_rate', 'value' => $this -> task[ 'pay_rate' ], 'class' => 'price', 'inline' => true, 'autocomplete' => 'off' ]);?> 'Powiadom o zmianie statusu', 'name' => 'status_change_mail', 'id' => 'status_change_mail', 'checked' => $this -> task[ 'status_change_mail' ] ? true : false, 'type' => 'checkbox' ] ); ?>
users ) ): foreach ( $this -> users as $user ):?>
'Przypomnij x dni przed', 'name' => 'reminders_interval', 'value' => $this -> task[ 'reminders_interval' ], 'inline' => true ] ); ?> 'Powtarzaj', 'name' => 'recursively', 'id' => 'recursively', 'checked' => $this -> task[ 'recursively' ] ? true : false, 'type' => 'checkbox' ] ); ?>
'Powiadom użytkowników mailem', 'name' => 'send_email_notification', 'id' => 'send_email_notification', 'checked' => false, 'type' => 'checkbox' ] ); ?> task['id'] ):?>
Usuń zadanie
task[ 'id' ] ? $project_id = $this -> task[ 'project_id' ] : $project_id = $this -> project_id; $out = ob_get_clean(); $grid = new \gridEdit; $grid -> id = 'task-edit'; $grid -> gdb_opt = $gdb; $grid -> include_plugins = true; $grid -> title = 'edycja zadania'; $grid -> title_small = 'Zarządzaj ustawieniami zadania'; $grid -> fields = [ [ 'db' => 'id', 'type' => 'hidden', 'value' => $this -> task[ 'id' ] ] ]; $grid -> external_code = $out; $grid -> actions = [ 'save' => [ 'url' => '/projects/task_save/', 'back_url' => ( $this -> task[ 'project_id' ] != "" ? '/projects/tasks/project_id=' . $this -> task['project_id'] : $this -> referer ) ], 'cancel' => [ 'url' => $this -> referer ] ]; $grid -> persist_edit = true; $grid -> id_param = 'id'; echo $grid -> draw(); ?>