|
|
|
@ -15,13 +15,14 @@ |
|
|
|
|
<h:outputScript name="js/scrolltable.js" /> |
|
|
|
|
<style> |
|
|
|
|
.deDescl { |
|
|
|
|
width: 15em; |
|
|
|
|
text-align: left; |
|
|
|
|
|
|
|
|
|
width: 15em; |
|
|
|
|
text-align: left; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.deDescr { |
|
|
|
|
text-align: left; |
|
|
|
|
text-align: left; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.ingSel { |
|
|
|
|
width: 3em; |
|
|
|
|
text-align: center; |
|
|
|
@ -54,7 +55,9 @@ |
|
|
|
|
<p:tab id="overviewTab" |
|
|
|
|
title="Description" |
|
|
|
|
> |
|
|
|
|
<p:panelGrid columns="2" columnClasses="deDescl, deDescr"> |
|
|
|
|
<p:panelGrid columns="2" |
|
|
|
|
columnClasses="deDescl, deDescr" |
|
|
|
|
> |
|
|
|
|
<f:facet name="header">Description</f:facet> |
|
|
|
|
<p:outputLabel for="@next" |
|
|
|
|
value="Title" |
|
|
|
@ -149,13 +152,15 @@ |
|
|
|
|
rows="10" cols="45" |
|
|
|
|
value="#{recipeDetailBean.recipe.description}" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panel id="picPanel"> |
|
|
|
|
<img id="bigPix" |
|
|
|
|
src="/img/picture/?dt=#{recipeDetailBean.currentTime}" |
|
|
|
|
/> |
|
|
|
|
</p:panel> |
|
|
|
|
<p:panelGrid id="picButtonPanel" columns="2"> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
<p:panel id="picPanel"> |
|
|
|
|
<img id="bigPix" |
|
|
|
|
src="/img/picture/?dt=#{recipeDetailBean.currentTime}" |
|
|
|
|
/> |
|
|
|
|
</p:panel> |
|
|
|
|
<p:panelGrid id="picButtonPanel" |
|
|
|
|
columns="2" |
|
|
|
|
> |
|
|
|
|
<p:fileUpload id="ctlUpload" |
|
|
|
|
label="Upload Image" |
|
|
|
|
listener="#{recipeDetailBean.ajaxUploadImage}" |
|
|
|
@ -165,14 +170,14 @@ |
|
|
|
|
auto="true" |
|
|
|
|
sizeLimit="1000000" |
|
|
|
|
allowTypes="/(\.|\/)(gif|jpe?g|png|webp)$/" |
|
|
|
|
/> |
|
|
|
|
/> |
|
|
|
|
<p:commandButton id="ctlDelImg" |
|
|
|
|
value="Delete Image" |
|
|
|
|
action="#{recipeDetailBean.ajaxDeleteImage}" |
|
|
|
|
update="picPanel" |
|
|
|
|
immediate="true" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
action="#{recipeDetailBean.ajaxDeleteImage}" |
|
|
|
|
update="picPanel" |
|
|
|
|
immediate="true" |
|
|
|
|
/> |
|
|
|
|
</p:panelGrid> |
|
|
|
|
</p:tab> |
|
|
|
|
<p:tab id="ingredientsTab" |
|
|
|
|
title="Ingredients" |
|
|
|
@ -396,23 +401,28 @@ |
|
|
|
|
action="recipeDetails.jsf" |
|
|
|
|
/> |
|
|
|
|
<p:commandButton id="doHome" value="Home" |
|
|
|
|
icon="ui-icon-home" |
|
|
|
|
ajax="false" immediate="true" |
|
|
|
|
action="main.jsf" |
|
|
|
|
/> |
|
|
|
|
icon="ui-icon-home" ajax="false" |
|
|
|
|
immediate="true" action="main.jsf" |
|
|
|
|
/> |
|
|
|
|
</h:form> |
|
|
|
|
</p:panel> |
|
|
|
|
<!-- --> |
|
|
|
|
<p:growl id="growl" showDetail="true" /> |
|
|
|
|
<!-- Note timeouts must be less than |
|
|
|
|
session timeout in application properties--> |
|
|
|
|
<p:growl id="growl" showDetail="true" sticky="true" /> |
|
|
|
|
<h:form id="frmTimeout"> |
|
|
|
|
<p:idleMonitor |
|
|
|
|
timeout="#{userSession.sessionTimeoutInterval}" |
|
|
|
|
> |
|
|
|
|
<p:ajax id="ajaxIdle" event="idle" |
|
|
|
|
listener="#{userSession.sessionIdleListener}" |
|
|
|
|
update="growl" |
|
|
|
|
/> |
|
|
|
|
</p:idleMonitor> |
|
|
|
|
<p:idleMonitor timeout="1500000"> |
|
|
|
|
<p:ajax id="ajaxIdle" event="idle" |
|
|
|
|
listener="#{cookieBean.sessionIdleListener}" |
|
|
|
|
update="growl" |
|
|
|
|
/> |
|
|
|
|
</p:idleMonitor> |
|
|
|
|
<p:idleMonitor timeout="1900000"> |
|
|
|
|
<p:ajax id="ajaxIdle" event="idle" |
|
|
|
|
listener="#{cookieBean.sessionTimeout}" |
|
|
|
|
update="growl" |
|
|
|
|
oncomplete="window.location='#{request.contextPath}/main.jsf'" |
|
|
|
|
/> |
|
|
|
|
</p:idleMonitor> |
|
|
|
|
</h:form> |
|
|
|
|
<!-- --> |
|
|
|
|
<p:dialog id="addGroupDlg" widgetVar="addGroupDlg"> |
|
|
|
@ -444,7 +454,9 @@ |
|
|
|
|
<p:dialog id="editShopcatDlg" |
|
|
|
|
widgetVar="editShopcatDlg" |
|
|
|
|
> |
|
|
|
|
<ui:include src="/WEB-INF/layout/dialog/editShopcat.xhtml" /> |
|
|
|
|
<ui:include |
|
|
|
|
src="/WEB-INF/layout/dialog/editShopcat.xhtml" |
|
|
|
|
/> |
|
|
|
|
</p:dialog> |
|
|
|
|
</ui:define> |
|
|
|
|
</ui:composition> |
|
|
|
|