{{define "admin_mode_1"}}

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

        <p>
            <a class="ui right labeled icon addGemeinde button green">
                <i class="right plus icon"></i>
                Gemeinde Hinzufügen
            </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>KonfiCoins</th>
                <th>Konfis</th>
                <th>KonfiCoins p.P.</th>
                <th>Bearbeiten</th>
            </tr>
            </thead>
            <tbody id="list">
            <tr>
                <td colspan="5">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 -->

        <!-- Gemeinde löschen -->
        <div class="ui small basic gemeindedel modal">
            <div class="ui icon header">
                <i class="trash outline icon"></i>
                Gemeinde löschen
            </div>
            <div class="content">
                <p>Willst du diese Gemeinde 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>

        <!-- Gemeinde hinzufügen -->
        <div class="ui gemeindeadd modal">
            <i class="close icon"></i>
            <div class="header">
                Gemeinde hinzufügen
            </div>
            <div class="content">
                <div class="ui input">
                    <input type="text" id="name" placeholder="Name"/>
                </div>
                <div class="ui input">
                    <input type="number" id="konfis" placeholder="Anzahl der Konfis"/>
                </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>

        {{template "admin_footer"}}
    {{end}}
{{end}}