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

Revision

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