2019-10-10 18:28:58 +02:00
|
|
|
{include file='ls:top.tpl'}
|
|
|
|
<div id='LSaccessRightsMatrixView'>
|
|
|
|
<h1>{$pagetitle}</h1>
|
|
|
|
<ul class="LSaccessRightsMatrixView_tabs">
|
|
|
|
{foreach $LSobjects as $obj => $obj_conf}
|
|
|
|
<li{if $LSobject==$obj} class="LSaccessRightsMatrixView_active_tab"{/if}><a href="addon_view.php?LSaddon=LSaccessRightsMatrixView&view=accessRightsMatrix&LSobject={$obj}">{$obj_conf.label}</a></li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class='LSaccessRightsMatrixView_tab_content'>
|
|
|
|
<h2>{$LSobjects[$LSobject]['label']}</h2>
|
|
|
|
|
2019-10-24 17:44:34 +02:00
|
|
|
<table class="table-header-rotated">
|
2019-10-10 18:28:58 +02:00
|
|
|
<thead>
|
2019-10-24 17:44:34 +02:00
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{tr msg="Attributes / Profiles"}
|
|
|
|
<div id="LSaccessRightsMatrixView_legend">
|
|
|
|
<label>{tr msg="Legend:"}</label>
|
|
|
|
<span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span> = {tr msg="Readable"}
|
|
|
|
|
|
|
|
|
<span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span> = {tr msg="Readable / Writable"}
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
{foreach $LSprofiles as $name => $label}
|
|
|
|
<th class="rotate-45"><div><span>{if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if} {$label}</span></div></th>
|
|
|
|
{/foreach}
|
|
|
|
</tr>
|
2019-10-10 18:28:58 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{foreach $LSobjects[$LSobject]['attrs'] as $name => $conf}
|
|
|
|
<tr>
|
2019-10-24 17:44:34 +02:00
|
|
|
<th class="row-header">{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th>
|
2019-10-14 13:23:33 +02:00
|
|
|
{foreach $LSprofiles as $profil => $profil_label}
|
|
|
|
<td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}">
|
2019-10-10 18:28:58 +02:00
|
|
|
{if $conf.rights[$profil] == 'r'}
|
2019-10-24 17:44:34 +02:00
|
|
|
<span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span>
|
2019-10-10 18:28:58 +02:00
|
|
|
{elseif $conf.rights[$profil] == 'w'}
|
2019-10-24 17:44:34 +02:00
|
|
|
<span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span>
|
2019-10-10 18:28:58 +02:00
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
{/foreach}
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-10-14 12:34:42 +02:00
|
|
|
|
|
|
|
<h3>{tr msg="Their relations with other objects"}</h3>
|
|
|
|
{if !empty($LSobjects[$LSobject]['relations'])}
|
2019-10-24 17:44:34 +02:00
|
|
|
<table class="table-header-rotated">
|
2019-10-14 12:34:42 +02:00
|
|
|
<thead>
|
2019-10-24 17:44:34 +02:00
|
|
|
<th>
|
|
|
|
{tr msg="Relations / Profiles"}
|
|
|
|
<div id="LSaccessRightsMatrixView_legend">
|
|
|
|
<label>{tr msg="Legend:"}</label>
|
|
|
|
<span class='LSaccessRightsMatrixView_readable'>R</span> = {tr msg="Readable"}
|
|
|
|
|
|
|
|
|
<span class='LSaccessRightsMatrixView_writable'>R/W</span> = {tr msg="Readable / Writable"}
|
|
|
|
</div>
|
|
|
|
</th>
|
2019-10-14 12:34:42 +02:00
|
|
|
{foreach $LSprofiles as $name => $label}
|
2019-10-24 17:44:34 +02:00
|
|
|
<th class="rotate-45"><div><span>{if $name != $label}<img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/>{/if} {$label}</span></div></th>
|
2019-10-14 12:34:42 +02:00
|
|
|
{/foreach}
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{foreach $LSobjects[$LSobject]['relations'] as $name => $conf}
|
|
|
|
<tr>
|
2019-10-24 17:44:34 +02:00
|
|
|
<th class="row-header">{$conf.label} <img class='LStips' src="{img name='help'}" alt='?' title='{$name|escape:'htmlall'}'/></th>
|
2019-10-14 13:23:33 +02:00
|
|
|
{foreach $LSprofiles as $profil => $profil_label}
|
|
|
|
<td class='LStips' title="{if $profil != $profil_label}{$profil_label} ({$profil}){else}{$profil}{/if}">
|
2019-10-14 12:34:42 +02:00
|
|
|
{if $conf.rights[$profil] == 'r'}
|
2019-10-24 17:44:34 +02:00
|
|
|
<span class='LSaccessRightsMatrixView_readable'>{tr msg="R"}</span>
|
2019-10-14 12:34:42 +02:00
|
|
|
{elseif $conf.rights[$profil] == 'w'}
|
2019-10-24 17:44:34 +02:00
|
|
|
<span class='LSaccessRightsMatrixView_writable'>{tr msg="R/W"}</span>
|
2019-10-14 12:34:42 +02:00
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
{/foreach}
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<p>{tr msg="This object type has no configured relation."}
|
|
|
|
{/if}
|
2019-10-10 18:28:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{include file='ls:bottom.tpl'}
|