mirror of https://github.com/MISP/MISP
fix: [UI] Broken checkboxes for role permissions
parent
7563fb4a61
commit
757cf45715
|
@ -33,10 +33,8 @@
|
|||
?>
|
||||
</div>
|
||||
<div class="input clear"></div>
|
||||
<?php
|
||||
$counter = 1;
|
||||
foreach ($permFlags as $k => $flag):
|
||||
?>
|
||||
<div class="role-permissions">
|
||||
<?php foreach ($permFlags as $k => $flag): ?>
|
||||
<div class="permFlags<?php echo ' ' . ($flag['readonlyenabled'] ? 'readonlyenabled' : 'readonlydisabled'); ?>">
|
||||
<?php
|
||||
echo $this->Form->input($k, array(
|
||||
|
@ -48,23 +46,17 @@
|
|||
),
|
||||
'label' => $flag['text'],
|
||||
));
|
||||
if ($counter%3 == 0) echo "<div class='input clear'></div>";
|
||||
$counter++;
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php
|
||||
echo $this->Form->button(__('Edit'), array('class' => 'btn btn-primary'));
|
||||
echo $this->Form->end();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'admin', 'menuItem' => 'editRole'));
|
||||
?>
|
||||
|
||||
<?= $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'admin', 'menuItem' => 'editRole')); ?>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
checkRolePerms();
|
||||
|
@ -77,4 +69,3 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<?php echo $this->Js->writeBuffer();
|
||||
|
|
|
@ -2729,3 +2729,16 @@ td.rotate + td:not(.rotate) {
|
|||
#eventToggleButtons button span {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
#RoleAdminEditForm fieldset {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#RoleAdminEditForm .role-permissions {
|
||||
clear: both;
|
||||
width: 570px;
|
||||
}
|
||||
|
||||
#RoleAdminEditForm .role-permissions div.input {
|
||||
width: 160px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue