Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 26 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{extends file="index.tpl"}
{block name="maincontent"}
{$errors|var_dump}
    <script>
        $(function(){
            $('input[type=button]').uibutton();
            $('input[type=submit]').uibutton();
            $('input[type=reset]').uibutton();
        })
    </script>
    <form action="//_users/{$user.id}" method="post">
        <table style="width: 100%">
            <tr>
                <td colspan="2" class="headline">
                    <b>Benutzer: {if $user.id}Bearbeiten{else}Neueintrag{/if}</b>
                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="login">Login:</label></b>
                </td>
                <td colspan="2">
                    <input type="text" name="user" value="{$user.userPart}" id="login" autocomplete="username"/>
                    @{$webs.domain}
                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="name">Name:</label></b>
                </td>
                <td colspan="2">
                    <input type="text" name="name" id="name" value="{$user.name}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="pwd">Passwort:</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" id="length" value="8"/>
                    <input type="password" name="passwd" id="pwd" autocomplete="new-password"/>(Passwort) <i id="hovereffekt" class="far fa-question-circle">
                        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/>
                    <input type="password" name="passwd_confirmation" id="pwdcheck" autocomplete="new-password"/>(Passwortbest&auml;tigung)
                    <br/>
                    <a id="getnewPWD" onclick="randomPassword()"> Passwort generieren</a>
                    <a id="shownewPWD" onclick="showpass()">Passwort Anzeigen </a>
                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="ignoreRemoteHosts">Hostsperre:</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" name="ignoreRemoteHosts" value="0"/>
                    <input type="checkbox" name="ignoreRemoteHosts" id="ignoreRemoteHosts" value="1" {if $user.ignoreRemoteHosts == 1}checked="checked"{/if}/>Ignoriere Einschr&auml;nkung auf Hosts
                </td>
            </tr>
            {if isset($web_rechte.admin.admin.zusatz_daten)}
                <tr>
                    <td class="links">
                        <b><label for="mail">E-Mail Adresse:</label></b>
                    </td>
                    <td colspan="2">
                        <input type="text" name="mail" id="mail" value="{$user.mail}"/>
                    </td>
                </tr>
                <tr>
                    <td class="links">
                        <b><label for="phone">Telefon:</label> </b>
                    </td>
                    <td colspan="2">
                        <input type="text" name="phone" id="phone" value="{$user.phone|default:""}"/>
                    </td>
                </tr>
                <tr>
                    <td class="links">
                        <b><label for="fax">Fax:</label> </b>
                    </td>
                    <td colspan="2">
                        <input type="text" name="fax" id="fax" value="{$user.fax|default:""}"/>
                    </td>
                </tr>
            {/if}
            {if isset($user_rechte.cms)}
                <tr>
                    <td class="links">
                        <b><label for="dir">Verzeichnis:</label> </b>
                    </td>
                    <td colspan="2">
                        <input type="text" name="dir" id="dir" value="{$user.dir}"/>
                    </td>
                </tr>
            {/if}
            <tr>
                <td class="links">
                    <b><label for="description">Beschreibung</label> :</b>
                </td>
                <td colspan="2">
                    <textarea name="description" id="description" cols="40" rows="3">{$user.beschreibung}</textarea>
                </td>
            </tr>
            {if ($smarty.session.admin.user->admin==1 || isset($user_rechte.admin.admin))&&$user->id!=$smarty.session.admin.uid}
            <tr>
                <td class="links">
                    <b><label for="admin">Admin</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" name="admin" value="0" />
                    <input type="checkbox" name="admin" id="admin" value="1" {if $user["admin"] == 1}checked="checked"{/if}/>

                </td>
            </tr>
            {/if}
            <tr>
                <td class="links">
                    <b><label for="employee">Mitarbeiter</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" name="employee" value="0" />
                    <input type="checkbox" name="employee" value="1" id="employee" {if $user["employee"]}checked="checked"{/if}/>

                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="rang">Rang</label></b>
                </td>
                <td class="rechts">
                    <input type="number" name="rank" id="rang" value="{$user["rank"]}" min="0">
                </td>
            </tr>
            <tr>
                <td class="links">
                    <b><label for="terminpflege">Terminbenutzer</label></b>
                </td>
                <td class="rechts">
                    <input type="hidden" name="terminpflege" value="0">
                    <input type="checkbox" name="terminpflege" id="terminpflege" {if $user["terminpflege"]}checked="checked"{/if} value="1">
                </td>
            </tr>
            {if env('shop')==env('site')}
            <tr>
                <td>
                    <b><label for="app_user">App Benutzer</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" name="app_user" value="0" />
                    <input type="checkbox" name="app_user" id="app_user" value="1" {if $user["app_user"] == 1}checked="checked"{/if}/>

                </td>
            </tr>
            {/if}
            <tr>
                <td class="links">
                    <b><label for="save_session">Session speichern?</label> </b>
                </td>
                <td colspan="2">
                    <input type="hidden" name="save_session" value="0" />
                    <input type="checkbox" name="save_session" id="save_session" value="1" {if $user["save_session"] == 1}checked="checked"{/if}/>

                </td>
            </tr>
            {if isset($web_rechte.admin.toolbox.bildverwaltung) && $access_medien_exists}
                <script type="text/javascript" src="/js/bildverwaltung.js?{$smarty.now}"></script>
                <tr>
                    <td class="links">
                        <div style="float:left"><strong>Bildverwaltung</strong></div>
                    </td>
                    <td class="rechts">
                        <div id="bildverwaltung">
                            <img src="/images/loading.gif"  alt=""/>
                        </div>
                        <input type="button" value="neues Bild zuordnen" id="add_u_image"/>
                        <input type="hidden" name="l_id" value="{$user["ID"]}" />
                    </td>
                </tr>
            {/if}
            {if isset($web_rechte.general.design.neu)}
                <tr>
                    <td>
                        <b>Position der Navigation</(b>
                    </td>
                    <td colspan="2">
                        {html_radios options=$nav_pos selected=$nav_pos_sel name=navigation_pos}
                    </td>
                </tr>
            {/if}
            {if $user["admin"] != 1 && ( isset($user_rechte.admin.admin.shopzuweisung) || isset($user_rechte.admin.admin.bestellartzuweisung) )}
                <tr>
                    <td class="links"><b>Zuweisung</b></td>
                    <td>
                        <table class="zuweisungTable">
                            <tr>
                                {if isset($user_rechte.admin.admin.shopzuweisung)}
                                    <td><b>Shop zuweisen</b></td>
                                {/if}
                                {if isset($user_rechte.admin.admin.bestellartzuweisung)}
                                    <td><b>Bestellart zuweisen</b></td>
                                {/if}
                            </tr>
                            <tr>
                                {if isset($user_rechte.admin.admin.shopzuweisung)}
                                    <td>{html_checkboxes options=$shops selected=$user["datenquellen"]["shops"] name=selected_shops}</td>
                                {/if}
                                {if isset($user_rechte.admin.admin.bestellartzuweisung)}
                                    <td>{html_checkboxes options=$bestellarten selected=$user["datenquellen"]["bestellarten"] name=selected_bestellarten}</td>
                                {/if}
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="links">
                        <b>Zuweisung anwenden auf</b>
                    </td>
                    <td colspan="2">
                        {html_checkboxes options=$zuweisungen selected=$user["datenquellen"]["zuweisung"] name=selected_zuweisung separator="<br/>"}
                    </td>
                </tr>
            {/if}
            <tr>
                <td colspan="3" class="links">
                    <table style="width: 100%;border: 0">
                        <tr>
                            <td>
                                {if $user.id}
                                {if $user["admin"] != 1}
                                    <input type="button" value="Rechte verwalten" onclick="document.location='admin_user_rechte.php?ID={$user.id}'"/>
                                {/if}
                                {/if}&nbsp;
                                <input type="button" value="Benutzercache löschen" onclick="deleteusersession();"/>
                            </td>
                            <td>
                                <input type="hidden" name="ID" value="{$user.id}"/>
                                <input type="hidden" name="_token" value="{csrf_token()}">
                                {if $user.id}
                                    <input type="hidden" name="_method" value="PATCH">
                                {/if}
                                <input type="submit" value="OK"/>
                                <input type="reset" name="Button" value="Zurücksetzen"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
{/block}