summaryrefslogtreecommitdiff
path: root/app/views/configure/shortcut.phtml
blob: 70a274edd4ed4e94d2e2cf8ba08b41eb146c8a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php $this->partial('aside_configure'); ?>

<div class="post">
	<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>

	<datalist id="keys">
		<?php foreach ($this->list_keys as $key) { ?>
		<option value="<?php echo $key; ?>">
		<?php } ?>
	</datalist>

	<?php $s = FreshRSS_Context::$user_conf->shortcuts; ?>

	<form method="post" action="<?php echo _url('configure', 'shortcut'); ?>">
		<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
		<legend><?php echo _t('conf.shortcut'); ?></legend>

		<noscript><p class="alert alert-error"><?php echo _t('conf.shortcut.javascript'); ?></p></noscript>

		<legend><?php echo _t('conf.shortcut.views'); ?></legend>

		<div class="form-group">
			<label class="group-name" for="normal_view_shortcut"><?php echo _t('conf.shortcut.normal_view'); ?></label>
			<div class="group-controls">
			    <input type="text" id="normal_view_shortcut" name="shortcuts[normal_view]" list="keys" value="<?php echo $s['normal_view']; ?>" data-leave-validation="<?php echo $s['normal_view']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="global_view_shortcut"><?php echo _t('conf.shortcut.global_view'); ?></label>
			<div class="group-controls">
			    <input type="text" id="global_view_shortcut" name="shortcuts[global_view]" list="keys" value="<?php echo $s['global_view']; ?>" data-leave-validation="<?php echo $s['global_view']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="reading_view_shortcut"><?php echo _t('conf.shortcut.reading_view'); ?></label>
			<div class="group-controls">
			    <input type="text" id="reading_view_shortcut" name="shortcuts[reading_view]" list="keys" value="<?php echo $s['reading_view']; ?>" data-leave-validation="<?php echo $s['reading_view']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="rss_view_shortcut"><?php echo _t('conf.shortcut.rss_view'); ?></label>
			<div class="group-controls">
			    <input type="text" id="rss_view_shortcut" name="shortcuts[rss_view]" list="keys" value="<?php echo $s['rss_view']; ?>" data-leave-validation="<?php echo $s['rss_view']; ?>"/>
			</div>
		</div>

		<legend><?php echo _t('conf.shortcut.navigation'); ?></legend>

		<p class="alert alert-warn"><?php echo _t('conf.shortcut.navigation_help');?></p>

		<div class="form-group">
			<label class="group-name" for="next_entry"><?php echo _t('conf.shortcut.next_article'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="prev_entry"><?php echo _t('conf.shortcut.previous_article'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<p class="alert alert-warn"><?php echo _t('conf.shortcut.navigation_no_mod_help');?></p>

		<div class="form-group">
			<label class="group-name" for="skip_next_entry"><?php echo _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="<?php echo $s['skip_next_entry']; ?>" data-leave-validation="<?php echo $s['skip_next_entry']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="skip_prev_entry"><?php echo _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="<?php echo $s['skip_prev_entry']; ?>" data-leave-validation="<?php echo $s['skip_prev_entry']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="first_entry"><?php echo _t('conf.shortcut.first_article'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="last_entry"><?php echo _t('conf.shortcut.last_article'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<legend><?php echo _t('conf.shortcut.article_action');?></legend>

		<div class="form-group">
			<label class="group-name" for="mark_read"><?php echo _t('conf.shortcut.mark_read'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
				<?php echo _t('conf.shortcut.shift_for_all_read'); ?>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="mark_favorite"><?php echo _t('conf.shortcut.mark_favorite'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="go_website"><?php echo _t('conf.shortcut.see_on_website'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="auto_share_shortcut"><?php echo _t('conf.shortcut.auto_share'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
				<?php echo _t('conf.shortcut.auto_share_help'); ?>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="collapse_entry"><?php echo _t('conf.shortcut.collapse_article'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<legend><?php echo _t('conf.shortcut.other_action');?></legend>

		<div class="form-group">
			<label class="group-name" for="load_more_shortcut"><?php echo _t('conf.shortcut.load_more'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="focus_search_shortcut"><?php echo _t('conf.shortcut.focus_search'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="user_filter_shortcut"><?php echo _t('conf.shortcut.user_filter'); ?></label>
			<div class="group-controls">
				<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']; ?>"/>
				<?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">
				<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']; ?>"/>
			</div>
		</div>

		<div class="form-group">
			<label class="group-name" for="help_shortcut"><?php echo _t('conf.shortcut.help'); ?></label>
			<div class="group-controls">
				<input type="text" id="help_shortcut" name="shortcuts[help]" list="keys" value="<?php echo $s['help']; ?>" data-leave-validation="<?php echo $s['help']; ?>"/>
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<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>
			</div>
		</div>
	</form>
</div>