1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6 xmlns:h="http://xmlns.jcp.org/jsf/html"
7 xmlns:f="http://xmlns.jcp.org/jsf/core"
8 xmlns:p="http://primefaces.org/ui"
9 xmlns:validator="http://mxchange.org/jsf/core/validators"
12 <ui:define name="document_admin_title">
13 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_SKILLS}" />
16 <ui:define name="content_header">
17 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_SKILLS}" />
20 <ui:define name="content">
21 <h:form id="form-list-skill">
25 value="#{skillListController.allSkills}"
27 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
28 filteredValue="#{skillListController.filteredSkills}"
30 rowKey="#{skill.skillId}"
32 resizableColumns="true"
33 rowsPerPageTemplate="5,10,20,50,100"
35 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_SKILLS}"
36 emptyMessage="#{msg.ADMIN_EMPTY_LIST_SKILLS}"
38 selectionMode="single"
39 selection="#{skillListController.selectedSkill}"
43 <f:facet name="header">
47 columnClasses="ui-grid-col-4,ui-grid-col-6,ui-grid-col-2"
53 columnClasses="ui-grid-4,ui-grid-8"
55 styleClass="ui-noborder"
59 value="#{msg.SEARCH_ALL_FIELDS}"
65 onkeyup="PF('skillList').filter()"
66 placeholder="#{msg.ENTER_KEYWORD}"
71 <p:spacer height="4" />
76 value="#{msg.SELECT_SHOWN_COLUMNS}"
77 styleClass="column-selector"
80 <p:columnToggler datasource="skillList" trigger="toggler" />
87 update="form-list-skill:skill-details"
88 oncomplete="PF('skillDialog').show()"
92 headerText="#{msg.ID_HEADER}"
93 sortBy="#{skill.skillId}"
97 outcome="admin_show_skill"
98 value="#{skill.skillId}"
99 title="#{msg.ADMIN_LINK_SHOW_SKILL_TITLE}"
101 <f:param name="skillId" value="#{skill.skillId}" />
106 headerText="#{msg.ADMIN_SKILL_NAME_HEADER}"
107 sortBy="#{skill.skillName}"
108 filterBy="#{skill.skillName}"
109 filterMatchMode="contains"
111 <h:outputText value="#{skill.skillName}"/>
115 headerText="#{msg.ADMIN_SKILL_STATUS_HEADER}"
116 sortBy="#{skill.skillStatus}"
117 filterBy="#{skill.skillStatus}"
120 <h:outputText value="#{project[skill.skillStatus.messageKey]}"/>
124 headerText="#{msg.ADMIN_SKILL_LAST_LOCKED_HEADER}"
125 sortBy="#{skill.skillLastLocked}"
126 filterBy="#{skill.skillLastLocked}"
127 filterMatchMode="contains"
129 <h:outputText value="#{skill.skillLastLocked}">
130 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
135 headerText="#{msg.ENTRY_CREATED_HEADER}"
136 sortBy="#{skill.skillEntryCreated}"
137 filterBy="#{skill.skillEntryCreated}"
138 filterMatchMode="contains"
140 <h:outputText value="#{skill.skillEntryCreated}">
141 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
146 headerText="#{msg.ENTRY_UPDATED_HEADER}"
147 sortBy="#{skill.skillEntryUpdated}"
148 filterBy="#{skill.skillEntryUpdated}"
149 filterMatchMode="contains"
151 <h:outputText value="#{skill.skillEntryUpdated}">
152 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
157 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
161 <p:menuButton value="#{msg.OPTIONS}">
163 outcome="admin_show_skill"
164 value="#{msg.ADMIN_LINK_SHOW_SHORT}"
165 title="#{msg.ADMIN_LINK_SHOW_SKILL_TITLE}"
167 <f:param name="skillId" value="#{skill.skillId}" />
171 outcome="admin_edit_skill"
172 value="#{msg.ADMIN_LINK_EDIT_SHORT}"
173 title="#{msg.ADMIN_LINK_EDIT_SKILL_TITLE}"
175 <f:param name="skillId" value="#{skill.skillId}" />
178 <p:menuitem outcome="admin_delete_skill">
180 styleClass="link-danger"
181 value="#{msg.ADMIN_LINK_DELETE_SHORT}"
182 title="#{msg.ADMIN_LINK_DELETE_SKILL_TITLE}"
184 <f:param name="skillId" value="#{skill.skillId}" />
194 header="#{msg.ADMIN_SINGLE_SKILL_DETAILS_HEADER}"
197 widgetVar="skillDialog"
202 <p:outputPanel id="skill-details">
203 <p:panelGrid columns="2" rendered="#{not empty skillListController.selectedSkill}">
204 <f:facet name="header">
205 <h:outputFormat value="#{msg.ADMIN_SKILL_DETAILS_HEADER}">
206 <f:param value="#{skillListController.selectedSkill.skillName}" />
207 <f:param value="#{skillListController.selectedSkill.skillId}" />
211 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.SKILL_ID_NUMBER_TITLE}" />
212 <h:outputText value="#{skillListController.selectedSkill.skillId}" />
223 <f:facet name="header">
224 <h:outputText value="#{msg.ADMIN_ADD_SKILL_TITLE}" />
227 <h:panelGroup styleClass="para" layout="block">
228 <h:outputText value="#{msg.ADMIN_ADD_SKILL_MINIMUM_DATA}" />
231 <h:panelGroup styleClass="para" layout="block">
232 <p:fieldset legend="#{msg.ADMIN_SKILL_LEGEND}">
235 columnClasses="ui-grid-col-4,ui-grid-col-8"
236 styleClass="ui-noborder"
238 <p:outputLabel for="skillName" value="#{msg.ADMIN_SKILL_NAME}" />
241 value="#{adminSkillActionController.skillName}"
245 requiredMessage="#{msg.ADMIN_SKILL_NAME_REQUIRED}"
247 <validator:skillNameValidator checkExisting="false" />
250 <p:outputLabel for="skillStatus" value="#{msg.ADMIN_SKILL_STATUS}" />
253 value="#{adminSkillActionController.skillStatus}"
255 filterMatchMode="contains"
257 <f:converter converterId="SkillStatusConverter" />
259 value="#{dataController.skillStatuses}"
261 itemValue="#{skillStatus}"
262 itemLabel="#{project[skillStatus.messageKey]}"
269 <f:facet name="footer">
270 <p:panelGrid columns="2" layout="grid">
273 value="#{msg.BUTTON_RESET_FORM}"
278 value="#{msg.BUTTON_ADMIN_ADD_SKILL}"
279 action="#{adminSkillActionController.addSkill()}"
280 update="form-list-skill:skillList"