Commit 20de937d authored by michael.simon's avatar michael.simon
Browse files

Add show only flag on policies to register page

parent 416a166d
......@@ -277,7 +277,7 @@ public class RegisterServiceBean implements Serializable {
logger.debug("testing all checkboxes");
for(PolicyHolder ph : policyHolderList) {
if (! ph.getChecked()) {
if ((! ph.getPolicy().getShowOnly()) && (! ph.getChecked())) {
messageGenerator.addWarningMessage("need_check", "Zustimmung fehlt!", "Sie müssen allen Nutzungbedingungen zustimmen.");
return null;
}
......
......@@ -55,10 +55,10 @@
<div style="margin-top: 1em;">
<h:outputText value="#{bbCodeConverter.convert(policyHolder.policy.actualAgreement.agreement)}" escape="false"/>
</div>
<div style="margin-top: 1em;">
<p:outputPanel rendered="#{not policyHolder.policy.showOnly}" style="margin-top: 1em;">
<h:selectBooleanCheckbox value="#{policyHolder.checked}" />
<h:outputText value="#{messages.accept_tou}" />
</div>
</p:outputPanel>
</ui:repeat>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment