コード例 #1
0
    <?php 
echo Helper\form_hidden('project_id', $values);
?>

    <?php 
echo Helper\form_label(t('Start Date'), 'from');
?>
    <?php 
echo Helper\form_text('from', $values, $errors, array('required', 'placeholder="' . Helper\in_list($date_format, $date_formats) . '"'), 'form-date');
?>
<br/>

    <?php 
echo Helper\form_label(t('End Date'), 'to');
?>
    <?php 
echo Helper\form_text('to', $values, $errors, array('required', 'placeholder="' . Helper\in_list($date_format, $date_formats) . '"'), 'form-date');
?>

    <div class="form-help"><?php 
echo t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d'));
?>
</div>

    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Execute');
?>
" class="btn btn-blue"/>
    </div>
</form>
コード例 #2
0
ファイル: action_remove.php プロジェクト: cvalenti/kanboard
<div class="page-header">
    <h2><?php 
echo t('Remove an automatic action');
?>
</h2>
</div>

<div class="confirm">
    <p class="alert alert-info">
        <?php 
echo t('Do you really want to remove this action: "%s"?', Helper\in_list($action['event_name'], $available_events) . '/' . Helper\in_list($action['action_name'], $available_actions));
?>
    </p>

    <div class="form-actions">
        <a href="?controller=action&amp;action=remove&amp;action_id=<?php 
echo $action['id'] . Helper\param_csrf();
?>
" class="btn btn-red"><?php 
echo t('Yes');
?>
</a>
        <?php 
echo t('or');
?>
 <a href="?controller=action&amp;action=index&amp;project_id=<?php 
echo $action['project_id'];
?>
"><?php 
echo t('cancel');
?>
コード例 #3
0
ファイル: task.php プロジェクト: andrearruda/kanboard
    echo Helper\a(Helper\escape($task['title']), 'task', 'show', array('task_id' => $task['id']), false, '', t('View this task'));
    ?>
    </div>

<?php 
}
?>


<?php 
if ($task['category_id']) {
    ?>
<div class="task-board-category-container">
    <span class="task-board-category">
        <?php 
    echo Helper\a(Helper\in_list($task['category_id'], $categories), 'board', 'changeCategory', array('task_id' => $task['id']), false, 'category-popover', t('Change category'));
    ?>
    </span>
</div>
<?php 
}
?>


