Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gustavocp/602dbbfb04a6ee8fec9b4be6efb9ed97 to your computer and use it in GitHub Desktop.
Save gustavocp/602dbbfb04a6ee8fec9b4be6efb9ed97 to your computer and use it in GitHub Desktop.
add (projects)
<?php
/**
* @var \App\View\AppView $this
*/
?>
<div class="tasks form">
<?= $this->Form->create($task) ?>
<fieldset>
<legend><?= __('Add Task') ?></legend>
<?php
echo $this->Form->input('name');
echo $this->Form->input('description');
echo $this->Form->input('user_id', ['options' => $users]);
echo $this->Form->input('project_id', ['options' => $projects]);
echo $this->Form->input('points');
echo $this->Form->input('status');
?>
</fieldset>
<?= $this->Form->button(__('Submit'), ['class' => 'btn btn-success']) ?>
<?= $this->Html->link('Cancel', ['action' => 'index'], ['class' => 'btn btn-default'])?>
<?= $this->Form->end() ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment