<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:o="http://omnifaces.org/ui"
>
<ui:composition template="/WEB-INF/templates/template.xhtml">
    <ui:define name="title">Mitgliedsliste</ui:define>
    <ui:define name="content">
        <o:importConstants type="de.altenerding.biber.pinkie.business.members.entity.Role"
                           var="Role"/>
        <b:container>
            <h:form>
                <b:inputText id="filterText" value="#{memberBean.filterText}" ajax="true"
                             onkeyup="ajax:memberBean.filterMembers()"
                             update="memberList" placeholder="Tippen zum Filtern"/>
            </h:form>
            <h:panelGroup id="memberList">
                <b:panel title="#{pageLabel['admin.members.memberList']}" collapsible="false">
                    <ui:repeat value="#{memberBean.members}" var="member">
                        <b:form>
                            <b:row>
                                <b:column colLg="4" colMd="4" colSm="6" colXs="12">
                                    <b:formGroup>
                                        <b:inputText value="#{member.getFullName()}" disabled="true"/>
                                    </b:formGroup>
                                </b:column>
                                <b:column colLg="2" colMd="3" colSm="3" colXs="6">
                                    <b:formGroup>
                                        <b:button outcome="/secure/admin/editMember.xhtml"
                                                  value="#{label['button.edit']}"
                                                  look="warning btn-block">
                                            <f:param name="memberId" value="#{member.id}"/>
                                        </b:button>
                                    </b:formGroup>
                                </b:column>
                                <b:column colLg="3" colMd="4" colSm="4" colXs="6">
                                    <b:formGroup>
                                        <b:button outcome="/secure/admin/editMemberPassword.xhtml"
                                                  value="#{label['resetPasswort']}"
                                                  look="danger btn-block">
                                            <f:param name="memberId" value="#{member.id}"/>
                                        </b:button>
                                    </b:formGroup>
                                </b:column>
                                <b:column colLg="3" colMd="4" colSm="4" colXs="6">
                                    <b:formGroup>
                                        <b:button outcome="/secure/admin/deleteMember.xhtml"
                                                  value="#{label['button.delete']}"
                                                  disabled="#{member.role == Role.ADMIN}"
                                                  look="danger btn-block">
                                            <f:param name="memberId" value="#{member.id}"/>
                                        </b:button>
                                    </b:formGroup>
                                </b:column>
                            </b:row>
                        </b:form>
                    </ui:repeat>
                </b:panel>
            </h:panelGroup>
        </b:container>
    </ui:define>
</ui:composition><commit_msg>Refactored members view from simple list to datatable<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:o="http://omnifaces.org/ui"
>
<ui:composition template="/WEB-INF/templates/template.xhtml">
    <ui:define name="title">Mitgliedsliste</ui:define>
    <ui:define name="content">
        <o:importConstants type="de.altenerding.biber.pinkie.business.members.entity.Role"
                           var="Role"/>
        <b:container>
            <b:dataTable value="#{memberBean.members}" searching="true" info="false"
                         multiColumnSearch="false" multiColumnSearchPosition="top"
                         var="member" fixedHeader="true" scrollHorizontally="true">
                <b:dataTableColumn label="#{label['fullName']}" value="#{member.fullName}" order="asc"
                                   searchable="true"/>
                <b:dataTableColumn label="#{label['birthday']}" dataType="date" searchable="false"
                                   orderable="false" styleClass="md-screen-hidden sm-screen-hidden xs-screen-hidden">
                    <h:outputText value="#{member.birthday}">
                        <f:convertDateTime pattern="dd.MM.yyyy" timeZone="Europe/Berlin"/>
                    </h:outputText>
                </b:dataTableColumn>
                <b:dataTableColumn label="#{label['authorization']}" value="#{member.role}" searchable="false"
                                   orderable="true" styleClass="md-screen-hidden sm-screen-hidden xs-screen-hidden"/>
                <b:dataTableColumn label="#{label['privateEmail']}" value="#{member.privateEmail}" searchable="true"
                                   orderable="true" styleClass="md-screen-hidden sm-screen-hidden xs-screen-hidden"/>
                <b:dataTableColumn label="" orderable="false">
                    <b:button outcome="/secure/admin/editMember.xhtml"
                              tooltip="#{label['button.edit']}" iconAwesome="pencil"
                              look="warning btn-block">
                        <f:param name="memberId" value="#{member.id}"/>
                    </b:button>
                </b:dataTableColumn>
                <b:dataTableColumn label="" orderable="false">
                    <b:button outcome="/secure/admin/deleteMember.xhtml"
                              tooltip="#{label['button.delete']}" iconAwesome="trash"
                              look="danger btn-block"
                              disabled="#{member.role == Role.ADMIN}">
                        <f:param name="memberId" value="#{member.id}"/>
                    </b:button>
                </b:dataTableColumn>
                <b:dataTableColumn label="" orderable="false">
                    <b:button outcome="/secure/admin/editMemberPassword.xhtml"
                              value="#{label['resetPasswort']}"
                              look="danger btn-block">
                        <f:param name="memberId" value="#{member.id}"/>
                    </b:button>
                </b:dataTableColumn>
            </b:dataTable>
        </b:container>
    </ui:define>
</ui:composition>
{'fraction_non_alphanumeric': 0.1438223938223938, 'fraction_numerical': 0.004826254826254826, 'mean_word_length': 1.328410914927769, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 2, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 39, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4221400', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1810, 'n_words': 245}