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

Revision

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