<%=raw app.core.View.getTemplate( 'configuration-nav', { activeTab : 'privacy' } ) %>
<div class="row">
    <div class="col-sm-12">
        <div class="card">
            <div class="card-body no-padding">
                <div class="table-responsive">
                    <table class="table table-borderless table-configuration-profile-privacy">
                        <thead>
                            <tr>
                                <th><%= _lc( 'GROUP' ) %></th>
                                <th><%= _lc( 'ROLE' ) %></th>
                                <th><%= _lc( 'VISIBILITY' ) %></th>
                            </tr>
                        </thead>
                        <tbody>
                        <% for ( var gi = 0; gi < groups.length; gi++ ) { %>
                            <tr class="">
                                <td>
                                    <%= groups[ gi ].getName() %>
                                </td>
                                <td>
                                    <%= p.getRolenameInGroup( groups[ gi ].getId() ) %>
                                </td>
                                <td>
                                    <%= p.isAnonymousInGroup( groups[ gi ].getId() ) ? _lc( 'ONLY_VISIBLE_FOR_ADMINS' ) : _lc( 'VISIBLE_FOR_ALL_GROUP_MEMBERS' ) %>
                                </td>
                            </tr>
                        <% }    %>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="card-footer">
                <div class="row">
                    <div class="col">
                        <a href="#/configuration/privacy/edit" class="btn btn-sm btn-primary">
                            <%= _lc( 'BTN_EDIT' ) %>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>