      <li class="ui-state-default mylist ui-sortable-handle" id="gruppe{{group.id}}" value="{{group.id}}" groupname="{{group.name}}" teamleaderid="{{teamleader.userid}}">
          <div class="listheader-sortable">
              <div class="row">
                <div class="col">
                  <i aria-hidden="true" class="fas fa-stream"></i>
                  <span class="listheader-sortable-text">{{group.name}}{% if not canSeeUsername %} <i>({{group.members | length}} MA)</i>{% endif %}</span>
                </div>
                <div class="col-auto">
                  <span class="edit-group" aria-label="Team {{ group.name }} bearbeiten" title="Team bearbeiten" role="button">
                    <span>
                      <i aria-hidden="true" class="fas fa-edit pointer"></i>
                    </span>
                  </span>
                </div>
                <div class="col-auto">
                  <span class="delete-group" title="Team löschen" aria-label="Team {{ group.name }} löschen" role="button">
                    <span>
                      <i aria-hidden="true" class="fas fa-trash-alt pointer"></i>
                    </span>
                  </span>
                </div>
              </div>
          </div>
          <div class="team-leader-selection d-flex{% if canSeeUsername %} mb-3{% endif %}">
            {% if teamLeaderEditor %}
            <div class="form-inline w-100">
              <label for="select-team-leader-input" class="mb-0 ml-0 mr-3">Teamleitung:</label>
              <select name="select-team-leader" id="select-team-leader-input" class="form-control flex-grow-1 select-team-leader-input" data-initialvalue="{{ teamleader.userid }}">
                <option value="">-</option>
                {% for user in group.members %}
                  {% if user.id in allteamleader|keys %}
                    <option value="{{user.id}}" {% if teamleader.userid == user.id %}selected{% endif %}>{{user.name}}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <button aria-hidden="true" id="select-team-leader-input-feedback" class="btn" type="button" disabled style="cursor: unset;"><i class="fas fa-check-circle invisible"></i></button>
            </div>
            {% else %}
            {% set teamLeaderName = "-" %}{% for user in group.members %}{% if teamleader.userid == user.id %}{% set teamLeaderName = user.name %}{% endif %}{% endfor %}
            <p>Teamleitung: {{teamLeaderName}}</p>
            {% endif %}
          </div>
          {% if canSeeUsername %}
            <span class="morelessons">
              <span>{{group.members | length}}&nbsp;Mitarbeitende</span>
              <i class="far fa-caret-square-down" role="button"></i>
              <i class="far fa-caret-square-up" role="button"></i>
            </span>
        <div class="lektionen-show-hide">
          <ul class="connectedSortable ui-sortable">
              {% for user in group.members %}
                  <li class="ui-state-default user-grouper-list-item" value="{{user.id}}" id="companygroup{{group.id}}-member{{user.id}}"><i aria-hidden="true" class="fas fa-stream"></i>
                    <span class="company-mgr-username">{{user.name}}</span>
                      <!-- <span class="ui-icon ui-icon-carat-2-n-s sortable-icon"></span> -->
                        <!-- <i class="fas fa-stream"></i> -->
                      <span role="button" title="Mitarbeiter/in entfernen" aria-label="Mitarbeiter/in {{ user.name }} entfernen" class="remove-groupmember float-right">
                          <i aria-hidden="true" class="fas fa-trash-alt pointer"></i>
                      </span>
                  </li>
              {% endfor %}
          </ul>
          <!-- <div class="add-lektionen-wrap btn btn-primary"> -->
              <button type="button" class="btn btn-primary add-groupmember" data-toggle="modal" data-target="#addGroupMemberModal">
                  Hinzufügen
              </button>

          <!-- </div> -->
        </div>
        {% endif %}
      </li><!-- </li> Gruppe -->
