{{#each users}}
    <tr data-type="selectable" id="{{userid}}" data-username="{{username}}">
        <td class="remove-padding icon-only content-fill viewEnabledIcon" data-username="{{username}}"
            data-url="user/view?username={{username}}">
            <div class="thumbnail icon">
                <i class="square-element text fw fw-user"></i>
            </div>
        </td>
        <td data-search="{{firstname}},{{lastname}}" data-display="{{firstname}} {{lastname}}">
            <h4>{{firstname}} {{lastname}}</h4>
        </td>
        <td class="remove-padding-top" data-search="{{username}}" data-display="{{username}}"><i
                class="fw-user"></i> {{username}}</td>
        <td class="remove-padding-top" data-search="{{emailAddress}}" data-display="{{emailAddress}}">
            <a href="mailto:{{emailAddress}}" class="wr-list-email">
                <i class="fw-mail"></i> {{emailAddress}}
            </a>
        </td>
        <td class="text-right content-fill text-left-on-grid-view no-wrap">
            {{#unequal adminUser username }}
                {{#if canEdit}}
                    <a href="user/edit?username={{username}}" data-username="{{username}}"
                       data-click-event="edit-form" class="btn padding-reduce-on-grid-view edit-user-link">
                                <span class="fw-stack">
                                    <i class="fw fw-circle-outline fw-stack-2x"></i>
                                    <i class="fw fw-edit fw-stack-1x"></i>
                                </span>
                        <span class="hidden-xs hidden-on-grid-view">Edit</span>
                    </a>
                {{/if}}
            {{/unequal}}

            {{#unequal adminUser username }}
                {{#if canRemove}}
                    <a href="#" data-username="{{username}}" data-userid="{{userid}}"
                       data-click-event="remove-form" onclick="removeUser('{{username}}', '{{userid}}')"
                       class="btn padding-reduce-on-grid-view remove-user-link">
                                <span class="fw-stack">
                                    <i class="fw fw-circle-outline fw-stack-2x"></i>
                                    <i class="fw fw-delete fw-stack-1x"></i>
                                </span>
                        <span class="hidden-xs hidden-on-grid-view">Remove</span>
                    </a>
                {{/if}}
            {{/unequal}}

            {{#unequal adminUser username }}
                {{#if canResetPassword}}
                    <a href="#" data-username="{{username}}" data-userid="{{userid}}"
                       data-click-event="edit-form" onclick="resetPassword('{{username}}')"
                       class="btn padding-reduce-on-grid-view remove-user-link">
                                <span class="fw-stack">
                                       <i class="fw fw-circle-outline fw-stack-2x"></i>
                                       <i class="fw fw-key fw-stack-1x"></i>
                                       <span class="fw-stack fw-move-right fw-move-bottom">
                                          <i class="fw fw-circle fw-stack-2x fw-stroke fw-inverse"></i>
                                          <i class="fw fw-circle fw-stack-2x"></i>
                                          <i class="fw fw-refresh fw-stack-1x fw-inverse"></i>
                                       </span>
                                </span>
                        <span class="hidden-xs hidden-on-grid-view">Reset</span>
                    </a>
                {{/if}}
            {{/unequal}}
        </td>
    </tr>
{{/each}}