edit page is clean now

This commit is contained in:
tim holloway 2024-09-21 16:27:41 -04:00
parent bea1cfa485
commit 3817173e5c
2 changed files with 18 additions and 16 deletions

View File

@ -7,7 +7,7 @@
<groupId>com.mousetech.gourmet</groupId> <groupId>com.mousetech.gourmet</groupId>
<artifactId>gourmetj</artifactId> <artifactId>gourmetj</artifactId>
<version>2.0.28</version> <version>2.0.30</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GourmetJ</name> <name>GourmetJ</name>

View File

@ -142,20 +142,22 @@
</p:column> </p:column>
</p:row> </p:row>
</p:panelGrid> </p:panelGrid>
<p:panel id="picPanel"> <p:panelGrid id="ppGrid" columns="2">
<img id="bigPix" <p:panel id="picPanel">
src="/img/picture/?dt=#{recipeDetailBean.currentTime}" /> <img id="bigPix"
</p:panel> src="/img/picture/?dt=#{recipeDetailBean.currentTime}" />
<p:panelGrid id="picButtonPanel" columns="2"> </p:panel>
<p:fileUpload id="ctlUpload" <p:panelGrid id="picButtonPanel" columns="1">
label="Upload Image" <p:fileUpload id="ctlUpload"
listener="#{recipeDetailBean.ajaxUploadImage}" label="Upload Image"
global="true" mode="advanced" multiple="false" listener="#{recipeDetailBean.ajaxUploadImage}"
update="picPanel" auto="true" sizeLimit="1000000" global="true" mode="advanced" multiple="false"
allowTypes="/(\.|\/)(gif|jpe?g|png|webp)$/" /> update="picPanel" auto="true" sizeLimit="1000000"
<p:commandButton id="ctlDelImg" allowTypes="/(\.|\/)(gif|jpe?g|png|webp)$/" />
value="Delete Image" <p:commandButton id="ctlDelImg"
action="#{recipeDetailBean.ajaxDeleteImage}" value="Delete Image"
update="picPanel" immediate="true" /> action="#{recipeDetailBean.ajaxDeleteImage}"
update="picPanel" immediate="true" />
</p:panelGrid>
</p:panelGrid> </p:panelGrid>
</ui:composition> </ui:composition>