Expose task reference field to the user interface
This commit is contained in:
@@ -9,6 +9,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Expose task reference field to the user interface
|
||||||
* Improve ICal export
|
* Improve ICal export
|
||||||
* Added argument owner_id and identifier to project API calls
|
* Added argument owner_id and identifier to project API calls
|
||||||
* Rewrite integration tests to run with Docker containers
|
* Rewrite integration tests to run with Docker containers
|
||||||
|
|||||||
@@ -167,10 +167,20 @@ class TaskHelper extends Base
|
|||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function selectTimeEstimated(array $values, array $errors = array(), array $attributes = array())
|
public function selectReference(array $values, array $errors = array(), array $attributes = array())
|
||||||
{
|
{
|
||||||
$attributes = array_merge(array('tabindex="9"'), $attributes);
|
$attributes = array_merge(array('tabindex="9"'), $attributes);
|
||||||
|
|
||||||
|
$html = $this->helper->form->label(t('Reference'), 'reference');
|
||||||
|
$html .= $this->helper->form->text('reference', $values, $errors, $attributes, 'form-input-small');
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function selectTimeEstimated(array $values, array $errors = array(), array $attributes = array())
|
||||||
|
{
|
||||||
|
$attributes = array_merge(array('tabindex="10"'), $attributes);
|
||||||
|
|
||||||
$html = $this->helper->form->label(t('Original estimate'), 'time_estimated');
|
$html = $this->helper->form->label(t('Original estimate'), 'time_estimated');
|
||||||
$html .= $this->helper->form->numeric('time_estimated', $values, $errors, $attributes);
|
$html .= $this->helper->form->numeric('time_estimated', $values, $errors, $attributes);
|
||||||
$html .= ' '.t('hours');
|
$html .= ' '.t('hours');
|
||||||
@@ -180,7 +190,7 @@ class TaskHelper extends Base
|
|||||||
|
|
||||||
public function selectTimeSpent(array $values, array $errors = array(), array $attributes = array())
|
public function selectTimeSpent(array $values, array $errors = array(), array $attributes = array())
|
||||||
{
|
{
|
||||||
$attributes = array_merge(array('tabindex="10"'), $attributes);
|
$attributes = array_merge(array('tabindex="11"'), $attributes);
|
||||||
|
|
||||||
$html = $this->helper->form->label(t('Time spent'), 'time_spent');
|
$html = $this->helper->form->label(t('Time spent'), 'time_spent');
|
||||||
$html .= $this->helper->form->numeric('time_spent', $values, $errors, $attributes);
|
$html .= $this->helper->form->numeric('time_spent', $values, $errors, $attributes);
|
||||||
@@ -192,7 +202,7 @@ class TaskHelper extends Base
|
|||||||
public function selectStartDate(array $values, array $errors = array(), array $attributes = array())
|
public function selectStartDate(array $values, array $errors = array(), array $attributes = array())
|
||||||
{
|
{
|
||||||
$placeholder = date($this->configModel->get('application_date_format', 'm/d/Y H:i'));
|
$placeholder = date($this->configModel->get('application_date_format', 'm/d/Y H:i'));
|
||||||
$attributes = array_merge(array('tabindex="11"', 'placeholder="'.$placeholder.'"'), $attributes);
|
$attributes = array_merge(array('tabindex="12"', 'placeholder="'.$placeholder.'"'), $attributes);
|
||||||
|
|
||||||
$html = $this->helper->form->label(t('Start Date'), 'date_started');
|
$html = $this->helper->form->label(t('Start Date'), 'date_started');
|
||||||
$html .= $this->helper->form->text('date_started', $values, $errors, $attributes, 'form-datetime');
|
$html .= $this->helper->form->text('date_started', $values, $errors, $attributes, 'form-datetime');
|
||||||
@@ -203,7 +213,7 @@ class TaskHelper extends Base
|
|||||||
public function selectDueDate(array $values, array $errors = array(), array $attributes = array())
|
public function selectDueDate(array $values, array $errors = array(), array $attributes = array())
|
||||||
{
|
{
|
||||||
$placeholder = date($this->configModel->get('application_date_format', 'm/d/Y'));
|
$placeholder = date($this->configModel->get('application_date_format', 'm/d/Y'));
|
||||||
$attributes = array_merge(array('tabindex="12"', 'placeholder="'.$placeholder.'"'), $attributes);
|
$attributes = array_merge(array('tabindex="13"', 'placeholder="'.$placeholder.'"'), $attributes);
|
||||||
|
|
||||||
$html = $this->helper->form->label(t('Due Date'), 'date_due');
|
$html = $this->helper->form->label(t('Due Date'), 'date_due');
|
||||||
$html .= $this->helper->form->text('date_due', $values, $errors, $attributes, 'form-date');
|
$html .= $this->helper->form->text('date_due', $values, $errors, $attributes, 'form-date');
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
<?= $this->task->selectColumn($columns_list, $values, $errors) ?>
|
<?= $this->task->selectColumn($columns_list, $values, $errors) ?>
|
||||||
<?= $this->task->selectPriority($project, $values) ?>
|
<?= $this->task->selectPriority($project, $values) ?>
|
||||||
<?= $this->task->selectScore($values, $errors) ?>
|
<?= $this->task->selectScore($values, $errors) ?>
|
||||||
|
<?= $this->task->selectReference($values, $errors) ?>
|
||||||
|
|
||||||
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<?= $this->task->selectSwimlane($swimlanes_list, $values, $errors) ?>
|
<?= $this->task->selectSwimlane($swimlanes_list, $values, $errors) ?>
|
||||||
<?= $this->task->selectPriority($project, $values) ?>
|
<?= $this->task->selectPriority($project, $values) ?>
|
||||||
<?= $this->task->selectScore($values, $errors) ?>
|
<?= $this->task->selectScore($values, $errors) ?>
|
||||||
|
<?= $this->task->selectReference($values, $errors) ?>
|
||||||
|
|
||||||
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<?= $this->task->selectCategory($categories_list, $values, $errors) ?>
|
<?= $this->task->selectCategory($categories_list, $values, $errors) ?>
|
||||||
<?= $this->task->selectPriority($project, $values) ?>
|
<?= $this->task->selectPriority($project, $values) ?>
|
||||||
<?= $this->task->selectScore($values, $errors) ?>
|
<?= $this->task->selectScore($values, $errors) ?>
|
||||||
|
<?= $this->task->selectReference($values, $errors) ?>
|
||||||
|
|
||||||
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
<?= $this->hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
2
assets/css/app.min.css
vendored
2
assets/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -154,6 +154,10 @@ input.form-input-large {
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input.form-input-small {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
.form-columns {
|
.form-columns {
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user