<%=raw app.core.View.getTemplate( 'stats-nav', { activeTab : 'export' } ) %>
<div class="card">
    <div class="card-body">
        <div class="row">
            <div class="col">
                <div class="form-group">
                    <label for="select-team-id">
                        <%= _lc( 'STATS_GROUP_NAME' ) %>
                    </label>
                    <select class="form-control form-control-sm"
                            name="team-id"
                            data-id="select-team-id"
                            id="select-team-id">
                        <% var groups = app.model.SessionUser.getGroups(); %>
                        <% for ( var gi = 0; gi < groups.length; gi++ ) {    %>
                            <option value="<%= groups[ gi ].getId() %>" <%= ( groups[ gi ].getId() == groupId ) ? 'selected="selected"' : '' %>>
                                <%= groups[ gi ].getName() %>
                            </option>
                        <% }    %>
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="card-footer">
        <button type="button"
                class="btn btn-sm btn-primary"
                data-id="btn-export">
            <%= _lc( 'BTN_EXPORT' ) %>
        </button>
    </div>
</div>
