コード例 #1
0
ファイル: config_index.php プロジェクト: cvalenti/kanboard
echo Helper\form_csrf();
?>

        <?php 
echo Helper\form_label(t('Language'), 'language');
?>
        <?php 
echo Helper\form_select('language', $languages, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Timezone'), 'timezone');
?>
        <?php 
echo Helper\form_select('timezone', $timezones, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Webhook URL for task creation'), 'webhooks_url_task_creation');
?>
        <?php 
echo Helper\form_text('webhooks_url_task_creation', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Webhook URL for task modification'), 'webhooks_url_task_modification');
?>
        <?php 
コード例 #2
0
ファイル: move_project.php プロジェクト: andrearruda/kanboard
    echo Helper\u('task', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id']));
    ?>
" autocomplete="off">

        <?php 
    echo Helper\form_csrf();
    ?>

        <?php 
    echo Helper\form_hidden('id', $values);
    ?>
        <?php 
    echo Helper\form_label(t('Project'), 'project_id');
    ?>
        <?php 
    echo Helper\form_select('project_id', $projects_list, $values, $errors);
    ?>
<br/>

        <div class="form-actions">
            <input type="submit" value="<?php 
    echo t('Save');
    ?>
" class="btn btn-blue"/>
            <?php 
    echo t('or');
    ?>
            <?php 
    echo Helper\a(t('cancel'), 'task', 'show', array('task_id' => $task['id']));
    ?>
        </div>
コード例 #3
0
ファイル: new.php プロジェクト: andrearruda/kanboard
?>
<br/>

        <?php 
echo Helper\form_label(t('Column'), 'column_id');
?>
        <?php 
echo Helper\form_select('column_id', $columns_list, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Color'), 'color_id');
?>
        <?php 
echo Helper\form_select('color_id', $colors_list, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Complexity'), 'score');
?>
        <?php 
echo Helper\form_number('score', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Original estimate'), 'time_estimated');
?>
        <?php 
コード例 #4
0
?>
<br/>

        <?php 
echo Helper\form_label(t('Confirmation'), 'confirmation');
?>
        <?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 
コード例 #5
0
if ($user['is_admin']) {
    ?>
        <div class="page-header">
            <h2><?php 
    echo t('Application Settings');
    ?>
</h2>
        </div>
        <section>
        <form method="post" action="?controller=config&amp;action=save" autocomplete="off">

            <?php 
    echo Helper\form_label(t('Language'), 'language');
    ?>
            <?php 
    echo Helper\form_select('language', $languages, $values, $errors);
    ?>
<br/>

            <?php 
    echo Helper\form_label(t('Webhooks token'), 'webhooks_token');
    ?>
            <?php 
    echo Helper\form_text('webhooks_token', $values, $errors, array('readonly'));
    ?>
<br/>

            <div class="form-actions">
                <input type="submit" value="<?php 
    echo t('Save');
    ?>
コード例 #6
0
ファイル: application.php プロジェクト: andrearruda/kanboard
?>
<br/>

    <?php 
echo Helper\form_label(t('Timezone'), 'application_timezone');
?>
    <?php 
echo Helper\form_select('application_timezone', $timezones, $values, $errors);
?>
<br/>

    <?php 
echo Helper\form_label(t('Date format'), 'application_date_format');
?>
    <?php 
echo Helper\form_select('application_date_format', $date_formats, $values, $errors);
?>
<br/>
    <p class="form-help"><?php 
echo t('ISO format is always accepted, example: "%s" and "%s"', date('Y-m-d'), date('Y_m_d'));
?>
</p>

    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Save');
?>
" class="btn btn-blue"/>
    </div>
</form>
</section>
コード例 #7
0
ファイル: task_new.php プロジェクト: antonivargas/bkpsite
?>
<br/>

        <?php 
echo Helper\form_label(t('Color'), 'color_id');
?>
        <?php 
echo Helper\form_select('color_id', $colors_list, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Assignee'), 'owner_id');
?>
        <?php 
echo Helper\form_select('owner_id', $users_list, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Story Points'), 'score');
?>
        <?php 
echo Helper\form_number('score', $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Due Date'), 'date_due');
?>
        <?php 
コード例 #8
0
ファイル: board_index.php プロジェクト: cvalenti/kanboard
            <li>
                <span class="hide-tablet"><?php 
echo t('Filter by user');
?>
</span>
                <?php 
echo Helper\form_select('user_id', $users, $filters);
?>
            </li>
            <li>
                <span class="hide-tablet"><?php 
echo t('Filter by category');
?>
</span>
                <?php 
echo Helper\form_select('category_id', $categories, $filters);
?>
            </li>
            <li><a href="#" id="filter-due-date"><?php 
echo t('Filter by due date');
?>
</a></li>
            <li><a href="?controller=project&amp;action=search&amp;project_id=<?php 
echo $current_project_id;
?>
"><?php 
echo t('Search');
?>
</a></li>
            <li><a href="?controller=project&amp;action=tasks&amp;project_id=<?php 
echo $current_project_id;
コード例 #9
0
ファイル: index.php プロジェクト: andrearruda/kanboard
<h3><?php 
echo t('Add an action');
?>
</h3>
<form method="post" action="<?php 
echo Helper\u('action', 'event', array('project_id' => $project['id']));
?>
">
    <?php 
echo Helper\form_csrf();
?>
    <?php 
echo Helper\form_hidden('project_id', $values);
?>

    <?php 
echo Helper\form_label(t('Action'), 'action_name');
?>
    <?php 
echo Helper\form_select('action_name', $available_actions, $values);
?>
<br/>

    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Next step');
?>
" class="btn btn-blue"/>
    </div>
</form>
コード例 #10
0
ファイル: action_params.php プロジェクト: cvalenti/kanboard
        ?>
            <?php 
        echo Helper\form_label($param_desc, $param_name);
        ?>
            <?php 
        echo Helper\form_select('params[' . $param_name . ']', $colors_list, $values);
        ?>
<br/>
        <?php 
    } elseif (Helper\contains($param_name, 'category_id')) {
        ?>
            <?php 
        echo Helper\form_label($param_desc, $param_name);
        ?>
            <?php 
        echo Helper\form_select('params[' . $param_name . ']', $categories_list, $values);
        ?>
<br/>
        <?php 
    }
    ?>
    <?php 
}
?>

    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Save this action');
?>
" class="btn btn-blue"/>
        <?php 
コード例 #11
0
ファイル: event.php プロジェクト: andrearruda/kanboard
    <?php 
echo Helper\form_csrf();
?>

    <?php 
echo Helper\form_hidden('project_id', $values);
?>
    <?php 
echo Helper\form_hidden('action_name', $values);
?>

    <?php 
echo Helper\form_label(t('Event'), 'event_name');
?>
    <?php 
echo Helper\form_select('event_name', $events, $values);
?>
<br/>

    <div class="form-help">
        <?php 
echo t('When the selected event occurs execute the corresponding action.');
?>
    </div>

    <div class="form-actions">
        <input type="submit" value="<?php 
echo t('Next step');
?>
" class="btn btn-blue"/>
        <?php 
コード例 #12
0
if (!empty($users['not_allowed'])) {
    ?>
        <form method="post" action="?controller=project&amp;action=allow&amp;project_id=<?php 
    echo $project['id'];
    ?>
" autocomplete="off">

            <?php 
    echo Helper\form_hidden('project_id', array('project_id' => $project['id']));
    ?>

            <?php 
    echo Helper\form_label(t('User'), 'user_id');
    ?>
            <?php 
    echo Helper\form_select('user_id', $users['not_allowed']);
    ?>
<br/>

            <div class="form-actions">
                <input type="submit" value="<?php 
    echo t('Allow this user');
    ?>
" class="btn btn-blue"/>
                <?php 
    echo t('or');
    ?>
 <a href="?controller=project"><?php 
    echo t('cancel');
    ?>
</a>
コード例 #13
0
ファイル: category.php プロジェクト: andrearruda/kanboard
            <?php 
echo Helper\form_csrf();
?>

            <?php 
echo Helper\form_hidden('id', $values);
?>
            <?php 
echo Helper\form_hidden('project_id', $values);
?>

            <?php 
echo Helper\form_label(t('Category'), 'category_id');
?>
            <?php 
echo Helper\form_select('category_id', $categories_list, $values);
?>
<br/>

            <div class="form-actions">
                <input type="submit" value="<?php 
echo t('Save');
?>
" class="btn btn-blue"/>
                <?php 
echo t('or');
?>
                <?php 
echo Helper\a(t('cancel'), 'board', 'show', array('project_id' => $project['id']));
?>
            </div>
コード例 #14
0
ファイル: board_index.php プロジェクト: antonivargas/bkpsite
    }
    ?>
            <?php 
}
?>
        </ul>
    </div>

    <div class="project-menu">
        <ul>
            <li>
                <?php 
echo t('Filter by user');
?>
                <?php 
echo Helper\form_select('user_id', $users, $filters);
?>
            </li>
            <li><a href="#" id="filter-due-date"><?php 
echo t('Filter by due date');
?>
</a></li>
            <li><a href="?controller=project&amp;action=search&amp;project_id=<?php 
echo $current_project_id;
?>
"><?php 
echo t('Search');
?>
</a></li>
            <li><a href="?controller=project&amp;action=tasks&amp;project_id=<?php 
echo $current_project_id;
コード例 #15
0
ファイル: filters.php プロジェクト: andrearruda/kanboard
<div class="page-header">
    <ul>
        <li>
            <?php 
echo t('Filter by user');
?>
            <?php 
echo Helper\form_select('user_id', $users);
?>
        </li>
        <li>
            <?php 
echo t('Filter by category');
?>
            <?php 
echo Helper\form_select('category_id', $categories);
?>
        </li>
        <li>
            <a href="#" id="filter-due-date"><?php 
echo t('Filter by due date');
?>
</a>
        </li>
        <li>
            <i class="fa fa-search"></i>
            <?php 
echo Helper\a(t('Search'), 'project', 'search', array('project_id' => $project['id']));
?>
        </li>
        <li>
コード例 #16
0
        ?>
                <?php 
        echo Helper\form_label($param_desc, $param_name);
        ?>
                <?php 
        echo Helper\form_select('params[' . $param_name . ']', $projects_list, $values);
        ?>
<br/>
            <?php 
    } elseif (Helper\contains($param_name, 'color_id')) {
        ?>
                <?php 
        echo Helper\form_label($param_desc, $param_name);
        ?>
                <?php 
        echo Helper\form_select('params[' . $param_name . ']', $colors_list, $values);
        ?>
<br/>
            <?php 
    }
    ?>
        <?php 
}
?>

        <div class="form-actions">
            <input type="submit" value="<?php 
echo t('Save this action');
?>
" class="btn btn-blue"/>
            <?php 
コード例 #17
0
ファイル: config.php プロジェクト: cs-team/miniflux
?>
<br/>

        <?php 
echo Helper\form_label(t('Display items on lists'), 'items_display_mode');
?>
        <?php 
echo Helper\form_select('items_display_mode', $display_mode, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('When there is nothing to read, redirect me to this page'), 'redirect_nothing_to_read');
?>
        <?php 
echo Helper\form_select('redirect_nothing_to_read', $redirect_nothing_to_read_options, $values, $errors);
?>
<br/>

        <?php 
echo Helper\form_label(t('Refresh interval in minutes for unread counter'), 'frontend_updatecheck_interval');
?>
        <?php 
echo Helper\form_number('frontend_updatecheck_interval', $values, $errors, array('min="0"'));
?>
<br/>

        <?php 
echo Helper\form_checkbox('original_marks_read', t('Original link marks article as read'), 1, isset($values['original_marks_read']) && $values['original_marks_read'] == 1);
?>
<br/>