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

Revision

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