aboutsummaryrefslogtreecommitdiff
path: root/app/views/configure
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/configure')
-rw-r--r--app/views/configure/archiving.phtml29
-rw-r--r--app/views/configure/display.phtml70
-rw-r--r--app/views/configure/integration.phtml6
-rw-r--r--app/views/configure/privacy.phtml5
-rw-r--r--app/views/configure/reading.phtml86
-rw-r--r--app/views/configure/shortcut.phtml71
-rw-r--r--app/views/configure/system.phtml21
7 files changed, 105 insertions, 183 deletions
diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml
index 10f8774cd..2b4152a7e 100644
--- a/app/views/configure/archiving.phtml
+++ b/app/views/configure/archiving.phtml
@@ -7,13 +7,13 @@
<h1><?= _t('conf.archiving') ?></h1>
<p class="help"><?= _i('help') ?> <?= _t('conf.archiving.help') ?></p>
- <form method="post" action="<?= _url('configure', 'archiving') ?>">
+ <form method="post" action="<?= _url('configure', 'archiving') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<div class="form-group">
<label class="group-name" for="ttl_default"><?= _t('conf.archiving.ttl') ?></label>
<div class="group-controls">
- <select class="number" name="ttl_default" id="ttl_default" required="required" data-leave-validation="<?= FreshRSS_Context::userConf()->ttl_default ?>"><?php
+ <select class="number" name="ttl_default" id="ttl_default" required="required"><?php
$found = false;
foreach ([1200 => '20min', 1500 => '25min', 1800 => '30min', 2700 => '45min',
3600 => '1h', 5400 => '1.5h', 7200 => '2h', 10800 => '3h', 14400 => '4h', 18800 => '5h', 21600 => '6h', 25200 => '7h', 28800 => '8h',
@@ -42,11 +42,10 @@
<div class="group-controls">
<label class="checkbox" for="enable_keep_max">
<input type="checkbox" name="enable_keep_max" id="enable_keep_max" value="1"<?=
- empty(FreshRSS_Context::userConf()->archiving['keep_max']) ? '' : ' checked="checked"' ?>
- data-leave-validation="<?= empty(FreshRSS_Context::userConf()->archiving['keep_max']) ? 0 : 1 ?>"/>
+ empty(FreshRSS_Context::userConf()->archiving['keep_max']) ? '' : ' checked="checked"' ?> />
<?= _t('conf.archiving.keep_max') ?>
<?php $keepMax = empty(FreshRSS_Context::userConf()->archiving['keep_max']) ? 200 : FreshRSS_Context::userConf()->archiving['keep_max']; ?>
- <input type="number" id="keep_max" name="keep_max" min="0" value="<?= $keepMax ?>" data-leave-validation="<?= $keepMax ?>"/>
+ <input type="number" id="keep_max" name="keep_max" min="0" value="<?= $keepMax ?>" />
</label>
</div>
</div>
@@ -55,12 +54,10 @@
<div class="group-controls">
<label class="checkbox" for="enable_keep_period">
<input type="checkbox" name="enable_keep_period" id="enable_keep_period" value="1"<?=
- empty(FreshRSS_Context::userConf()->volatile['enable_keep_period']) ? '' : ' checked="checked"' ?>
- data-leave-validation="<?= empty(FreshRSS_Context::userConf()->volatile['enable_keep_period']) ? 0 : 1 ?>"/>
+ empty(FreshRSS_Context::userConf()->volatile['enable_keep_period']) ? '' : ' checked="checked"' ?> />
<?= _t('conf.archiving.keep_period') ?>
- <input type="number" id="keep_period_count" name="keep_period_count" min="0" value="<?= FreshRSS_Context::userConf()->volatile['keep_period_count'] ?>"
- data-leave-validation="<?= FreshRSS_Context::userConf()->volatile['keep_period_count'] ?>"/>
- <select class="number" name="keep_period_unit" id="keep_period_unit" data-leave-validation="<?= FreshRSS_Context::userConf()->volatile['keep_period_unit'] ?>">
+ <input type="number" id="keep_period_count" name="keep_period_count" min="0" value="<?= FreshRSS_Context::userConf()->volatile['keep_period_count'] ?>" />
+ <select class="number" name="keep_period_unit" id="keep_period_unit">
<option></option>
<option value="P1Y" <?= 'P1Y' === FreshRSS_Context::userConf()->volatile['keep_period_unit'] ? 'selected="selected"' : '' ?>><?= _t('gen.period.years') ?></option>
<option value="P1M" <?= 'P1M' === FreshRSS_Context::userConf()->volatile['keep_period_unit'] ? 'selected="selected"' : '' ?>><?= _t('gen.period.months') ?></option>
@@ -77,8 +74,7 @@
<div class="group-controls">
<label class="checkbox" for="keep_favourites">
<input type="checkbox" name="keep_favourites" id="keep_favourites" value="1"<?=
- FreshRSS_Context::userConf()->archiving['keep_favourites'] !== false ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->archiving['keep_favourites'] !== false ? 1 : 0 ?>"/>
+ FreshRSS_Context::userConf()->archiving['keep_favourites'] !== false ? ' checked="checked"' : '' ?> "/>
<?= _t('conf.archiving.keep_favourites') ?>
</label>
</div>
@@ -88,8 +84,7 @@
<div class="group-controls">
<label class="checkbox" for="keep_labels">
<input type="checkbox" name="keep_labels" id="keep_labels" value="1"<?=
- FreshRSS_Context::userConf()->archiving['keep_labels'] !== false ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->archiving['keep_labels'] !== false ? 1 : 0 ?>"/>
+ FreshRSS_Context::userConf()->archiving['keep_labels'] !== false ? ' checked="checked"' : '' ?> />
<?= _t('conf.archiving.keep_labels') ?>
</label>
</div>
@@ -99,8 +94,7 @@
<div class="group-controls">
<label class="checkbox" for="keep_unreads">
<input type="checkbox" name="keep_unreads" id="keep_unreads" value="1"<?=
- FreshRSS_Context::userConf()->archiving['keep_unreads'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->archiving['keep_unreads'] ? 1 : 0 ?>"/>
+ FreshRSS_Context::userConf()->archiving['keep_unreads'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.archiving.keep_unreads') ?>
</label>
</div>
@@ -110,8 +104,7 @@
<div class="group-controls">
<label for="keep_min_default"><?= _t('conf.archiving.keep_min_by_feed') ?>
<input type="number" id="keep_min_default" name="keep_min_default" min="0" value="<?=
- FreshRSS_Context::userConf()->archiving['keep_min'] ?>"
- data-leave-validation="<?= FreshRSS_Context::userConf()->archiving['keep_min'] ?>">
+ FreshRSS_Context::userConf()->archiving['keep_min'] ?>" />
</label>
</div>
</div>
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 995d54006..27231c2f0 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -6,13 +6,13 @@
<main class="post">
<h1><?= _t('conf.display') ?></h1>
- <form method="post" action="<?= _url('configure', 'display') ?>">
+ <form method="post" action="<?= _url('configure', 'display') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<div class="form-group">
<label class="group-name" for="language"><?= _t('conf.display.language') ?></label>
<div class="group-controls">
- <select name="language" id="language" data-leave-validation="<?= FreshRSS_Context::userConf()->language ?>">
+ <select name="language" id="language">
<?php $languages = Minz_Translate::availableLanguages(); ?>
<?php foreach ($languages as $lang) { ?>
<option value="<?= $lang ?>"<?= FreshRSS_Context::userConf()->language === $lang ? ' selected="selected"' : '' ?>><?= _t('gen.lang.' . $lang) ?></option>
@@ -24,7 +24,7 @@
<div class="form-group">
<label class="group-name" for="timezone"><?= _t('conf.display.timezone') ?></label>
<div class="group-controls">
- <select name="timezone" id="timezone" data-leave-validation="<?= FreshRSS_Context::userConf()->timezone ?>">
+ <select name="timezone" id="timezone">
<?php
$timezones = array_merge([''], DateTimeZone::listIdentifiers());
if (!in_array(FreshRSS_Context::userConf()->timezone, $timezones, true)) {
@@ -53,8 +53,7 @@
} else {
$checked = '';
} ?>
- <input type="radio" name="theme" id="img-<?= $i ?>" <?= $checked ?> value="<?= $theme['id'] ?>"
- data-leave-validation="<?= (FreshRSS_Context::userConf()->theme === $theme['id']) ? 1 : 0 ?>" />
+ <input type="radio" name="theme" id="img-<?= $i ?>" <?= $checked ?> value="<?= $theme['id'] ?>" />
<li class="preview-container">
<div class="preview">
<img src="<?= Minz_Url::display('/themes/' . $theme['id'] . '/thumbs/original.png') ?>" loading="lazy" />
@@ -89,7 +88,7 @@
<?php $i++ ?>
<?php } ?>
<?php if (!$themeAvailable) {?>
- <input type="radio" name="theme" checked="checked" value="Origine" data-leave-validation="0" />
+ <input type="radio" name="theme" checked="checked" value="Origine" />
<li class="preview-container">
<div class="preview">
</div>
@@ -108,7 +107,7 @@
<div class="form-group">
<label class="group-name" for="darkMode"><?= _t('conf.display.darkMode') ?></label>
<div class="group-controls">
- <select name="darkMode" id="darkMode" data-leave-validation="<?= FreshRSS_Context::userConf()->darkMode ?>">
+ <select name="darkMode" id="darkMode">
<option value="no"<?= FreshRSS_Context::userConf()->darkMode === 'no' ? ' selected' : '' ?>><?= _t('conf.display.darkMode.no') ?></option>
<option value="auto"<?= FreshRSS_Context::userConf()->darkMode === 'auto' ? ' selected' : '' ?>><?= _t('conf.display.darkMode.auto') ?></option>
</select>
@@ -120,7 +119,7 @@
<div class="form-group">
<label class="group-name" for="content_width"><?= _t('conf.display.width.content') ?></label>
<div class="group-controls">
- <select name="content_width" id="content_width" required="" data-leave-validation="<?= $width ?>">
+ <select name="content_width" id="content_width" required="">
<option value="thin" <?= $width === 'thin' ? 'selected="selected"' : '' ?>>
<?= _t('conf.display.width.thin') ?>
</option>
@@ -141,7 +140,7 @@
<div class="form-group">
<label class="group-name" for="topline_website"><?= _t('conf.display.website.label') ?></label>
<div class="group-controls">
- <select name="topline_website" id="topline_website" required="" data-leave-validation="<?= $topline_website ?>">
+ <select name="topline_website" id="topline_website" required="">
<option value="none" <?= $topline_website === 'none' ? 'selected="selected"' : '' ?>>
<?= _t('conf.display.website.none') ?>
</option>
@@ -162,7 +161,7 @@
<div class="form-group">
<label class="group-name" for="topline_thumbnail"><?= _t('conf.display.thumbnail.label') ?></label>
<div class="group-controls">
- <select name="topline_thumbnail" id="topline_thumbnail" required="" data-leave-validation="<?= $topline_thumbnail ?>">
+ <select name="topline_thumbnail" id="topline_thumbnail" required="">
<option value="none" <?= $topline_thumbnail === 'none' ? 'selected="selected"' : '' ?>>
<?= _t('conf.display.thumbnail.none') ?>
</option>
@@ -201,54 +200,39 @@
<tr>
<th><?= _t('conf.display.icon.top_line') ?></th>
<td><input type="checkbox" name="topline_read" value="1"<?=
- FreshRSS_Context::userConf()->topline_read ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_read ?>" /></td>
+ FreshRSS_Context::userConf()->topline_read ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="topline_favorite" value="1"<?=
- FreshRSS_Context::userConf()->topline_favorite ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_favorite ?>" /></td>
+ FreshRSS_Context::userConf()->topline_favorite ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="topline_myLabels" value="1"<?=
- FreshRSS_Context::userConf()->topline_myLabels ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_myLabels ?>" /></td>
+ FreshRSS_Context::userConf()->topline_myLabels ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" disabled="disabled" /></td>
<td><input type="checkbox" name="topline_sharing" value="1"<?=
- FreshRSS_Context::userConf()->topline_sharing ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_sharing ?>" /></td>
+ FreshRSS_Context::userConf()->topline_sharing ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="topline_summary" value="1"<?=
- FreshRSS_Context::userConf()->topline_summary ? 'checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_summary ?>" /></td>
+ FreshRSS_Context::userConf()->topline_summary ? 'checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="topline_display_authors" value="1"<?=
- FreshRSS_Context::userConf()->topline_display_authors ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_display_authors ?>" /></td>
+ FreshRSS_Context::userConf()->topline_display_authors ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="topline_date" value="1"<?=
- FreshRSS_Context::userConf()->topline_date ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_date ?>" /></td>
- <td><input type="checkbox" name="topline_link" value="1"<?= FreshRSS_Context::userConf()->topline_link ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->topline_link ?>" /></td>
+ FreshRSS_Context::userConf()->topline_date ? ' checked="checked"' : '' ?> /></td>
+ <td><input type="checkbox" name="topline_link" value="1"<?= FreshRSS_Context::userConf()->topline_link ? ' checked="checked"' : '' ?> /></td>
</tr><tr>
<th><?= _t('conf.display.icon.bottom_line') ?></th>
<td><input type="checkbox" name="bottomline_read" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_read ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_read ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_read ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="bottomline_favorite" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_favorite ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_favorite ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_favorite ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="bottomline_myLabels" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_myLabels ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_myLabels ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_myLabels ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="bottomline_tags" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_tags ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_tags ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_tags ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="bottomline_sharing" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_sharing ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_sharing ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_sharing ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" disabled="disabled" /></td>
<td><input type="checkbox" disabled="disabled" /></td>
<td><input type="checkbox" name="bottomline_date" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_date ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_date ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_date ? ' checked="checked"' : '' ?> /></td>
<td><input type="checkbox" name="bottomline_link" value="1"<?=
- FreshRSS_Context::userConf()->bottomline_link ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->bottomline_link ?>" /></td>
+ FreshRSS_Context::userConf()->bottomline_link ? ' checked="checked"' : '' ?> /></td>
</tr>
</tbody>
</table>
@@ -259,8 +243,7 @@
<label class="group-name" for="html5_notif_timeout"><?= _t('conf.display.notif_html5.timeout') ?></label>
<div class="group-controls">
<input type="number" id="html5_notif_timeout" name="html5_notif_timeout" value="<?=
- FreshRSS_Context::userConf()->html5_notif_timeout ?>"
- data-leave-validation="<?= FreshRSS_Context::userConf()->html5_notif_timeout ?>" /> <?= _t('conf.display.notif_html5.seconds') ?>
+ FreshRSS_Context::userConf()->html5_notif_timeout ?>" /> <?= _t('conf.display.notif_html5.seconds') ?>
</div>
</div>
@@ -268,8 +251,7 @@
<div class="group-controls">
<label class="checkbox" for="show_nav_buttons">
<input type="checkbox" name="show_nav_buttons" id="show_nav_buttons" value="1"<?=
- FreshRSS_Context::userConf()->show_nav_buttons ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->show_nav_buttons ?>" />
+ FreshRSS_Context::userConf()->show_nav_buttons ? ' checked="checked"' : '' ?> />
<?= _t('conf.display.show_nav_buttons') ?>
</label>
</div>
diff --git a/app/views/configure/integration.phtml b/app/views/configure/integration.phtml
index 8368f916b..c45533214 100644
--- a/app/views/configure/integration.phtml
+++ b/app/views/configure/integration.phtml
@@ -77,8 +77,7 @@
<?= _t('conf.sharing.share_name') ?>
</label>
<div class="group-controls">
- <input type="text" id="share_<?= $key ?>_name" name="share[<?= $key ?>][name]" value="<?= $share->name() ?>"
- data-leave-validation="<?= $share->name() ?>" />
+ <input type="text" id="share_<?= $key ?>_name" name="share[<?= $key ?>][name]" value="<?= $share->name() ?>" />
</div>
</div>
@@ -90,8 +89,7 @@
<div class="group-controls">
<div class="stick">
- <input type="url" id="share_<?= $key ?>_url" name="share[<?= $key ?>][url]" class="long" value="<?= $share->baseUrl() ?>"
- data-leave-validation="<?= $share->baseUrl() ?>" required />
+ <input type="url" id="share_<?= $key ?>_url" name="share[<?= $key ?>][url]" class="long" value="<?= $share->baseUrl() ?>" required="required" />
<a class="btn open-url" target="_blank" rel="noreferrer" href="<?= $share->baseUrl() ?>" title="<?= _t('gen.action.open_url') ?>" data-input="share_<?= $key ?>_url"><?= _i('link') ?></a>
</div>
<p class="help"><?= _i('help') ?> <a href="<?= $share->help() ?>" target="_blank" rel="noreferrer"><?= _t('conf.sharing.more_information') ?></a></p>
diff --git a/app/views/configure/privacy.phtml b/app/views/configure/privacy.phtml
index 6daf8a62b..b9bae1540 100644
--- a/app/views/configure/privacy.phtml
+++ b/app/views/configure/privacy.phtml
@@ -6,15 +6,14 @@
<main class="post">
<h1><?= _t('conf.privacy') ?></h1>
- <form method="post" action="<?= _url('configure', 'privacy') ?>">
+ <form method="post" action="<?= _url('configure', 'privacy') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<div class="form-group">
<label class="group-name" for="retrieve_extension_list"><?= _t('conf.privacy.retrieve_extension_list') ?></label>
<div class="group-controls">
<input type="checkbox" id="retrieve_extension_list" name="retrieve_extension_list" value="1"<?=
- FreshRSS_Context::userConf()->retrieve_extension_list !== false ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->retrieve_extension_list !== false ? 1 : 0 ?>"/>
+ FreshRSS_Context::userConf()->retrieve_extension_list !== false ? ' checked="checked"' : '' ?> />
</div>
</div>
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index c31cfda0b..e9a21839c 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -6,14 +6,14 @@
<main class="post">
<h1><?= _t('conf.reading') ?></h1>
- <form method="post" action="<?= _url('configure', 'reading') ?>">
+ <form method="post" action="<?= _url('configure', 'reading') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<fieldset>
<legend><?= _t('conf.reading.headline.view') ?></legend>
<div class="form-group">
<label class="group-name" for="view_mode"><?= _t('conf.reading.view.default') ?></label>
<div class="group-controls">
- <select name="view_mode" id="view_mode" data-leave-validation="<?= FreshRSS_Context::userConf()->view_mode ?>">
+ <select name="view_mode" id="view_mode">
<?php
/** @var FreshRSS_View $this */
/** @var list<FreshRSS_ViewMode>|null $viewModes */
@@ -34,7 +34,7 @@
<div class="form-group">
<label class="group-name" for="default_view"><?= _t('conf.reading.show') ?></label>
<div class="group-controls">
- <select name="default_view" id="default_view" data-leave-validation="<?= FreshRSS_Context::userConf()->default_view ?>">
+ <select name="default_view" id="default_view">
<option value="unread"<?= FreshRSS_Context::userConf()->default_view === 'unread' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.unread') ?></option>
<option value="adaptive"<?= FreshRSS_Context::userConf()->default_view === 'adaptive' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.adaptive') ?></option>
<option value="unread_or_favorite"<?= FreshRSS_Context::userConf()->default_view === 'unread_or_favorite' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.show.unread_or_favorite') ?></option>
@@ -47,8 +47,7 @@
<label class="group-name" for="posts_per_page"><?= _t('conf.reading.articles_per_page') ?></label>
<div class="group-controls">
<input type="number" id="posts_per_page" name="posts_per_page" value="<?=
- FreshRSS_Context::userConf()->posts_per_page ?>" min="5" max="500"
- data-leave-validation="<?= FreshRSS_Context::userConf()->posts_per_page ?>"/>
+ FreshRSS_Context::userConf()->posts_per_page ?>" min="5" max="500" />
<p class="help"><?= _i('help') ?> <?= _t('conf.reading.number_divided_when_reader') ?></p>
</div>
</div>
@@ -57,8 +56,7 @@
<div class="group-controls">
<label class="checkbox" for="auto_load_more">
<input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?=
- FreshRSS_Context::userConf()->auto_load_more ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->auto_load_more ?>"/>
+ FreshRSS_Context::userConf()->auto_load_more ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.auto_load_more') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -68,7 +66,7 @@
<div class="form-group">
<label class="group-name" for="mark_read_button"><?= _t('conf.mark_read_button') ?></label>
<div class="group-controls">
- <select name="mark_read_button" id="mark_read_button" data-leave-validation="<?= FreshRSS_Context::userConf()->mark_read_button ?>">
+ <select name="mark_read_button" id="mark_read_button">
<option value="big"<?= FreshRSS_Context::userConf()->mark_read_button === 'big' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.big') ?></option>
<option value="small"<?= FreshRSS_Context::userConf()->mark_read_button === 'small' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.small') ?></option>
<option value="none"<?= FreshRSS_Context::userConf()->mark_read_button === 'none' ? ' selected="selected"' : '' ?>><?= _t('conf.mark_read_button.none') ?></option>
@@ -79,7 +77,7 @@
<div class="form-group">
<label class="group-name" for="sort_order"><?= _t('conf.reading.sort') ?></label>
<div class="group-controls">
- <select name="sort_order" id="sort_order" data-leave-validation="<?= FreshRSS_Context::userConf()->sort_order ?>">
+ <select name="sort_order" id="sort_order">
<option value="DESC"<?= FreshRSS_Context::userConf()->sort_order === 'DESC' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.sort.newer_first') ?></option>
<option value="ASC"<?= FreshRSS_Context::userConf()->sort_order === 'ASC' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.sort.older_first') ?></option>
</select>
@@ -93,7 +91,7 @@
<div class="form-group">
<label class="group-name" for="display_categories"><?= _t('conf.reading.display_categories_unfolded') ?></label>
<div class="group-controls">
- <select name="display_categories" id="display_categories" data-leave-validation="<?= FreshRSS_Context::userConf()->display_categories ?>">
+ <select name="display_categories" id="display_categories">
<option value="active"<?= FreshRSS_Context::userConf()->display_categories === 'active' ? ' selected="selected"' : '' ?>><?=
_t('conf.reading.show.active_category') ?></option>
<option value="remember"<?= FreshRSS_Context::userConf()->display_categories === 'remember' ? ' selected="selected"' : '' ?>><?=
@@ -110,8 +108,7 @@
<div class="group-controls">
<label class="checkbox" for="show_fav_unread">
<input type="checkbox" name="show_fav_unread" id="show_fav_unread" value="1"<?=
- FreshRSS_Context::userConf()->show_fav_unread ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->show_fav_unread ?>"/>
+ FreshRSS_Context::userConf()->show_fav_unread ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.always_show_favorites') ?>
<p class="help"><?= _i('help') ?> <?= _t('conf.reading.show_fav_unread_help') ?></p>
</label>
@@ -122,8 +119,7 @@
<div class="group-controls">
<label class="checkbox" for="hide_read_feeds">
<input type="checkbox" name="hide_read_feeds" id="hide_read_feeds" value="1"<?=
- FreshRSS_Context::userConf()->hide_read_feeds ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->hide_read_feeds ?>"/>
+ FreshRSS_Context::userConf()->hide_read_feeds ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.hide_read_feeds') ?>
</label>
</div>
@@ -135,7 +131,7 @@
<div class="form-group">
<label class="group-name" for="show_feed_name"><?= _t('conf.reading.article.feed_title') ?></label>
<div class="group-controls">
- <select name="show_feed_name" id="show_feed_name" data-leave-validation="<?= FreshRSS_Context::userConf()->show_feed_name ?>">
+ <select name="show_feed_name" id="show_feed_name">
<option value="0"<?= FreshRSS_Context::userConf()->show_feed_name === '0' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.none') ?></option>
<option value="t"<?= FreshRSS_Context::userConf()->show_feed_name === 't' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.above_title') ?></option>
<option value="a"<?= FreshRSS_Context::userConf()->show_feed_name === 'a' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.feed_name.with_authors') ?></option>
@@ -146,7 +142,7 @@
<div class="form-group">
<label class="group-name" for="show_author_date"><?= _t('conf.reading.article.authors_date') ?></label>
<div class="group-controls">
- <select name="show_author_date" id="show_author_date" data-leave-validation="<?= FreshRSS_Context::userConf()->show_author_date ?>">
+ <select name="show_author_date" id="show_author_date">
<option value="0" <?= FreshRSS_Context::userConf()->show_author_date === '0' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.none') ?></option>
<option value="h" <?= FreshRSS_Context::userConf()->show_author_date === 'h' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.header') ?></option>
<option value="f" <?= FreshRSS_Context::userConf()->show_author_date === 'f' ? ' selected="selected"' : '' ?>><?= _t('conf.reading.article.authors_date.footer') ?></option>
@@ -157,7 +153,7 @@
<div class="form-group">
<label class="group-name" for="show_article_icons"><?= _t('conf.reading.article.icons') ?></label>
<div class="group-controls">
- <select name="show_article_icons" id="show_article_icons" data-leave-validation="<?= FreshRSS_Context::userConf()->show_article_icons ?>">
+ <select name="show_article_icons" id="show_article_icons">
<option value="t" <?= FreshRSS_Context::userConf()->show_article_icons === 't' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.icons.above_title') ?></option>
<option value="a" <?= FreshRSS_Context::userConf()->show_article_icons === 'a' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.icons.with_authors') ?></option>
</select>
@@ -166,7 +162,7 @@
<div class="form-group">
<label class="group-name" for="show_tags"><?= _t('conf.reading.article.tags') ?></label>
<div class="group-controls">
- <select class="select-input-changer" name="show_tags" id="show_tags" data-name="show_tags_max" data-leave-validation="<?= FreshRSS_Context::userConf()->show_tags ?>">
+ <select class="select-input-changer" name="show_tags" id="show_tags" data-name="show_tags_max">
<option value="0" <?= FreshRSS_Context::userConf()->show_tags === '0' ? ' selected="selected"' : '' ?> data-input-visible="false"><?= _t('conf.reading.article.tags.none') ?></option>
<option value="h" <?= FreshRSS_Context::userConf()->show_tags === 'h' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.tags.header') ?></option>
<option value="f" <?= FreshRSS_Context::userConf()->show_tags === 'f' ? ' selected="selected"' : '' ?> data-input-visible="true"><?= _t('conf.reading.article.tags.footer') ?></option>
@@ -178,7 +174,7 @@
<div class="form-group" id="show_tags_max-block">
<label class="group-name" for="show_tags_max"><?= _t('conf.reading.article.tags_max') ?></label>
<div class="group-controls">
- <input type="number" id="show_tags_max" name="show_tags_max" value="<?= FreshRSS_Context::userConf()->show_tags_max ?>" min="0" data-leave-validation="<?= FreshRSS_Context::userConf()->show_tags_max ?>" data-number="2" />
+ <input type="number" id="show_tags_max" name="show_tags_max" value="<?= FreshRSS_Context::userConf()->show_tags_max ?>" min="0" data-number="2" />
<p class="help"><?= _i('help') ?> <?= _t('conf.reading.article.tags_max.help') ?></p>
</div>
</div>
@@ -190,8 +186,7 @@
<div class="group-controls">
<label class="checkbox" for="display_posts">
<input type="checkbox" name="display_posts" id="display_posts" value="1"<?=
- FreshRSS_Context::userConf()->display_posts ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->display_posts ?>"/>
+ FreshRSS_Context::userConf()->display_posts ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.display_articles_unfolded') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -202,8 +197,7 @@
<div class="group-controls">
<label class="checkbox" for="sticky_post">
<input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?=
- FreshRSS_Context::userConf()->sticky_post ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->sticky_post ?>"/>
+ FreshRSS_Context::userConf()->sticky_post ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.sticky_post') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -214,8 +208,7 @@
<div class="group-controls">
<label class="checkbox" for="sides_close_article">
<input type="checkbox" name="sides_close_article" id="sides_close_article" value="1"<?=
- FreshRSS_Context::userConf()->sides_close_article ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->sides_close_article ?>"/>
+ FreshRSS_Context::userConf()->sides_close_article ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.sides_close_article') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -229,8 +222,7 @@
<div class="group-controls">
<label class="checkbox" for="auto_remove_article">
<input type="checkbox" name="auto_remove_article" id="auto_remove_article" value="1"<?=
- FreshRSS_Context::userConf()->auto_remove_article ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->auto_remove_article ?>"/>
+ FreshRSS_Context::userConf()->auto_remove_article ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.auto_remove_article') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -241,8 +233,7 @@
<div class="group-controls">
<label class="checkbox" for="reading_confirm">
<input type="checkbox" name="reading_confirm" id="reading_confirm" value="1"<?=
- FreshRSS_Context::userConf()->reading_confirm ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->reading_confirm ?>"/>
+ FreshRSS_Context::userConf()->reading_confirm ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.confirm_enabled') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
@@ -254,8 +245,7 @@
<div class="group-controls">
<label class="checkbox" for="onread_jump_next">
<input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?=
- FreshRSS_Context::userConf()->onread_jump_next ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->onread_jump_next ?>"/>
+ FreshRSS_Context::userConf()->onread_jump_next ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.jump_next') ?>
</label>
</div>
@@ -266,8 +256,7 @@
<div class="group-controls">
<label class="checkbox" for="check_open_article">
<input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['article'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['article'] ?>"/>
+ FreshRSS_Context::userConf()->mark_when['article'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.article_viewed') ?>
</label>
</div>
@@ -278,8 +267,7 @@
<div class="group-controls">
<label class="checkbox" for="check_open_site">
<input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['site'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['site'] ?>"/>
+ FreshRSS_Context::userConf()->mark_when['site'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.article_open_on_website') ?>
</label>
</div>
@@ -290,8 +278,7 @@
<div class="group-controls">
<label class="checkbox" for="check_scroll">
<input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['scroll'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['scroll'] ?>"/>
+ FreshRSS_Context::userConf()->mark_when['scroll'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.scroll') ?>
</label>
</div>
@@ -302,8 +289,7 @@
<div class="group-controls">
<label class="checkbox" for="check_focus">
<input type="checkbox" name="mark_focus" id="check_focus" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['focus'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['focus'] ?>" />
+ FreshRSS_Context::userConf()->mark_when['focus'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.focus') ?>
</label>
</div>
@@ -316,8 +302,7 @@
<div class="group-controls">
<label class="checkbox" for="mark_updated_article_unread">
<input type="checkbox" name="mark_updated_article_unread" id="mark_updated_article_unread" value="1"<?=
- FreshRSS_Context::userConf()->mark_updated_article_unread ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_updated_article_unread ?>"/>
+ FreshRSS_Context::userConf()->mark_updated_article_unread ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.mark_updated_article_unread') ?>
</label>
</div>
@@ -328,12 +313,11 @@
<div class="group-controls">
<label class="checkbox" for="enable_read_when_same_title_in_feed">
<input type="checkbox" name="enable_read_when_same_title_in_feed" id="enable_read_when_same_title_in_feed" value="1"<?=
- empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? '' : ' checked="checked"' ?>
- data-leave-validation="<?= empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? 0 : 1 ?>"/>
+ empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? '' : ' checked="checked"' ?> />
<?= _t('conf.reading.read.when_same_title_in_feed') ?>
<?php $read_when_same_title_in_feed = empty(FreshRSS_Context::userConf()->mark_when['same_title_in_feed']) ? 25 : FreshRSS_Context::userConf()->mark_when['same_title_in_feed']; ?>
<input type="number" id="read_when_same_title_in_feed" name="read_when_same_title_in_feed" min="0"
- value="<?= $read_when_same_title_in_feed ?>" data-leave-validation="<?= $read_when_same_title_in_feed ?>" />
+ value="<?= $read_when_same_title_in_feed ?>" />
</label>
</div>
</div>
@@ -343,8 +327,7 @@
<div class="group-controls">
<label class="checkbox" for="mark_upon_reception">
<input type="checkbox" name="mark_upon_reception" id="mark_upon_reception" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['reception'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['reception'] ?>"/>
+ FreshRSS_Context::userConf()->mark_when['reception'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.upon_reception') ?>
</label>
</div>
@@ -355,8 +338,7 @@
<div class="group-controls">
<label class="checkbox" for="read_upon_gone">
<input type="checkbox" name="read_upon_gone" id="read_upon_gone" value="1"<?=
- FreshRSS_Context::userConf()->mark_when['gone'] ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->mark_when['gone'] ?>"/>
+ FreshRSS_Context::userConf()->mark_when['gone'] ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.read.upon_gone') ?>
</label>
</div>
@@ -390,11 +372,10 @@
<div class="group-controls">
<label class="checkbox" for="keep_max_n_unread">
<input type="checkbox" name="enable_keep_max_n_unread" id="enable_keep_max_n_unread" value="1"<?=
- empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? '' : ' checked="checked"' ?>
- data-leave-validation="<?= empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? 0 : 1 ?>"/>
+ empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? '' : ' checked="checked"' ?> />
<?= _t('conf.reading.read.keep_max_n_unread') ?>
<?php $keep_max_n_unread = empty(FreshRSS_Context::userConf()->mark_when['max_n_unread']) ? 1000 : FreshRSS_Context::userConf()->mark_when['max_n_unread']; ?>
- <input type="number" id="keep_max_n_unread" name="keep_max_n_unread" min="0" value="<?= $keep_max_n_unread ?>" data-leave-validation="<?= $keep_max_n_unread ?>" />
+ <input type="number" id="keep_max_n_unread" name="keep_max_n_unread" min="0" value="<?= $keep_max_n_unread ?>" />
</label>
</div>
</div>
@@ -406,8 +387,7 @@
<div class="group-controls">
<label class="checkbox" for="lazyload">
<input type="checkbox" name="lazyload" id="lazyload" value="1"<?=
- FreshRSS_Context::userConf()->lazyload ? ' checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::userConf()->lazyload ?>"/>
+ FreshRSS_Context::userConf()->lazyload ? ' checked="checked"' : '' ?> />
<?= _t('conf.reading.img_with_lazyload') ?>
<noscript> — <strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
</label>
diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml
index 2e9a4fa8c..d70a7ffef 100644
--- a/app/views/configure/shortcut.phtml
+++ b/app/views/configure/shortcut.phtml
@@ -22,7 +22,7 @@
</p>
<?php endif; ?>
- <form method="post" action="<?= _url('configure', 'shortcut') ?>">
+ <form method="post" action="<?= _url('configure', 'shortcut') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<noscript><p class="alert alert-error"><?= _t('conf.shortcut.javascript') ?></p></noscript>
@@ -33,24 +33,21 @@
<div class="form-group">
<label class="group-name" for="normal_view_shortcut"><?= _t('conf.shortcut.normal_view') ?></label>
<div class="group-controls">
- <input type="text" id="normal_view_shortcut" name="shortcuts[normal_view]" list="keys" value="<?= $s['normal_view'] ?>"
- data-leave-validation="<?= $s['normal_view'] ?>"/>
+ <input type="text" id="normal_view_shortcut" name="shortcuts[normal_view]" list="keys" value="<?= $s['normal_view'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="global_view_shortcut"><?= _t('conf.shortcut.global_view') ?></label>
<div class="group-controls">
- <input type="text" id="global_view_shortcut" name="shortcuts[global_view]" list="keys" value="<?= $s['global_view'] ?>"
- data-leave-validation="<?= $s['global_view'] ?>"/>
+ <input type="text" id="global_view_shortcut" name="shortcuts[global_view]" list="keys" value="<?= $s['global_view'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="reading_view_shortcut"><?= _t('conf.shortcut.reading_view') ?></label>
<div class="group-controls">
- <input type="text" id="reading_view_shortcut" name="shortcuts[reading_view]" list="keys" value="<?= $s['reading_view'] ?>"
- data-leave-validation="<?= $s['reading_view'] ?>"/>
+ <input type="text" id="reading_view_shortcut" name="shortcuts[reading_view]" list="keys" value="<?= $s['reading_view'] ?>" />
</div>
</div>
</fieldset>
@@ -63,40 +60,35 @@
<div class="form-group">
<label class="group-name" for="next_entry"><?= _t('conf.shortcut.next_article') ?></label>
<div class="group-controls">
- <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?= $s['next_entry'] ?>"
- data-leave-validation="<?= $s['next_entry'] ?>"/>
+ <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?= $s['next_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="next_unread_entry"><?= _t('conf.shortcut.next_unread_article') ?></label>
<div class="group-controls">
- <input type="text" id="next_unread_entry" name="shortcuts[next_unread_entry]" list="keys" value="<?= $s['next_unread_entry'] ?>"
- data-leave-validation="<?= $s['next_unread_entry'] ?>"/>
+ <input type="text" id="next_unread_entry" name="shortcuts[next_unread_entry]" list="keys" value="<?= $s['next_unread_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="prev_entry"><?= _t('conf.shortcut.previous_article') ?></label>
<div class="group-controls">
- <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?= $s['prev_entry'] ?>"
- data-leave-validation="<?= $s['prev_entry'] ?>"/>
+ <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?= $s['prev_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="first_entry"><?= _t('conf.shortcut.first_article') ?></label>
<div class="group-controls">
- <input type="text" id="first_entry" name="shortcuts[first_entry]" list="keys" value="<?= $s['first_entry'] ?>"
- data-leave-validation="<?= $s['first_entry'] ?>"/>
+ <input type="text" id="first_entry" name="shortcuts[first_entry]" list="keys" value="<?= $s['first_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="last_entry"><?= _t('conf.shortcut.last_article') ?></label>
<div class="group-controls">
- <input type="text" id="last_entry" name="shortcuts[last_entry]" list="keys" value="<?= $s['last_entry'] ?>"
- data-leave-validation="<?= $s['last_entry'] ?>"/>
+ <input type="text" id="last_entry" name="shortcuts[last_entry]" list="keys" value="<?= $s['last_entry'] ?>" />
</div>
</div>
@@ -105,16 +97,14 @@
<div class="form-group">
<label class="group-name" for="skip_next_entry"><?= _t('conf.shortcut.skip_next_article') ?></label>
<div class="group-controls">
- <input type="text" id="skip_next_entry" name="shortcuts[skip_next_entry]" list="keys" value="<?= $s['skip_next_entry'] ?>"
- data-leave-validation="<?= $s['skip_next_entry'] ?>"/>
+ <input type="text" id="skip_next_entry" name="shortcuts[skip_next_entry]" list="keys" value="<?= $s['skip_next_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="skip_prev_entry"><?= _t('conf.shortcut.skip_previous_article') ?></label>
<div class="group-controls">
- <input type="text" id="skip_prev_entry" name="shortcuts[skip_prev_entry]" list="keys" value="<?= $s['skip_prev_entry'] ?>"
- data-leave-validation="<?= $s['skip_prev_entry'] ?>"/>
+ <input type="text" id="skip_prev_entry" name="shortcuts[skip_prev_entry]" list="keys" value="<?= $s['skip_prev_entry'] ?>" />
</div>
</div>
</fieldset>
@@ -126,8 +116,7 @@
<p class="alert alert-warn"><?= _t('conf.shortcut.shift_for_all_read') ?></p>
<label class="group-name" for="mark_read"><?= _t('conf.shortcut.mark_read') ?></label>
<div class="group-controls">
- <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?= $s['mark_read'] ?>"
- data-leave-validation="<?= $s['mark_read'] ?>"/>
+ <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?= $s['mark_read'] ?>" />
</div>
</div>
@@ -136,24 +125,21 @@
<div class="form-group">
<label class="group-name" for="mark_favorite"><?= _t('conf.shortcut.mark_favorite') ?></label>
<div class="group-controls">
- <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?= $s['mark_favorite'] ?>"
- data-leave-validation="<?= $s['mark_favorite'] ?>"/>
+ <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?= $s['mark_favorite'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="go_website"><?= _t('conf.shortcut.see_on_website') ?></label>
<div class="group-controls">
- <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?= $s['go_website'] ?>"
- data-leave-validation="<?= $s['go_website'] ?>"/>
+ <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?= $s['go_website'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="auto_share_shortcut"><?= _t('conf.shortcut.auto_share') ?></label>
<div class="group-controls">
- <input type="text" id="auto_share_shortcut" name="shortcuts[auto_share]" list="keys" value="<?= $s['auto_share'] ?>"
- data-leave-validation="<?= $s['auto_share'] ?>"/>
+ <input type="text" id="auto_share_shortcut" name="shortcuts[auto_share]" list="keys" value="<?= $s['auto_share'] ?>" />
<p class="help"><?= _i('help') ?> <?= _t('conf.shortcut.auto_share_help') ?></p>
</div>
</div>
@@ -161,24 +147,21 @@
<div class="form-group">
<label class="group-name" for="mylabels_shortcut"><?= _t('index.menu.mylabels') ?></label>
<div class="group-controls">
- <input type="text" id="mylabels_shortcut" name="shortcuts[mylabels]" list="keys" value="<?= $s['mylabels'] ?>"
- data-leave-validation="<?= $s['mylabels'] ?>"/>
+ <input type="text" id="mylabels_shortcut" name="shortcuts[mylabels]" list="keys" value="<?= $s['mylabels'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="collapse_entry"><?= _t('conf.shortcut.collapse_article') ?></label>
<div class="group-controls">
- <input type="text" id="collapse_entry" name="shortcuts[collapse_entry]" list="keys" value="<?= $s['collapse_entry'] ?>"
- data-leave-validation="<?= $s['collapse_entry'] ?>"/>
+ <input type="text" id="collapse_entry" name="shortcuts[collapse_entry]" list="keys" value="<?= $s['collapse_entry'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="toggle_media"><?= _t('conf.shortcut.toggle_media') ?></label>
<div class="group-controls">
- <input type="text" id="toggle_media" name="shortcuts[toggle_media]" list="keys" value="<?= $s['toggle_media'] ?>"
- data-leave-validation="<?= $s['toggle_media'] ?>"/>
+ <input type="text" id="toggle_media" name="shortcuts[toggle_media]" list="keys" value="<?= $s['toggle_media'] ?>" />
</div>
</div>
</fieldset>
@@ -189,32 +172,28 @@
<div class="form-group">
<label class="group-name" for="actualize"><?= _t('gen.action.actualize') ?></label>
<div class="group-controls">
- <input type="text" id="actualize" name="shortcuts[actualize]" list="keys" value="<?= $s['actualize'] ?>"
- data-leave-validation="<?= $s['actualize'] ?>" />
+ <input type="text" id="actualize" name="shortcuts[actualize]" list="keys" value="<?= $s['actualize'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="load_more_shortcut"><?= _t('conf.shortcut.load_more') ?></label>
<div class="group-controls">
- <input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?= $s['load_more'] ?>"
- data-leave-validation="<?= $s['load_more'] ?>"/>
+ <input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?= $s['load_more'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="focus_search_shortcut"><?= _t('conf.shortcut.focus_search') ?></label>
<div class="group-controls">
- <input type="text" id="focus_search_shortcut" name="shortcuts[focus_search]" list="keys" value="<?= $s['focus_search'] ?>"
- data-leave-validation="<?= $s['focus_search'] ?>"/>
+ <input type="text" id="focus_search_shortcut" name="shortcuts[focus_search]" list="keys" value="<?= $s['focus_search'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="user_filter_shortcut"><?= _t('conf.shortcut.user_filter') ?></label>
<div class="group-controls">
- <input type="text" id="user_filter_shortcut" name="shortcuts[user_filter]" list="keys" value="<?= $s['user_filter'] ?>"
- data-leave-validation="<?= $s['user_filter'] ?>"/>
+ <input type="text" id="user_filter_shortcut" name="shortcuts[user_filter]" list="keys" value="<?= $s['user_filter'] ?>" />
<p class="help"><?= _i('help') ?> <?= _t('conf.shortcut.user_filter_help') ?></p>
</div>
</div>
@@ -222,16 +201,14 @@
<div class="form-group">
<label class="group-name" for="close_dropdown_shortcut"><?= _t('conf.shortcut.close_dropdown') ?></label>
<div class="group-controls">
- <input type="text" id="close_dropdown" name="shortcuts[close_dropdown]" list="keys" value="<?= $s['close_dropdown'] ?>"
- data-leave-validation="<?= $s['close_dropdown'] ?>"/>
+ <input type="text" id="close_dropdown" name="shortcuts[close_dropdown]" list="keys" value="<?= $s['close_dropdown'] ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="help_shortcut"><?= _t('conf.shortcut.help') ?></label>
<div class="group-controls">
- <input type="text" id="help_shortcut" name="shortcuts[help]" list="keys" value="<?= $s['help'] ?>"
- data-leave-validation="<?= $s['help'] ?>"/>
+ <input type="text" id="help_shortcut" name="shortcuts[help]" list="keys" value="<?= $s['help'] ?>" />
</div>
</div>
</fieldset>
diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml
index 60c5b5362..6269b5c95 100644
--- a/app/views/configure/system.phtml
+++ b/app/views/configure/system.phtml
@@ -6,22 +6,20 @@
<main class="post">
<h1><?= _t('admin.system') ?></h1>
- <form method="post" action="<?= _url('configure', 'system') ?>">
+ <form method="post" action="<?= _url('configure', 'system') ?>" data-auto-leave-validation="1">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<div class="form-group">
<label class="group-name" for="instance-name"><?= _t('admin.system.instance-name') ?></label>
<div class="group-controls">
- <input type="text" id="instance-name" name="instance-name" value="<?= FreshRSS_Context::systemConf()->title ?>"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->title ?>"/>
+ <input type="text" id="instance-name" name="instance-name" value="<?= FreshRSS_Context::systemConf()->title ?>" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="base-url"><?= _t('admin.system.base-url') ?></label>
<div class="group-controls">
- <input type="text" id="base-url" name="base-url" value="<?= FreshRSS_Context::systemConf()->base_url ?>"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->base_url ?>" readonly="readonly" />
+ <input type="text" id="base-url" name="base-url" value="<?= FreshRSS_Context::systemConf()->base_url ?>" readonly="readonly" />
<p class="help"><?= _i('help') ?> <?= _t('admin.system.base-url.recommendation', dirname(Minz_Request::guessBaseUrl())) ?></p>
<p class="help"><?= _i('help') ?> <?= _t('admin.system.sensitive-parameter') ?></p>
</div>
@@ -47,24 +45,21 @@
<div class="form-group">
<label class="group-name" for="max-feeds"><?= _t('admin.system.max-feeds') ?></label>
<div class="group-controls">
- <input type="number" id="max-feeds" name="max-feeds" value="<?= FreshRSS_Context::systemConf()->limits['max_feeds'] ?>" min="1"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->limits['max_feeds'] ?>"/>
+ <input type="number" id="max-feeds" name="max-feeds" value="<?= FreshRSS_Context::systemConf()->limits['max_feeds'] ?>" min="1" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="max-categories"><?= _t('admin.system.max-categories') ?></label>
<div class="group-controls">
- <input type="number" id="max-categories" name="max-categories" value="<?= FreshRSS_Context::systemConf()->limits['max_categories'] ?>" min="1"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->limits['max_categories'] ?>"/>
+ <input type="number" id="max-categories" name="max-categories" value="<?= FreshRSS_Context::systemConf()->limits['max_categories'] ?>" min="1" />
</div>
</div>
<div class="form-group">
<label class="group-name" for="cookie-duration"><?= _t('admin.system.cookie-duration.number') ?></label>
<div class="group-controls">
- <input type="number" id="cookie-duration" name="cookie-duration" value="<?= FreshRSS_Context::systemConf()->limits['cookie_duration'] ?>" min="0"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->limits['cookie_duration'] ?>"/>
+ <input type="number" id="cookie-duration" name="cookie-duration" value="<?= FreshRSS_Context::systemConf()->limits['cookie_duration'] ?>" min="0" />
<p class="help"><?= _i('help') ?> <?= _t('admin.system.cookie-duration.help') ?></p>
</div>
</div>
@@ -86,8 +81,7 @@
<label class="group-name" for="max-registrations-input"><?= _t('admin.system.registration.number') ?></label>
<div class="group-controls">
<?php $number = count(listUsers()); ?>
- <input type="number" id="max-registrations-input" name="" value="<?= FreshRSS_Context::systemConf()->limits['max_registrations'] > 1 ? FreshRSS_Context::systemConf()->limits['max_registrations'] : $number + 1; ?>" min="2"
- data-leave-validation="<?= FreshRSS_Context::systemConf()->limits['max_registrations'] > 1 ? FreshRSS_Context::systemConf()->limits['max_registrations'] : $number + 1; ?>" data-number="<?= $number ?>"/>
+ <input type="number" id="max-registrations-input" name="" value="<?= FreshRSS_Context::systemConf()->limits['max_registrations'] > 1 ? FreshRSS_Context::systemConf()->limits['max_registrations'] : $number + 1; ?>" min="2" data-number="<?= $number ?>"/>
<span id="max-registrations-status-disabled">(= <?= _t('admin.system.registration.status.disabled') ?>)</span><span id="max-registrations-status-enabled">(= <?= _t('admin.system.registration.status.enabled') ?>)</span>
</div>
</div>
@@ -120,7 +114,6 @@
id="force-email-validation"
value="1"
<?= FreshRSS_Context::systemConf()->force_email_validation ? 'checked="checked"' : '' ?>
- data-leave-validation="<?= FreshRSS_Context::systemConf()->force_email_validation ?>"
/>
<?= _t('admin.system.force_email_validation') ?>
</label>