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
1c2e7b20
Commit
1c2e7b20
authored
Jun 29, 2020
by
ls1947
Browse files
test data grid view for token
parent
3ca2f1bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/webapp/resources/css/kit.css
View file @
1c2e7b20
...
...
@@ -351,4 +351,9 @@ div.serviceBlockLink {
.ui-panel.grayback
.ui-panel-titlebar
{
color
:
#000000
;
background
:
#dddddd
;
}
.ui-datagrid.whitefoot
.ui-datagrid-footer
{
color
:
#000000
;
background
:
#ffffff
;
}
\ No newline at end of file
bwreg-webapp/src/main/webapp/user/twofa.xhtml
View file @
1c2e7b20
...
...
@@ -36,24 +36,24 @@
</p:repeat>
</p:panel>
<p:
panel
header=
"#{messages.twofa_list}"
rendered
=
"#{
!
twoFaUserBean.
readOnly}"
>
<p:panelGrid
columns=
"2
"
>
<p:repeat
var=
"token"
value=
"#{twoFaUserBean.tokenList}"
>
<p:panel
>
<div><h:outputText
value=
"#{token.serial}"
/></div
>
<div><h:outputText
value=
"#{token.
tokenType
}"
/></div>
<div><h:outputText
value=
"#{token.isactive}"
/></div
>
<p:commandButton
action=
"#{twoFaUserBean.disableT
oken
(
token
.serial)}"
value=
"Disable"
update=
"@form"
rendered
=
"#{token.isactive}"
/>
<p:commandButton
action=
"#{twoFaUserBean.
en
ableToken(token.serial)}"
value=
"
En
able"
update=
"@form"
rendered=
"#{
!
token.isactive}"
/>
</p:panel
>
</p:
repeat
>
<
/p:panelGrid
>
<
p:commandButton
action=
"#{twoFaUserBean.createAuthenticatorToken()}"
value=
"Create"
update=
"@form"
></p:commandButton
>
</p:
panel
>
<p:
dataGrid
var=
"token"
value
=
"#{twoFaUserBean.
tokenList}"
columns=
"1"
styleClass=
"whitefoot"
layout=
"grid"
style=
"margin-bottom: 16px;"
rendered=
"#{! twoFaUserBean.readOnly}
"
>
<f:facet
name=
"header"
>
#{messages.twofa_list}
</f:facet
>
<p:panel
styleClass=
"grayback"
style=
"margin-bottom: 0px;"
>
<f:facet
name=
"header"
>
<div><h:outputText
value=
"#{token.
serial
}"
/></div>
</f:facet
>
<div><h:outputText
value=
"#{t
oken
.
token
Type}"
/></div>
<div><h:outputText
value
=
"#{token.isactive}"
/>
</div>
<p:commandButton
action=
"#{twoFaUserBean.
dis
ableToken(token.serial)}"
value=
"
Dis
able"
update=
"@form"
rendered=
"#{token.isactive}"
/>
<p:commandButton
action=
"#{twoFaUserBean.enableToken(token.serial)}"
value=
"Enable"
update=
"@form"
rendered=
"#{! token.isactive}"
/
>
</p:
panel
>
<
f:facet
name=
"footer"
>
<p:commandButton
action=
"#{twoFaUserBean.createAuthenticatorToken()}"
value=
"Create"
update=
"@form"
></p:commandButton>
<
/f:facet
>
</p:
dataGrid
>
<p:panel
rendered=
"#{! twoFaUserBean.readOnly}"
>
<h:outputText
value=
"#{twoFaUserBean.createTokenResponse.detail.googleurl.img}"
escape=
"false"
/>
...
...
Write
Preview
Supports
Markdown
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