?>
        <?php 
echo Helper\form_password('confirmation', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Default Project'), 'default_project_id');
?>
        <?php 
echo Helper\form_select('default_project_id', $projects, $values, $errors);
?>
<br/>

        <?php 
if (Helper\is_admin()) {
    ?>
            <?php 
    echo Helper\form_checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false);
    ?>
        <?php 
}
?>

        <div class="form-actions">
            <input type="submit" value="<?php 
echo t('Save');
?>
" class="btn btn-blue"/> <?php 
echo t('or');
?>
?>
</span>
    </p>
    <?php 
if (isset($task)) {
    ?>
    <ul class="comment-actions">
        <li><a href="#comment-<?php 
    echo $comment['id'];
    ?>
"><?php 
    echo t('link');
    ?>
</a></li>
        <?php 
    if (Helper\is_admin() || Helper\is_current_user($comment['user_id'])) {
        ?>
            <li>
                <a href="?controller=comment&amp;action=confirm&amp;project_id=<?php 
        echo $task['project_id'];
        ?>
&amp;comment_id=<?php 
        echo $comment['id'];
        ?>
"><?php 
        echo t('remove');
        ?>
</a>
            </li>
            <li>
                <a href="?controller=comment&amp;action=edit&amp;task_id=<?php 
Exemple #3
0
            <?php 
    }
    ?>
        </li>
        <li>
            <?php 
    echo Helper\a(t('Remove'), 'project', 'remove', array('project_id' => $project['id']));
    ?>
        </li>
        <?php 
}
?>
    </ul>

    <?php 
if (Helper\is_admin() || $project['is_private']) {
    ?>
    <h2><?php 
    echo t('Exports');
    ?>
</h2>
    <ul>
        <li>
            <?php 
    echo Helper\a(t('Tasks'), 'project', 'exportTasks', array('project_id' => $project['id']));
    ?>
        </li>
        <li>
            <?php 
    echo Helper\a(t('Daily project summary'), 'project', 'exportDailyProjectSummary', array('project_id' => $project['id']));
    ?>
Exemple #4
0
    <div class="comment-inner">

        <?php 
if (!isset($preview)) {
    ?>
        <ul class="comment-actions">
            <li><a href="#comment-<?php 
    echo $comment['id'];
    ?>
"><?php 
    echo t('link');
    ?>
</a></li>
            <?php 
    if ((!isset($not_editable) || !$not_editable) && (Helper\is_admin() || Helper\is_current_user($comment['user_id']))) {
        ?>
                <li>
                    <a href="?controller=comment&amp;action=confirm&amp;task_id=<?php 
        echo $task['id'];
        ?>
&amp;comment_id=<?php 
        echo $comment['id'];
        ?>
"><?php 
        echo t('remove');
        ?>
</a>
                </li>
                <li>
                    <a href="?controller=comment&amp;action=edit&amp;task_id=<?php