{{define "admin_mode_0"}}

    {{if .Loggedin}}
        {{ template "admin_header" . }}

        <p>
            <a class="ui right labeled icon addKofi button green">
                <i class="right plus icon"></i>
                Konfi Hinzufügen
            </a>
            <!--
        <a href="#" class="ui right labeled icon uploadKofis button blue">
            <i class="right cloud upload icon"></i>
            Konfis Importieren
        </a>
        -->
        </p>

        <div id="msg"></div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ui celled table">
            <thead>
            <tr>
                <th>Name</th>
                <th>Gemeinde</th>
                <th>KonfiCoins</th>
                <th>Bearbeiten</th>
            </tr>
            </thead>
            <tbody id="list">
            <tr>
                <td colspan="3">Laden...</td>
            </tr>
            </tbody>
        </table>
        <p style="color: #ccc;">© 2017-2019 <a href="http://konradlangenberg.de" target="_blank" style="color:#ccc;">Konrad
                Langenberg</a> | Version: {{.Version}}</p>
        </div>

        <!-- Modals -->

        <!-- Kofi löschen -->
        <div class="ui small basic kofidel modal">
            <div class="ui icon header">
                <i class="trash outline icon"></i>
                Konfi löschen
            </div>
            <div class="content">
                <p>Willst du diesen Konfi wirklich löschen? Diese Aktion kann nicht Rückgängig gemacht werden!</p>
            </div>
            <div class="actions">
                <div class="ui red basic cancel inverted button">
                    <i class="remove icon"></i>
                    Nein
                </div>
                <div class="ui green ok inverted button">
                    <i class="checkmark icon"></i>
                    Ja!
                </div>
            </div>
        </div>

        <!-- Kofi hinzufügen -->
        <div class="ui kofiadd modal">
            <i class="close icon"></i>
            <div class="header">
                Konfi hinzufügen
            </div>
            <div class="image content">
                <div class="ui input">
                    <input type="text" id="name" placeholder="Name"/>
                </div>
                <br/><br/>
                <div class="ui input">
                    <input type="text" id="gemeinde" placeholder="Gemeinde"/>
                </div>
            </div>
            <div class="actions">
                <div class="ui black deny button">
                    Abbrechen
                </div>
                <div class="ui positive right labeled icon button">
                    Hinzufügen
                    <i class="checkmark icon"></i>
                </div>
            </div>
        </div>

        <!-- Kofis hochladen -->
        <!--
        <div class="ui kofiupload modal">
            <i class="close icon"></i>
            <div class="header">
                Konfis hochladen
            </div>
            <div class=" content">

            </div>
            <div class="actions">
                <div class="ui black deny button">
                    Abbrechen
                </div>
                <div class="ui positive button">include
                    Hochladen
                </div>
            </div>
        </div>
        -->
        {{template "admin_footer"}}
    {{end}}
{{end}}