34 lines
1.7 KiB
PHP
34 lines
1.7 KiB
PHP
<div class="page-header">
|
|
<h2><?= t('Shrink Vertically') ?></h2>
|
|
</div>
|
|
|
|
<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('plugin' => 'ShrinkVertically')) ?>" autocomplete="off">
|
|
<?= $this->form->csrf() ?>
|
|
|
|
<fieldset>
|
|
<?= $this->form->label(t('Vertical offset in pixels'), 'shrink_vertically_offset') ?>
|
|
<?= $this->form->number('shrink_vertically_offset', $values, $errors) ?>
|
|
<p class="form-help">
|
|
<?= t('Pixels reserved above and below the vertically collapsed board columns (page header, column header and the horizontal scrollbar). A larger value makes the columns shorter. Default: 240.') ?>
|
|
</p>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<?= $this->form->checkbox('shrink_vertically_top_scrollbar', t('Add a top horizontal scrollbar to the board'), 1, isset($values['shrink_vertically_top_scrollbar']) && $values['shrink_vertically_top_scrollbar'] == 1) ?>
|
|
<p class="form-help">
|
|
<?= t('Adds a second horizontal scrollbar above the columns, mirrored with the board scrollbar, so you do not have to scroll to the bottom to move sideways.') ?>
|
|
</p>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<?= $this->form->checkbox('shrink_vertically_drag_scroll', t('Drag the board background to scroll horizontally'), 1, isset($values['shrink_vertically_drag_scroll']) && $values['shrink_vertically_drag_scroll'] == 1) ?>
|
|
<p class="form-help">
|
|
<?= t('Like Trello: click and drag on the empty board background to scroll the columns sideways. Dragging a task card or a handle still works as usual.') ?>
|
|
</p>
|
|
</fieldset>
|
|
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
|
</div>
|
|
</form>
|