Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
17
plugins/additionals/app/views/roles/_additionals_form.html.slim
Executable file
17
plugins/additionals/app/views/roles/_additionals_form.html.slim
Executable file
|
@ -0,0 +1,17 @@
|
|||
p
|
||||
= f.check_box :hide, disabled: @role.users_visibility != 'members_of_visible_projects'
|
||||
em.info
|
||||
= t(:info_hidden_roles_html)
|
||||
|
||||
javascript:
|
||||
$(function() {
|
||||
$('#role_users_visibility').change(function() {
|
||||
var uv = $("#role_users_visibility").val();
|
||||
if (uv == 'members_of_visible_projects') {
|
||||
$("#role_hide").prop('disabled', false);
|
||||
} else {
|
||||
$("#role_hide").prop('checked', false);
|
||||
$("#role_hide").prop('disabled', true);
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue