Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
20de937d
Commit
20de937d
authored
Dec 21, 2020
by
michael.simon
Browse files
Add show only flag on policies to register page
parent
416a166d
Changes
2
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/RegisterServiceBean.java
View file @
20de937d
...
...
@@ -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
;
}
...
...
bwreg-webapp/src/main/webapp/user/register-service.xhtml
View file @
20de937d
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment