You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
<?php
|
|
|
|
if (!$info['title'])
|
|
$info['title'] = __('New Task');
|
|
|
|
$namespace = 'task.add';
|
|
if ($ticket)
|
|
$namespace = sprintf('ticket.%d.task', $ticket->getId());
|
|
|
|
?>
|
|
<div id="task-form">
|
|
<h3 class="drag-handle"><?php echo $info['title']; ?></h3>
|
|
<b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b>
|
|
<hr/>
|
|
<?php
|
|
|
|
if ($info['error']) {
|
|
echo sprintf('<p id="msg_error">%s</p>', $info['error']);
|
|
} elseif ($info['warning']) {
|
|
echo sprintf('<p id="msg_warning">%s</p>', $info['warning']);
|
|
} elseif ($info['msg']) {
|
|
echo sprintf('<p id="msg_notice">%s</p>', $info['msg']);
|
|
} ?>
|
|
<div id="new-task-form" style="display:block;">
|
|
<form method="post" class="org" action="<?php echo $info['action'] ?: '#tasks/add'; ?>">
|
|
<?php
|
|
$form = $form ?: TaskForm::getInstance();
|
|
echo $form->getForm($vars)->asTable(' ',
|
|
array('draft-namespace' => $namespace)
|
|
);
|
|
|
|
$iform = $iform ?: TaskForm::getInternalForm();
|
|
echo $iform->asTable(__("Task Visibility & Assignment"));
|
|
?>
|
|
<hr>
|
|
<p class="full-width">
|
|
<span class="buttons pull-left">
|
|
<input type="reset" value="<?php echo __('Reset'); ?>">
|
|
<input type="button" name="cancel" class="close"
|
|
value="<?php echo __('Cancel'); ?>">
|
|
</span>
|
|
<span class="buttons pull-right">
|
|
<input type="submit" value="<?php echo __('Create Task'); ?>">
|
|
</span>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|