1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/app/views/configure/shortcut.phtml

136 lines
6.3 KiB
PHTML
Raw Normal View History

2015-02-08 18:55:48 +01:00
<?php $this->partial('aside_configure'); ?>
2014-07-23 15:52:50 +02:00
<div class="post">
2015-02-08 18:55:48 +01:00
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
2014-07-23 15:52:50 +02:00
<datalist id="keys">
<?php foreach ($this->list_keys as $key) { ?>
<option value="<?php echo $key; ?>">
<?php } ?>
</datalist>
2015-02-08 18:55:48 +01:00
<?php $s = FreshRSS_Context::$user_conf->shortcuts; ?>
2014-07-23 15:52:50 +02:00
2015-02-08 18:55:48 +01:00
<form method="post" action="<?php echo _url('configure', 'shortcut'); ?>">
<legend><?php echo _t('conf.shortcut'); ?></legend>
2014-07-23 15:52:50 +02:00
2015-02-08 18:55:48 +01:00
<noscript><p class="alert alert-error"><?php echo _t('conf.shortcut.javascript'); ?></p></noscript>
2014-07-23 15:52:50 +02:00
2015-02-08 18:55:48 +01:00
<legend><?php echo _t('conf.shortcut.navigation'); ?></legend>
<p class="alert alert-warn"><?php echo _t('conf.shortcut.navigation_help');?></p>
2014-07-23 15:52:50 +02:00
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="next_entry"><?php echo _t('conf.shortcut.next_article'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" data-leave-validation="<?php echo $s['next_entry']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="prev_entry"><?php echo _t('conf.shortcut.previous_article'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" data-leave-validation="<?php echo $s['prev_entry']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="first_entry"><?php echo _t('conf.shortcut.first_article'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="first_entry" name="shortcuts[first_entry]" list="keys" value="<?php echo $s['first_entry']; ?>" data-leave-validation="<?php echo $s['first_entry']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="last_entry"><?php echo _t('conf.shortcut.last_article'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="last_entry" name="shortcuts[last_entry]" list="keys" value="<?php echo $s['last_entry']; ?>" data-leave-validation="<?php echo $s['last_entry']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
2015-02-08 18:55:48 +01:00
<legend><?php echo _t('conf.shortcut.article_action');?></legend>
2014-07-23 15:52:50 +02:00
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="mark_read"><?php echo _t('conf.shortcut.mark_read'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" data-leave-validation="<?php echo $s['mark_read']; ?>"/>
2015-02-08 18:55:48 +01:00
<?php echo _t('conf.shortcut.shift_for_all_read'); ?>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="mark_favorite"><?php echo _t('conf.shortcut.mark_favorite'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" data-leave-validation="<?php echo $s['mark_favorite']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="go_website"><?php echo _t('conf.shortcut.see_on_website'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" data-leave-validation="<?php echo $s['go_website']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="auto_share_shortcut"><?php echo _t('conf.shortcut.auto_share'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="auto_share_shortcut" name="shortcuts[auto_share]" list="keys" value="<?php echo $s['auto_share']; ?>" data-leave-validation="<?php echo $s['auto_share']; ?>"/>
2015-02-08 18:55:48 +01:00
<?php echo _t('conf.shortcut.auto_share_help'); ?>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="collapse_entry"><?php echo _t('conf.shortcut.collapse_article'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="collapse_entry" name="shortcuts[collapse_entry]" list="keys" value="<?php echo $s['collapse_entry']; ?>" data-leave-validation="<?php echo $s['collapse_entry']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
2015-02-08 18:55:48 +01:00
<legend><?php echo _t('conf.shortcut.other_action');?></legend>
2014-07-23 15:52:50 +02:00
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="load_more_shortcut"><?php echo _t('conf.shortcut.load_more'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?php echo $s['load_more']; ?>" data-leave-validation="<?php echo $s['load_more']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="focus_search_shortcut"><?php echo _t('conf.shortcut.focus_search'); ?></label>
2014-07-23 15:52:50 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="focus_search_shortcut" name="shortcuts[focus_search]" list="keys" value="<?php echo $s['focus_search']; ?>" data-leave-validation="<?php echo $s['focus_search']; ?>"/>
2014-07-23 15:52:50 +02:00
</div>
</div>
2014-09-27 10:10:43 +02:00
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="user_filter_shortcut"><?php echo _t('conf.shortcut.user_filter'); ?></label>
2014-09-27 10:10:43 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="user_filter_shortcut" name="shortcuts[user_filter]" list="keys" value="<?php echo $s['user_filter']; ?>" data-leave-validation="<?php echo $s['user_filter']; ?>"/>
2015-02-08 18:55:48 +01:00
<?php echo _t('conf.shortcut.user_filter_help'); ?>
</div>
</div>
<div class="form-group">
<label class="group-name" for="close_dropdown_shortcut"><?php echo _t('conf.shortcut.close_dropdown'); ?></label>
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="close_dropdown" name="shortcuts[close_dropdown]" list="keys" value="<?php echo $s['close_dropdown']; ?>" data-leave-validation="<?php echo $s['close_dropdown']; ?>"/>
2014-09-27 10:10:43 +02:00
</div>
</div>
<div class="form-group">
2015-02-08 18:55:48 +01:00
<label class="group-name" for="help_shortcut"><?php echo _t('conf.shortcut.help'); ?></label>
2014-09-27 10:10:43 +02:00
<div class="group-controls">
2015-11-06 16:54:20 +01:00
<input type="text" id="help_shortcut" name="shortcuts[help]" list="keys" value="<?php echo $s['help']; ?>" data-leave-validation="<?php echo $s['help']; ?>"/>
2014-09-27 10:10:43 +02:00
</div>
</div>
2014-07-23 15:52:50 +02:00
<div class="form-group form-actions">
<div class="group-controls">
2015-02-08 18:55:48 +01:00
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
<button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
2014-07-23 15:52:50 +02:00
</div>
</div>
</form>
</div>