29 lines
998 B
Smarty
29 lines
998 B
Smarty
{extends "windowFrame.tpl"}
|
|
|
|
{block body_class}class="panel_frame"{/block}
|
|
|
|
{block content}
|
|
<div class="container-fluid" id="section-relations">
|
|
<legend>{'sectionSearch'|translate:'parameters'}</legend>
|
|
<form name="editform" action="launch.php?s={$smarty.get.s}&acn=edit&ID={$body.ID}" method="POST" class="form-horizontal" id="sections">
|
|
<input type="hidden" name="isSubmitted" value="1">
|
|
{include '[shared]tree.tpl'}
|
|
<div class="tree">
|
|
<ul>
|
|
<li>
|
|
{menu data=$body.tree category0=$body.category0 selected=$body.selected opened=$body.opened}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
$('#section-relations').on('click', 'input[type=checkbox]', function (e) {
|
|
var children = $(e.target).closest('li').find('input')
|
|
var checked = $(e.target).prop('checked')
|
|
children.prop('checked', checked)
|
|
})
|
|
</script>
|
|
{/block}
|