Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1282 | Revision 1286 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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