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:links="http://mxchange.org/jsf/core/links"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core"
9 xmlns:p="http://primefaces.org/ui"
12 <ui:define name="document_admin_title">
13 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_OPENING_TIMES}" />
16 <ui:define name="content_header">
17 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_OPENING_TIMES}" />
20 <ui:define name="content">
21 <h:form id="form-list-opening-times">
25 value="#{openingTimeListController.allOpeningTimes}"
27 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
28 filteredValue="#{openingTimeListController.filteredOpeningTimes}"
30 rowKey="#{openingTime.openingTimeId}"
32 resizableColumns="true"
33 rowsPerPageTemplate="5,10,20,50,100"
35 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_OPENING_TIMES}"
36 emptyMessage="#{msg.ADMIN_EMPTY_LIST_OPENING_TIMES}"
37 widgetVar="openingTimeList"
38 selectionMode="single"
39 selection="#{openingTimeListController.selectedOpeningTime}"
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('openingTimeList').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="openingTimeList" trigger="toggler" />
87 update="form-list-opening-times:opening-time-details"
88 oncomplete="PF('openingTimeDialog').show()"
92 headerText="#{msg.ID_HEADER}"
93 sortBy="#{openingTime.openingTimeId}"
97 outcome="admin_show_opening_time"
98 value="#{openingTime.openingTimeId}"
99 title="#{msg.ADMIN_LINK_SHOW_OPENING_TIME_TITLE}"
101 <f:param name="openingTimeId" value="#{openingTime.openingTimeId}" />
106 headerText="#{msg.ADMIN_START_WEEK_DAY}"
107 sortBy="#{openingTime.openingStartDay}"
108 filterBy="#{openingTime.openingStartDay}"
111 <f:facet name="filter">
112 <p:selectCheckboxMenu
113 label="#{msg.LABEL_WEEK_DAYS}"
114 onchange="PF('openingTimeList').filter()"
116 title="#{msg.FILTER_BY_MULTIPLE_WEEK_DAYS_TITLE}"
118 <f:converter converterId="DayOfTheWeekConverter" />
121 value="#{dataController.dayOfTheWeek}"
123 itemValue="#{dayOfWeek}"
124 itemLabel="#{dayOfWeek.toString()}"
126 </p:selectCheckboxMenu>
129 <h:outputText value="#{openingTime.openingStartDay.toString()}" />
133 headerText="#{msg.ADMIN_END_WEEK_DAY}"
134 sortBy="#{openingTime.openingEndDay}"
135 filterBy="#{openingTime.openingEndDay}"
138 <f:facet name="filter">
139 <p:selectCheckboxMenu
140 label="#{msg.LABEL_WEEK_DAYS}"
141 onchange="PF('openingTimeList').filter()"
143 title="#{msg.FILTER_BY_MULTIPLE_WEEK_DAYS_TITLE}"
145 <f:converter converterId="DayOfTheWeekConverter" />
148 value="#{dataController.dayOfTheWeek}"
150 itemValue="#{dayOfWeek}"
151 itemLabel="#{dayOfWeek.toString()}"
153 </p:selectCheckboxMenu>
156 <h:outputText value="#{openingTime.openingEndDay.toString()}" />
160 headerText="#{msg.ADMIN_START_TIME}"
161 sortBy="#{openingTime.openingStartTime}"
162 filterBy="#{openingTime.openingStartTime}"
165 <h:outputText value="#{openingTime.openingStartTime}">
166 <f:convertDateTime type="time" timeStyle="short" />
171 headerText="#{msg.ADMIN_END_TIME}"
172 sortBy="#{openingTime.openingEndTime}"
173 filterBy="#{openingTime.openingEndTime}"
176 <h:outputText value="#{openingTime.openingEndTime}">
177 <f:convertDateTime type="time" timeStyle="short" />
182 headerText="#{msg.ENTRY_CREATED_HEADER}"
183 sortBy="#{openingTime.openingTimeEntryCreated}"
184 filterBy="#{openingTime.openingTimeEntryCreated}"
185 filterMatchMode="contains"
187 <h:outputText value="#{openingTime.openingTimeEntryCreated}">
188 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
193 headerText="#{msg.ENTRY_UPDATED_HEADER}"
194 sortBy="#{openingTime.openingTimeEntryUpdated}"
195 filterBy="#{openingTime.openingTimeEntryUpdated}"
196 filterMatchMode="contains"
198 <h:outputText value="#{openingTime.openingTimeEntryUpdated}">
199 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
204 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
208 <p:menuButton value="#{msg.OPTIONS}">
209 <p:menuitem outcome="admin_show_opening_time" value="#{msg.ADMIN_LINK_SHOW_SHORT}" title="#{msg.ADMIN_LINK_SHOW_OPENING_TIME_TITLE}">
210 <f:param name="openingTimeId" value="#{openingTime.openingTimeId}" />
213 <p:menuitem outcome="admin_edit_opening_time" value="#{msg.ADMIN_LINK_EDIT_SHORT}" title="#{msg.ADMIN_LINK_EDIT_OPENING_TIME_TITLE}">
214 <f:param name="openingTimeId" value="#{openingTime.openingTimeId}" />
217 <p:menuitem outcome="admin_delete_opening_time">
218 <h:outputText styleClass="link-danger" value="#{msg.ADMIN_LINK_DELETE_SHORT}" title="#{msg.ADMIN_LINK_DELETE_OPENING_TIME_TITLE}" />
219 <f:param name="openingTimeId" value="#{openingTime.openingTimeId}" />
229 header="#{msg.ADMIN_SINGLE_OPENING_TIME_DETAILS_HEADER}"
232 widgetVar="openingTimeDialog"
237 <p:outputPanel id="opening-time-details">
238 <p:panelGrid columns="2" rendered="#{not empty openingTimeListController.selectedOpeningTime}">
239 <f:facet name="header">
240 <h:outputFormat value="#{msg.ADMIN_OPENING_TIME_DETAILS_HEADER}">
241 <f:param value="#{openingTimeListController.selectedOpeningTime.openingTimeId}" />
245 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.OPENING_TIME_ID_NUMBER_TITLE}" />
246 <h:outputText value="#{openingTimeListController.selectedOpeningTime.openingTimeId}" />
257 <f:facet name="header">
258 <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_TITLE}" />
261 <h:panelGroup styleClass="para" layout="block">
262 <h:outputText value="#{msg.ADMIN_ADD_OPENING_TIME_MINIMUM_DATA}" />
265 <ui:include src="/WEB-INF/templates/admin/business/opening_time/admin_form_opening_time.tpl" />
267 <f:facet name="footer">
268 <p:panelGrid columns="2" layout="grid">
271 value="#{msg.BUTTON_RESET_FORM}"
276 value="#{msg.BUTTON_ADMIN_ADD_OPENING_TIME}"
277 action="#{adminOpeningTimeController.addOpeningTime()}"
278 update="form-list-opening-times:openingTimeList"