-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First step to limit the customer backend (#15)
* Add structure page * Roles and permission refactoring * make [last|first]name required and add acceptance tests for functional admin * fix tests and domain logic during user creation * fix issues with special role CAN_MANAGE_ONLY_OWNED_USERS and fix tests * fix missing permission
- Loading branch information
1 parent
22b87f6
commit e5df68a
Showing
40 changed files
with
1,280 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
parameters: | ||
|
||
pialab.user_creation_limit: 10 | ||
pialab.mono_structure: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$(document).on('click', 'a[data-modal]', (e) => { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
e.stopImmediatePropagation(); | ||
|
||
let button = $(e.currentTarget); | ||
let url = button.attr('href'); | ||
|
||
let modal = $('.ui.modal'); | ||
modal.hide(); | ||
|
||
$.ajax({ | ||
url: url, | ||
success: (html) => { | ||
let modal = $('.ui.modal'); | ||
|
||
modal.find('.header').html(button.attr('title')); | ||
|
||
modal | ||
.find('.content') | ||
.html(html); | ||
|
||
modal.find('.content .negative, .content .deny, .content .cancel').on('click', (e) => { | ||
$(e.currentTarget).closest('.ui.modal').modal('hide'); | ||
}); | ||
|
||
modal.find('.actions').remove(); | ||
|
||
$('.ui.checkbox').checkbox(); | ||
$('.ui.dropdown').dropdown(); | ||
|
||
modal.modal('show'); | ||
} | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.