diff options
Diffstat (limited to 'app/views/configure/display.phtml')
| -rw-r--r-- | app/views/configure/display.phtml | 70 |
1 files changed, 26 insertions, 44 deletions
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> |
