miniflux-legacy/templates/config.php

70 lines
2.9 KiB
PHP
Raw Normal View History

2013-02-18 03:48:21 +01:00
<div class="page-header">
2013-04-13 03:08:55 +02:00
<h2><?= t('Preferences') ?></h2>
<ul>
<li><a href="?action=about"><?= t('about') ?></a></li>
<li><a href="?action=help"><?= t('help') ?></a></li>
<li><a href="?action=api"><?= t('api') ?></a></li>
</ul>
2013-02-18 03:48:21 +01:00
</div>
2013-03-27 02:54:26 +01:00
<section>
<form method="post" action="?action=config" autocomplete="off">
2013-02-18 03:48:21 +01:00
2014-11-08 03:44:20 +01:00
<?= Helper\form_hidden('csrf', $values) ?>
2013-04-13 03:08:55 +02:00
<?= Helper\form_label(t('Username'), 'username') ?>
2013-02-18 03:48:21 +01:00
<?= Helper\form_text('username', $values, $errors, array('required')) ?><br/>
2013-04-13 03:08:55 +02:00
<?= Helper\form_label(t('Password'), 'password') ?>
2013-03-27 02:54:26 +01:00
<?= Helper\form_password('password', $values, $errors) ?><br/>
2013-02-18 03:48:21 +01:00
2013-04-13 03:08:55 +02:00
<?= Helper\form_label(t('Confirmation'), 'confirmation') ?>
2013-02-18 03:48:21 +01:00
<?= Helper\form_password('confirmation', $values, $errors) ?><br/>
2013-04-13 03:08:55 +02:00
2014-02-26 01:03:46 +01:00
<?= Helper\form_label(t('Timezone'), 'timezone') ?>
<?= Helper\form_select('timezone', $timezones, $values, $errors) ?><br/>
2013-04-13 03:08:55 +02:00
<?= Helper\form_label(t('Language'), 'language') ?>
<?= Helper\form_select('language', $languages, $values, $errors) ?><br/>
2013-02-18 03:48:21 +01:00
2013-05-26 19:09:34 +02:00
<?= Helper\form_label(t('Remove automatically read items'), 'autoflush') ?>
<?= Helper\form_select('autoflush', $autoflush_options, $values, $errors) ?><br/>
<?= Helper\form_label(t('Items per page'), 'items_per_page') ?>
<?= Helper\form_select('items_per_page', $paging_options, $values, $errors) ?><br/>
<?= Helper\form_label(t('Default sorting order for items'), 'items_sorting_direction') ?>
<?= Helper\form_select('items_sorting_direction', $sorting_options, $values, $errors) ?><br/>
<?= Helper\form_label(t('Display items on lists'), 'items_display_mode') ?>
<?= Helper\form_select('items_display_mode', $display_mode, $values, $errors) ?><br/>
<?= Helper\form_label(t('When there is nothing to read, redirect me to this page'), 'redirect_nothing_to_read') ?>
<?= Helper\form_select('redirect_nothing_to_read', $redirect_nothing_to_read_options, $values, $errors) ?><br/>
2013-07-17 03:58:11 +02:00
<?= Helper\form_label(t('Theme'), 'theme') ?>
<?= Helper\form_select('theme', $theme_options, $values, $errors) ?><br/>
<?= Helper\form_checkbox('nocontent', t('Do not fetch the content of articles'), 1, isset($values['nocontent']) ? $values['nocontent'] : false) ?><br />
2014-03-30 21:59:26 +02:00
<?php if (ENABLE_AUTO_UPDATE): ?>
<?= Helper\form_label(t('Auto-Update URL'), 'auto_update_url') ?>
<?= Helper\form_text('auto_update_url', $values, $errors, array('required')) ?><br/>
<?php endif ?>
2013-02-18 03:48:21 +01:00
<div class="form-actions">
2013-06-15 02:42:09 +02:00
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
2013-02-18 03:48:21 +01:00
</div>
</form>
2013-03-27 02:54:26 +01:00
</section>
<?php if (ENABLE_AUTO_UPDATE): ?>
<div class="page-section">
<h2><?= t('Advanced') ?></h2>
</div>
<section class="alert alert-error">
<ul>
2014-11-08 16:07:24 +01:00
<li><a href="?action=confirm-auto-update"><?= t('Update Miniflux') ?></a> (<?= t('Don\'t forget to backup your database') ?>)</li>
</ul>
</section>
<?php endif ?>