<?php 
if (!empty($task['date_due']) || !empty($task['nb_files']) || !empty($task['nb_comments']) || !empty($task['description']) || !empty($task['nb_subtasks'])) {
    ?>
<div class="task-board-footer">

    <?php 
    if (!empty($task['date_due'])) {
コード例 #4
0
<p class="activity-title">
    <?php 
echo e('%s created a subtask for the task <a href="?controller=task&amp;action=show&amp;task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id);
?>
</p>
<p class="activity-description">
    <em><?php 
echo Helper\escape($task_title);
?>
</em><br/>
    <p><?php 
echo Helper\escape($subtask_title);
?>
 <strong>(<?php 
echo Helper\in_list($subtask_status, $subtask_status_list);
?>
)</strong></p>
    <?php 
if ($subtask_assignee) {
    ?>
        <p><?php 
    echo t('Assigned to %s with an estimate of %s/%sh', $subtask_assignee, $subtask_time_spent, $subtask_time_estimated);
    ?>
</p>
    <?php 
} else {
    ?>
        <p><?php 
    echo t('Not assigned, estimate of %sh', $subtask_time_estimated);
    ?>
</p>
コード例 #5
0
ファイル: index.php プロジェクト: andrearruda/kanboard
     } elseif (Helper\contains($param['name'], 'project_id')) {
         ?>
                 <?php 
         echo Helper\in_list($param['value'], $projects_list);
         ?>
             <?php 
     } elseif (Helper\contains($param['name'], 'color_id')) {
         ?>
                 <?php 
         echo Helper\in_list($param['value'], $colors_list);
         ?>
             <?php 
     } elseif (Helper\contains($param['name'], 'category_id')) {
         ?>
                 <?php 
         echo Helper\in_list($param['value'], $categories_list);
         ?>
             <?php 
     } elseif (Helper\contains($param['name'], 'label')) {
         ?>
                 <?php 
         echo Helper\escape($param['value']);
         ?>
             <?php 
     }
     ?>
             </strong>
         </li>
     <?php 
 }
 ?>
コード例 #6
0
        ?>
">
                    <a href="?controller=task&amp;action=show&amp;task_id=<?php 
        echo $task['id'];
        ?>
" title="<?php 
        echo t('View this task');
        ?>
"><?php 
        echo Helper\escape($task['id']);
        ?>
</a>
                </td>
                <td>
                    <?php 
        echo Helper\in_list($task['column_id'], $columns);
        ?>
                </td>
                <td>
                    <a href="?controller=task&amp;action=show&amp;task_id=<?php 
        echo $task['id'];
        ?>
" title="<?php 
        echo t('View this task');
        ?>
"><?php 
        echo Helper\escape($task['title']);
        ?>
</a>
                    <div class="task-table-icons">
                        <?php 
コード例 #7
0
ファイル: task_table.php プロジェクト: cvalenti/kanboard
" title="<?php 
    echo t('View this task');
    ?>
"><?php 
    echo Helper\escape($task['id']);
    ?>
</a>
        </td>
        <td>
            <?php 
    echo Helper\in_list($task['column_id'], $columns);
    ?>
        </td>
        <td>
            <?php 
    echo Helper\in_list($task['category_id'], $categories, '');
    ?>
        </td>
        <td>
            <a href="?controller=task&amp;action=show&amp;task_id=<?php 
    echo $task['id'];
    ?>
" title="<?php 
    echo t('View this task');
    ?>
"><?php 
    echo Helper\escape($task['title']);
    ?>
</a>
        </td>
        <td>
コード例 #8
0
ファイル: time.php プロジェクト: andrearruda/kanboard
<form method="post" action="<?php 
echo Helper\u('task', 'time', array('task_id' => $values['id']));
?>
" class="form-inline task-time-form" autocomplete="off">
    <?php 
echo Helper\form_csrf();
?>
    <?php 
echo Helper\form_hidden('id', $values);
?>

    <?php 
echo Helper\form_label(t('Start date'), 'date_started');
?>
    <?php 
echo Helper\form_text('date_started', $values, array(), array('placeholder="' . Helper\in_list($date_format, $date_formats) . '"'), 'form-date');
?>

    <?php 
echo Helper\form_label(t('Time estimated'), 'time_estimated');
?>
    <?php 
echo Helper\form_numeric('time_estimated', $values, array(), array('placeholder="' . t('hours') . '"'));
?>

    <?php 
echo Helper\form_label(t('Time spent'), 'time_spent');
?>
    <?php 
echo Helper\form_numeric('time_spent', $values, array(), array('placeholder="' . t('hours') . '"'));
?>
コード例 #9
0
ファイル: action_index.php プロジェクト: antonivargas/bkpsite
     } elseif (Helper\contains($param['name'], 'user_id')) {
         ?>
                     <?php 
         echo Helper\in_list($param['value'], $users_list);
         ?>
                 <?php 
     } elseif (Helper\contains($param['name'], 'project_id')) {
         ?>
                     <?php 
         echo Helper\in_list($param['value'], $projects_list);
         ?>
                 <?php 
     } elseif (Helper\contains($param['name'], 'color_id')) {
         ?>
                     <?php 
         echo Helper\in_list($param['value'], $colors_list);
         ?>
                 <?php 
     }
     ?>
                 </strong>
             </li>
         <?php 
 }
 ?>
         </ul>
     </td>
     <td>
         <a href="?controller=action&amp;action=confirm&amp;action_id=<?php 
 echo $action['id'];
 ?>