Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XWIKI-22191: Account disabling and password changing action links should be buttons #3148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ body {
}
}

/* Remove the underlining from links with the btn class.
Those are already styled differently from their neighboring text. */
& a.btn {
/* Remove the underlining from links styled like buttons.
Those are already different enough from their neighboring text. */
& a.btn,
& a.button,
& .buttonwrapper a {
.not-inline-link();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ $services.localization.render('platform.core.profile.category.profile.disabled')
#set ($enableClass = "hidden")
#set ($disableClass = "")
#end
<a href="#" id="enable" class="btn btn-success $enableClass">$services.icon.renderHTML('unlock') $services.localization.render('platform.core.profile.category.profile.enableAccount')</a>
<a href="#" id="disable" class="btn btn-warning $disableClass">$services.icon.renderHTML('lock') $services.localization.render('platform.core.profile.category.profile.disableAccount')</a>
<button id="enable" class="btn btn-success $enableClass">$services.icon.renderHTML('unlock') $services.localization.render('platform.core.profile.category.profile.enableAccount')</button>
<button id="disable" class="btn btn-warning $disableClass">$services.icon.renderHTML('lock') $services.localization.render('platform.core.profile.category.profile.disableAccount')</button>
#end
<div class='userInfo'>
#if($xcontext.action == 'view' && $hasEdit)
Expand Down