| 4 |
lars |
1 |
{extends file="index.tpl"}
|
|
|
2 |
{block name="maincontent"}
|
|
|
3 |
{$errors|var_dump}
|
|
|
4 |
<script>
|
|
|
5 |
$(function(){
|
|
|
6 |
$('input[type=button]').uibutton();
|
|
|
7 |
$('input[type=submit]').uibutton();
|
|
|
8 |
$('input[type=reset]').uibutton();
|
|
|
9 |
})
|
|
|
10 |
</script>
|
|
|
11 |
<form action="//_users/{$user.id}" method="post">
|
|
|
12 |
<table style="width: 100%">
|
|
|
13 |
<tr>
|
|
|
14 |
<td colspan="2" class="headline">
|
|
|
15 |
<b>Benutzer: {if $user.id}Bearbeiten{else}Neueintrag{/if}</b>
|
|
|
16 |
</td>
|
|
|
17 |
</tr>
|
|
|
18 |
<tr>
|
|
|
19 |
<td class="links">
|
|
|
20 |
<b><label for="login">Login:</label></b>
|
|
|
21 |
</td>
|
|
|
22 |
<td colspan="2">
|
|
|
23 |
<input type="text" name="user" value="{$user.userPart}" id="login" autocomplete="username"/>
|
|
|
24 |
@{$webs.domain}
|
|
|
25 |
</td>
|
|
|
26 |
</tr>
|
|
|
27 |
<tr>
|
|
|
28 |
<td class="links">
|
|
|
29 |
<b><label for="name">Name:</label></b>
|
|
|
30 |
</td>
|
|
|
31 |
<td colspan="2">
|
|
|
32 |
<input type="text" name="name" id="name" value="{$user.name}" autocomplete="off"/>
|
|
|
33 |
</td>
|
|
|
34 |
</tr>
|
|
|
35 |
<tr>
|
|
|
36 |
<td class="links">
|
|
|
37 |
<b><label for="pwd">Passwort:</label> </b>
|
|
|
38 |
</td>
|
|
|
39 |
<td colspan="2">
|
|
|
40 |
<input type="hidden" id="length" value="8"/>
|
|
|
41 |
<input type="password" name="passwd" id="pwd" autocomplete="new-password"/>(Passwort) <i id="hovereffekt" class="far fa-question-circle">
|
|
|
42 |
Es gelten folgende Regeln, damit ein Passwort akzeptiert wird: <br/><br/> Es müssen mindestens 2 Buchstaben, <br/>mindestens 2 Zahlen <br/> und mehr als 8 Zeichen verwendet werden . <br/><br/> Tipp: Nutzen sie die Passwort generieren Funktion!</i><br/>
|
|
|
43 |
<input type="password" name="passwd_confirmation" id="pwdcheck" autocomplete="new-password"/>(Passwortbestätigung)
|
|
|
44 |
<br/>
|
|
|
45 |
<a id="getnewPWD" onclick="randomPassword()"> Passwort generieren</a>
|
|
|
46 |
<a id="shownewPWD" onclick="showpass()">Passwort Anzeigen </a>
|
|
|
47 |
</td>
|
|
|
48 |
</tr>
|
|
|
49 |
<tr>
|
|
|
50 |
<td class="links">
|
|
|
51 |
<b><label for="ignoreRemoteHosts">Hostsperre:</label> </b>
|
|
|
52 |
</td>
|
|
|
53 |
<td colspan="2">
|
|
|
54 |
<input type="hidden" name="ignoreRemoteHosts" value="0"/>
|
|
|
55 |
<input type="checkbox" name="ignoreRemoteHosts" id="ignoreRemoteHosts" value="1" {if $user.ignoreRemoteHosts == 1}checked="checked"{/if}/>Ignoriere Einschränkung auf Hosts
|
|
|
56 |
</td>
|
|
|
57 |
</tr>
|
|
|
58 |
{if isset($web_rechte.admin.admin.zusatz_daten)}
|
|
|
59 |
<tr>
|
|
|
60 |
<td class="links">
|
|
|
61 |
<b><label for="mail">E-Mail Adresse:</label></b>
|
|
|
62 |
</td>
|
|
|
63 |
<td colspan="2">
|
|
|
64 |
<input type="text" name="mail" id="mail" value="{$user.mail}"/>
|
|
|
65 |
</td>
|
|
|
66 |
</tr>
|
|
|
67 |
<tr>
|
|
|
68 |
<td class="links">
|
|
|
69 |
<b><label for="phone">Telefon:</label> </b>
|
|
|
70 |
</td>
|
|
|
71 |
<td colspan="2">
|
|
|
72 |
<input type="text" name="phone" id="phone" value="{$user.phone|default:""}"/>
|
|
|
73 |
</td>
|
|
|
74 |
</tr>
|
|
|
75 |
<tr>
|
|
|
76 |
<td class="links">
|
|
|
77 |
<b><label for="fax">Fax:</label> </b>
|
|
|
78 |
</td>
|
|
|
79 |
<td colspan="2">
|
|
|
80 |
<input type="text" name="fax" id="fax" value="{$user.fax|default:""}"/>
|
|
|
81 |
</td>
|
|
|
82 |
</tr>
|
|
|
83 |
{/if}
|
|
|
84 |
{if isset($user_rechte.cms)}
|
|
|
85 |
<tr>
|
|
|
86 |
<td class="links">
|
|
|
87 |
<b><label for="dir">Verzeichnis:</label> </b>
|
|
|
88 |
</td>
|
|
|
89 |
<td colspan="2">
|
|
|
90 |
<input type="text" name="dir" id="dir" value="{$user.dir}"/>
|
|
|
91 |
</td>
|
|
|
92 |
</tr>
|
|
|
93 |
{/if}
|
|
|
94 |
<tr>
|
|
|
95 |
<td class="links">
|
|
|
96 |
<b><label for="description">Beschreibung</label> :</b>
|
|
|
97 |
</td>
|
|
|
98 |
<td colspan="2">
|
|
|
99 |
<textarea name="description" id="description" cols="40" rows="3">{$user.beschreibung}</textarea>
|
|
|
100 |
</td>
|
|
|
101 |
</tr>
|
|
|
102 |
{if ($smarty.session.admin.user->admin==1 || isset($user_rechte.admin.admin))&&$user->id!=$smarty.session.admin.uid}
|
|
|
103 |
<tr>
|
|
|
104 |
<td class="links">
|
|
|
105 |
<b><label for="admin">Admin</label> </b>
|
|
|
106 |
</td>
|
|
|
107 |
<td colspan="2">
|
|
|
108 |
<input type="hidden" name="admin" value="0" />
|
|
|
109 |
<input type="checkbox" name="admin" id="admin" value="1" {if $user["admin"] == 1}checked="checked"{/if}/>
|
|
|
110 |
|
|
|
111 |
</td>
|
|
|
112 |
</tr>
|
|
|
113 |
{/if}
|
|
|
114 |
<tr>
|
|
|
115 |
<td class="links">
|
|
|
116 |
<b><label for="employee">Mitarbeiter</label> </b>
|
|
|
117 |
</td>
|
|
|
118 |
<td colspan="2">
|
|
|
119 |
<input type="hidden" name="employee" value="0" />
|
|
|
120 |
<input type="checkbox" name="employee" value="1" id="employee" {if $user["employee"]}checked="checked"{/if}/>
|
|
|
121 |
|
|
|
122 |
</td>
|
|
|
123 |
</tr>
|
|
|
124 |
<tr>
|
|
|
125 |
<td class="links">
|
|
|
126 |
<b><label for="rang">Rang</label></b>
|
|
|
127 |
</td>
|
|
|
128 |
<td class="rechts">
|
|
|
129 |
<input type="number" name="rank" id="rang" value="{$user["rank"]}" min="0">
|
|
|
130 |
</td>
|
|
|
131 |
</tr>
|
|
|
132 |
<tr>
|
|
|
133 |
<td class="links">
|
|
|
134 |
<b><label for="terminpflege">Terminbenutzer</label></b>
|
|
|
135 |
</td>
|
|
|
136 |
<td class="rechts">
|
|
|
137 |
<input type="hidden" name="terminpflege" value="0">
|
|
|
138 |
<input type="checkbox" name="terminpflege" id="terminpflege" {if $user["terminpflege"]}checked="checked"{/if} value="1">
|
|
|
139 |
</td>
|
|
|
140 |
</tr>
|
|
|
141 |
{if env('shop')==env('site')}
|
|
|
142 |
<tr>
|
|
|
143 |
<td>
|
|
|
144 |
<b><label for="app_user">App Benutzer</label> </b>
|
|
|
145 |
</td>
|
|
|
146 |
<td colspan="2">
|
|
|
147 |
<input type="hidden" name="app_user" value="0" />
|
|
|
148 |
<input type="checkbox" name="app_user" id="app_user" value="1" {if $user["app_user"] == 1}checked="checked"{/if}/>
|
|
|
149 |
|
|
|
150 |
</td>
|
|
|
151 |
</tr>
|
|
|
152 |
{/if}
|
|
|
153 |
<tr>
|
|
|
154 |
<td class="links">
|
|
|
155 |
<b><label for="save_session">Session speichern?</label> </b>
|
|
|
156 |
</td>
|
|
|
157 |
<td colspan="2">
|
|
|
158 |
<input type="hidden" name="save_session" value="0" />
|
|
|
159 |
<input type="checkbox" name="save_session" id="save_session" value="1" {if $user["save_session"] == 1}checked="checked"{/if}/>
|
|
|
160 |
|
|
|
161 |
</td>
|
|
|
162 |
</tr>
|
|
|
163 |
{if isset($web_rechte.admin.toolbox.bildverwaltung) && $access_medien_exists}
|
|
|
164 |
<script type="text/javascript" src="/js/bildverwaltung.js?{$smarty.now}"></script>
|
|
|
165 |
<tr>
|
|
|
166 |
<td class="links">
|
|
|
167 |
<div style="float:left"><strong>Bildverwaltung</strong></div>
|
|
|
168 |
</td>
|
|
|
169 |
<td class="rechts">
|
|
|
170 |
<div id="bildverwaltung">
|
|
|
171 |
<img src="/images/loading.gif" alt=""/>
|
|
|
172 |
</div>
|
|
|
173 |
<input type="button" value="neues Bild zuordnen" id="add_u_image"/>
|
|
|
174 |
<input type="hidden" name="l_id" value="{$user["ID"]}" />
|
|
|
175 |
</td>
|
|
|
176 |
</tr>
|
|
|
177 |
{/if}
|
|
|
178 |
{if isset($web_rechte.general.design.neu)}
|
|
|
179 |
<tr>
|
|
|
180 |
<td>
|
|
|
181 |
<b>Position der Navigation</(b>
|
|
|
182 |
</td>
|
|
|
183 |
<td colspan="2">
|
|
|
184 |
{html_radios options=$nav_pos selected=$nav_pos_sel name=navigation_pos}
|
|
|
185 |
</td>
|
|
|
186 |
</tr>
|
|
|
187 |
{/if}
|
|
|
188 |
{if $user["admin"] != 1 && ( isset($user_rechte.admin.admin.shopzuweisung) || isset($user_rechte.admin.admin.bestellartzuweisung) )}
|
|
|
189 |
<tr>
|
|
|
190 |
<td class="links"><b>Zuweisung</b></td>
|
|
|
191 |
<td>
|
|
|
192 |
<table class="zuweisungTable">
|
|
|
193 |
<tr>
|
|
|
194 |
{if isset($user_rechte.admin.admin.shopzuweisung)}
|
|
|
195 |
<td><b>Shop zuweisen</b></td>
|
|
|
196 |
{/if}
|
|
|
197 |
{if isset($user_rechte.admin.admin.bestellartzuweisung)}
|
|
|
198 |
<td><b>Bestellart zuweisen</b></td>
|
|
|
199 |
{/if}
|
|
|
200 |
</tr>
|
|
|
201 |
<tr>
|
|
|
202 |
{if isset($user_rechte.admin.admin.shopzuweisung)}
|
|
|
203 |
<td>{html_checkboxes options=$shops selected=$user["datenquellen"]["shops"] name=selected_shops}</td>
|
|
|
204 |
{/if}
|
|
|
205 |
{if isset($user_rechte.admin.admin.bestellartzuweisung)}
|
|
|
206 |
<td>{html_checkboxes options=$bestellarten selected=$user["datenquellen"]["bestellarten"] name=selected_bestellarten}</td>
|
|
|
207 |
{/if}
|
|
|
208 |
</tr>
|
|
|
209 |
</table>
|
|
|
210 |
</td>
|
|
|
211 |
</tr>
|
|
|
212 |
<tr>
|
|
|
213 |
<td class="links">
|
|
|
214 |
<b>Zuweisung anwenden auf</b>
|
|
|
215 |
</td>
|
|
|
216 |
<td colspan="2">
|
|
|
217 |
{html_checkboxes options=$zuweisungen selected=$user["datenquellen"]["zuweisung"] name=selected_zuweisung separator="<br/>"}
|
|
|
218 |
</td>
|
|
|
219 |
</tr>
|
|
|
220 |
{/if}
|
|
|
221 |
<tr>
|
|
|
222 |
<td colspan="3" class="links">
|
|
|
223 |
<table style="width: 100%;border: 0">
|
|
|
224 |
<tr>
|
|
|
225 |
<td>
|
|
|
226 |
{if $user.id}
|
|
|
227 |
{if $user["admin"] != 1}
|
|
|
228 |
<input type="button" value="Rechte verwalten" onclick="document.location='admin_user_rechte.php?ID={$user.id}'"/>
|
|
|
229 |
{/if}
|
|
|
230 |
{/if}
|
|
|
231 |
<input type="button" value="Benutzercache löschen" onclick="deleteusersession();"/>
|
|
|
232 |
</td>
|
|
|
233 |
<td>
|
|
|
234 |
<input type="hidden" name="ID" value="{$user.id}"/>
|
|
|
235 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
|
|
236 |
{if $user.id}
|
|
|
237 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
238 |
{/if}
|
|
|
239 |
<input type="submit" value="OK"/>
|
|
|
240 |
<input type="reset" name="Button" value="Zurücksetzen"/>
|
|
|
241 |
</td>
|
|
|
242 |
</tr>
|
|
|
243 |
</table>
|
|
|
244 |
</td>
|
|
|
245 |
</tr>
|
|
|
246 |
</table>
|
|
|
247 |
</form>
|
|
|
248 |
{/block}
|