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

Revision

Revision 383 | Revision 386 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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