Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 330 | Revision 334 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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