Nuevo plugin Additionals 2.0.20

This commit is contained in:
Manuel Cillero 2019-06-16 12:53:09 +02:00
parent a2a901b71b
commit 93e1e28683
354 changed files with 40514 additions and 0 deletions

View 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);
}
});
});