-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofileedit.tpl
executable file
·307 lines (307 loc) · 12.5 KB
/
profileedit.tpl
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<div class="header">
<h2>Edit Profile > <strong>{$user.username|escape:"htmlall"}</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}">Home</a></li>
/ Profile / {$user.username|escape:"htmlall"}
</ol>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body pagination2">
{if $error != ''}
<div class="alert alert-danger">{$error}</div>
{/if}
<ul class="nav nav-tabs nav-primary">
<li class="active"><a href="#tab2_1" data-toggle="tab"><i class="fa fa-cogs fa-spin"></i>
Settings</a></li>
<li><a href="#tab2_3" data-toggle="tab"><i class="fa fa-cloud-download"></i> Downloaders</a>
</li>
</ul>
{{Form::open(['url' => 'profileedit?action=submit'])}}
<div class="tab-content">
<div class="tab-pane fade active in" id="tab2_1">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;">
<strong>Profile</strong></td>
</tr>
<tr>
<th width="200">E-Mail</th>
<td><input id="email" class="form-control" name="email"
type="text"
value="{$user.email|escape:"htmlall"}"></td>
</tr>
<tr>
<th width="200">Password</th>
<td>
<input autocomplete="off" id="password" name="password"
type="password" class="form-control" value="">
<div class="hint">Only enter your password if you want
to change it.
</div>
</td>
</tr>
<tr>
<th width="200">Confirm password</th>
<td>
<input autocomplete="off" id="password_confirmation"
name="password_confirmation" type="password"
class="form-control" value="">
</td>
</tr>
<tr>
<th width="200">API Key</th>
<td>
{$user.rsstoken}
</td>
</tr>
</tbody>
</table>
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;"><strong>Excluded
Categories</strong></td>
</tr>
<tr>
<th width="200">Excluded Categories</th>
<td>
{html_options style="height:405px;" class="form-control" data-placeholder="Choose categories to exclude" multiple=multiple name="exccat[]" options=$catlist selected=$userexccat}
</td>
</tr>
</tbody>
</table>
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;"><strong>UI
Preferences</strong></td>
</tr>
<tr>
<th width="200">Movie Page</th>
<td><input type="checkbox" name="movieview"
class="onoffswitch-checkbox" id="movieview"
{if $user.movieview == "1"}checked{/if}> Browse
movie covers. Only shows movies with known IMDB info.
</td>
</tr>
<tr>
<th width="200">Music Page</th>
<td><input type="checkbox" name="musicview"
class="onoffswitch-checkbox" id="musicview"
{if $user.musicview == "1"}checked{/if}> Browse
music covers. Only shows music with known lookup info.
</td>
</tr>
<tr>
<th width="200">Console Page</th>
<td><input type="checkbox" name="consoleview"
class="onoffswitch-checkbox" id="consoleview"
{if $user.consoleview == "1"}checked{/if}> Browse
console covers. Only shows games with known lookup info.
</td>
</tr>
<tr>
<th width="200">Games Page</th>
<td><input type="checkbox" name="gameview"
class="onoffswitch-checkbox" id="gameview"
{if $user.gameview == "1"}checked{/if}> Browse game
covers. Only shows games with known lookup info.
</td>
</tr>
<tr>
<th width="200">Book Page</th>
<td><input type="checkbox" name="bookview"
class="onoffswitch-checkbox" id="bookview"
{if $user.bookview == "1"}checked{/if}> Browse book
covers. Only shows books with known lookup info.
</td>
</tr>
<tr>
<th width="200">XXX Page</th>
<td><input type="checkbox" name="xxxview"
class="onoffswitch-checkbox" id="xxxview"
{if $user.xxxview == "1"}checked{/if}> Browse XXX
covers. Only shows XXX releases with known lookup info.
</td>
</tr>
</tbody>
</table>
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;"><strong>Site
theme</strong></td>
</tr>
<tr>
<td>
{if {{App\Models\Settings::settingValue('site.main.userselstyle')}} == 1}
{html_options id="style" name='style' values=$themelist output=$themelist selected=$user.style}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tab-pane fade" id="tab2_3">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<br>
<div class="alert alert-info">
These settings are only needed if you want to be able to push NZB's
to your downloader straight from the website. You don't need this
for automation software like Sonarr, Sickbeard, SickRage, SickGear
or Couchpotato to
function.
</div>
<br>
{if {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} != 1}
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;"><strong>Queue
type
<small>(NZBGet or SABnzbd)</small>
</strong></td>
</tr>
<tr>
<th width="200">Select type</th>
<td>
{html_options id="queuetypeids" name='queuetypeids' values=$queuetypeids output=$queuetypes selected=$user.queuetype}
<span class="help-block">Pick the type of queue you wish to use, once you save your profile, the page will reload, the box will appear and you can fill out the details.</span>
</td>
</tr>
</tbody>
</table>
{/if}
{if $user.queuetype == 1 && {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} == 2}
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;">
<strong>SABnzbd</strong>
</td>
</tr>
<tr>
<th width="200">URL</th>
<td><input id="saburl" class="form-control"
name="saburl" type="text"
placeholder="SABNZBd URL"
value="{$saburl_selected}"></td>
</tr>
<tr>
<th width="200">API Key</th>
<td><input id="sabapikey" class="form-control"
name="sabapikey" type="text"
placeholder="SABNZbd API Key"
value="{$sabapikey_selected}"></td>
</tr>
<tr>
<th width="200">API Key Type</th>
<td>
{html_radios id="sabapikeytype" name='sabapikeytype' values=$sabapikeytype_ids output=$sabapikeytype_names selected=$sabapikeytype_selected separator='<br />'}
<div class="hint">
Select the type of api key you entered in the
above setting. Using your full SAB api key will
allow you access to the SAB queue from within
this site.
</div>
</td>
</tr>
<tr>
<th width="200">Priority Level</th>
<td>
{html_options id="sabpriority" class="form-control" name='sabpriority' values=$sabpriority_ids output=$sabpriority_names selected=$sabpriority_selected}
<div class="hint">Set the priority level for NZBs that
are added to your queue
</div>
</td>
</tr>
<tr>
<th width="200">Setting Storage</th>
<td>
{html_radios id="sabsetting" name='sabsetting' values=$sabsetting_ids output=$sabsetting_names selected=$sabsetting_selected separator=' '}{if $sabsetting_selected == 2} [
<a class="confirm_action"
href="?action=clearcookies">Clear Cookies</a>
]{/if}
<div class="hint">Where to store the SAB setting.<br/>•
<b>Cookie</b> will store the setting in your
browsers coookies and will only work when using your
current browser.<br/>• <b>Site</b> will store
the setting in your user account enabling it to work
no matter where you are logged in from.<br/><span
class="warning"><b>Please Note:</b></span>
You should only store your full SAB api key with
sites you trust.
</div>
</td>
</tr>
</tbody>
</table>
{/if}
{if $user.queuetype == 2 && ({{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} == 0 || {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} == 2)}
<table class="data table table-striped responsive-utilities jambo-table">
<tbody>
<tr class="bg-aqua-active">
<td colspan="2" style="padding-left: 8px;">
<strong>NZBget</strong>
</td>
</tr>
<tr>
<th width="200">URL</th>
<td><input id="nzbgeturl" placeholder="NZBGet URL"
class="form-control" name="nzbgeturl"
type="text" value="{$user.nzbgeturl}"/></td>
</tr>
<tr>
<th width="200">Username / Password</th>
<td>
<div class="form-inline">
<input id="nzbgetusername"
placeholder="NZBGet Username"
class="form-control"
name="nzbgetusername" type="text"
value="{$user.nzbgetusername}"/>
/
<input id="nzbgetpassword"
placeholder="NZBGet Password"
class="form-control"
name="nzbgetpassword" type="text"
value="{$user.nzbgetpassword}"/>
</div>
</td>
</tr>
</tbody>
</table>
{/if}
<br/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<input type="submit" value="Save" class="btn btn-primary"/>
{{Form::close()}}
</div>
</div>
</div>
</div>
</div>
</div>