Skip to content

Commit

Permalink
fix #44
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgregorio committed Dec 22, 2018
1 parent 0d6cd7e commit 7327870
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/main/webapp/secured/configuration/group/formGroup.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ap="http://xmlns.jcp.org/jsf/composite/application/ui"
template="/template/mainTemplate.xhtml">

<f:metadata>
Expand Down Expand Up @@ -45,7 +46,7 @@
<p:messages id="messages" closable="true" />
</div>
</div>
<div class="box box-#{profileBean.currentThemeColorName}">
<div jsf:id="boxForm" class="box box-#{profileBean.currentThemeColorName}">
<div class="box-header with-border">
<h3 class="box-title">
<p:selectBooleanCheckbox value="#{groupBean.value.active}"
Expand Down Expand Up @@ -99,12 +100,16 @@
</div>
<div class="box-footer align-right">
<p:commandButton update="groupForm"
value="#{menu['save']}"
value="#{menu['save']}"
action="#{groupBean.doSave()}"
onstart="PF('blocker').show()"
oncomplete="PF('blocker').hide()"
styleClass="btn btn-flat btn-success"
rendered="#{groupBean.viewState eq 'ADDING'}"/>
<p:commandButton value="#{menu['update']}"
onstart="PF('blocker').show()"
action="#{groupBean.doUpdate()}"
oncomplete="PF('blocker').hide()"
update="groupForm pageDescription"
styleClass="btn btn-flat btn-success"
rendered="#{groupBean.viewState eq 'EDITING'}"/>
Expand All @@ -115,6 +120,7 @@
styleClass="btn btn-flat btn-primary"/>
</div>
</div>
<ap:blocker target="boxForm"/>
</h:form>
</ui:define>
</ui:composition>
8 changes: 7 additions & 1 deletion src/main/webapp/secured/configuration/user/formUser.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ap="http://xmlns.jcp.org/jsf/composite/application/ui"
template="/template/mainTemplate.xhtml">

<f:metadata>
Expand Down Expand Up @@ -45,7 +46,7 @@
<p:messages id="messages" closable="true" />
</div>
</div>
<div class="box box-#{profileBean.currentThemeColorName}">
<div jsf:id="boxForm" class="box box-#{profileBean.currentThemeColorName}">
<div class="box-header with-border">
<h3 class="box-title">
<p:selectBooleanCheckbox value="#{userBean.value.active}"
Expand Down Expand Up @@ -141,10 +142,14 @@
<p:commandButton update="userForm"
value="#{menu['save']}"
action="#{userBean.doSave()}"
onstart="PF('blocker').show()"
oncomplete="PF('blocker').hide()"
styleClass="btn btn-flat btn-success"
rendered="#{userBean.viewState eq 'ADDING'}"/>
<p:commandButton value="#{menu['update']}"
onstart="PF('blocker').show()"
action="#{userBean.doUpdate()}"
oncomplete="PF('blocker').hide()"
update="userForm pageDescription"
styleClass="btn btn-flat btn-success"
rendered="#{userBean.viewState eq 'EDITING'}"/>
Expand All @@ -155,6 +160,7 @@
action="#{userBean.changeToListing()}"/>
</div>
</div>
<ap:blocker target="boxForm"/>
</h:form>
</ui:define>
</ui:composition>
10 changes: 8 additions & 2 deletions src/main/webapp/secured/registration/author/formAuthor.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ap="http://xmlns.jcp.org/jsf/composite/application/ui"
template="/template/mainTemplate.xhtml">

<f:metadata>
Expand Down Expand Up @@ -45,7 +46,7 @@
<p:messages id="messages" closable="true" />
</div>
</div>
<div class="box box-#{profileBean.currentThemeColorName}">
<div jsf:id="boxForm" class="box box-#{profileBean.currentThemeColorName}">
<div class="box-header with-border">
<h3 class="box-title">
<p:selectBooleanCheckbox value="#{authorBean.value.active}"
Expand Down Expand Up @@ -81,12 +82,16 @@
</div>
<div class="box-footer align-right">
<p:commandButton update="authorForm"
value="#{menu['save']}"
value="#{menu['save']}"
onstart="PF('blocker').show()"
action="#{authorBean.doSave()}"
oncomplete="PF('blocker').hide()"
styleClass="btn btn-flat btn-success"
rendered="#{authorBean.viewState eq 'ADDING'}"/>
<p:commandButton value="#{menu['update']}"
onstart="PF('blocker').show()"
action="#{authorBean.doUpdate()}"
oncomplete="PF('blocker').hide()"
update="authorForm pageDescription"
styleClass="btn btn-flat btn-success"
rendered="#{authorBean.viewState eq 'EDITING'}"/>
Expand All @@ -97,6 +102,7 @@
action="#{authorBean.changeToListing()}"/>
</div>
</div>
<ap:blocker target="boxForm"/>
</h:form>
</ui:define>
</ui:composition>
8 changes: 7 additions & 1 deletion src/main/webapp/secured/registration/book/formBook.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ap="http://xmlns.jcp.org/jsf/composite/application/ui"
template="/template/mainTemplate.xhtml">

<f:metadata>
Expand Down Expand Up @@ -45,7 +46,7 @@
<p:messages id="messages" closable="true" />
</div>
</div>
<div class="box box-#{profileBean.currentThemeColorName}">
<div jsf:id="boxForm" class="box box-#{profileBean.currentThemeColorName}">
<div class="box-header with-border">
<h3 class="box-title">
<p:selectBooleanCheckbox value="#{bookBean.value.active}"
Expand Down Expand Up @@ -124,10 +125,14 @@
<p:commandButton update="bookForm"
value="#{menu['save']}"
action="#{bookBean.doSave()}"
onstart="PF('blocker').show()"
oncomplete="PF('blocker').hide()"
styleClass="btn btn-flat btn-success"
rendered="#{bookBean.viewState eq 'ADDING'}"/>
<p:commandButton value="#{menu['update']}"
onstart="PF('blocker').show()"
action="#{bookBean.doUpdate()}"
oncomplete="PF('blocker').hide()"
update="bookForm pageDescription"
styleClass="btn btn-flat btn-success"
rendered="#{bookBean.viewState eq 'EDITING'}"/>
Expand All @@ -138,6 +143,7 @@
action="#{bookBean.changeToListing()}"/>
</div>
</div>
<ap:blocker target="boxForm"/>
</h:form>
</ui:define>
</ui:composition>

0 comments on commit 7327870

Please sign in to comment.