blob: 9bdc44b04bdc87a22d4ba5e6deda30e2c1125fff (
plain) (
blame)
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
|
<h2 id="runtime-configuration">{{lang_runtimeConfigHeadline}}</h2>
<div class="panel panel-default">
<div class="panel-heading">
{{lang_runtimeConfig}}
</div>
<div class="panel-body">
<h3>{{lang_defaultPermissions}}</h3>
<p><i>{{lang_descriptionPermissionConfig}}</i></p>
<form action="?do=DozMod" method="post" id="runtimeconf" role="form">
<input type="text" name="prevent_autofill" id="prevent_autofill" value="" style="position:absolute;top:-2000px" tabindex="-1">
<input type="password" name="password_fake" id="password_fake" value="" style="position:absolute;top:-2000px" tabindex="-1">
<fieldset class="form-group">
<legend>{{lang_defaultLecturePermissions}}</legend>
<input type="hidden" name="defaultLecturePermissions[edit]" value="0"/>
<input type="hidden" name="defaultLecturePermissions[admin]" value="0"/>
<div class="checkbox">
<input type="checkbox" name="defaultLecturePermissions[admin]" value="1" {{defaultLecturePermissions.admin}} id ="lecture_admin" class="form-control">
<label>
{{lang_lecturePermissionAdmin}}
</label>
</div>
<div class="checkbox">
<input type="checkbox" name="defaultLecturePermissions[edit]" value="1" {{defaultLecturePermissions.edit}} id ="lecture_edit" class="form-control">
<label>
{{lang_lecturePermissionEdit}}
</label>
</div>
</fieldset>
<fieldset class="form-group">
<legend>{{lang_defaultImagePermissions}}</legend>
<input type="hidden" name="defaultImagePermissions[edit]" value="0"/>
<input type="hidden" name="defaultImagePermissions[admin]" value="0"/>
<input type="hidden" name="defaultImagePermissions[download]" value="0"/>
<input type="hidden" name="defaultImagePermissions[link]" value="0"/>
<div class="checkbox">
<input type="checkbox" name="defaultImagePermissions[admin]" value="1" {{defaultImagePermissions.admin}} id ="image_admin" class="form-control">
<label class="" for="image_admin">
{{lang_defaultImagePermissionAdmin}}
</label>
</div>
<div class="checkbox">
<input type="checkbox" name="defaultImagePermissions[edit]" value="1" {{defaultImagePermissions.edit}} id ="image_edit" class="form-control">
<label>
{{lang_defaultImagePermissionEdit}}
</label>
</div>
<div class="checkbox">
<input type="checkbox" name="defaultImagePermissions[download]" value="1" {{defaultImagePermissions.download}} id ="image_download" class="form-control">
<label>
{{lang_defaultImagePermissionDownload}}
</label>
</div>
<div class="checkbox">
<input type="checkbox" name="defaultImagePermissions[link]" value="1" {{defaultImagePermissions.link}} id ="image_link" class="form-control">
<label>
{{lang_defaultImagePermissionLink}}
</label>
</div>
</fieldset>
<fieldset>
<h3>{{lang_runtimeConfigLimits}}</h3>
<p><i>{{lang_descriptionRuntimeLimits}}</i></p>
<table class="table-input-group">
<tr class="input-group">
<td class="input-group-addon" for="max_image_validity">{{lang_maxImageValidity}}</td>
<td>
<input name="maxImageValidityDays" id="max_image_validity" class="form-control" type="number" value="{{maxImageValidityDays}}" min="7" max="999" pattern="^\d+$">
</td>
</tr>
<tr class="input-group">
<td class="input-group-addon" for="max_lecture_validity">{{lang_maxLectureVisibility}}</td>
<td>
<input name="maxLectureValidityDays" id="max_lecture_validity" class="form-control" type="number" value="{{maxLectureValidityDays}}" min="1" max="999" pattern="^\d+$">
</td>
</tr>
<tr class="input-group">
<td class="input-group-addon" for="max_transfers">{{lang_maxTransfers}}</td>
<td>
<input name="maxTransfers" id="max_transfers" class="form-control" type="number" value="{{maxTransfers}}" min="1" max="10" pattern="^\d+$">
</td>
</tr>
</table>
</fieldset>
<fieldset>
<h3>{{lang_miscOptions}}</h3>
<div class="checkbox">
<input type="hidden" name="allowLoginByDefault" value="0">
<input type="checkbox" name="allowLoginByDefault" value="1" {{allowLoginByDefault}} id ="allowLoginByDefault" class="form-control">
<label>
{{lang_allowLoginByDefault}}
</label>
<p><i>{{lang_allowLoginDescription}}</i></p>
</div>
</fieldset>
<br>
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="runtime">
<button class="btn btn-primary" type="submit" name="button" value="save">{{lang_save}}</button>
</form>
</div>
</div>
|