This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/plugins/WemagSidebarManagement/admin/templates/edit_portlet.smarty

70 lines
1.8 KiB
Plaintext

{literal}
<style type="text/css">
tr.header {
background-color: #dddddd;
}
tr.evenRow {
background-color: #eeeeee;
}
tr.oddRow {
background-color: #dddddd;
}
tr.header td {
font-weight: bold;
}
</style>
{/literal}
<h2>{$oPortlet->sTitle}</h2>
<br />
<form method="POST">
<input type="hidden" name="cfgtitle" value="{$cfg->cfgtitle}" />
<table cellpadding=3 width="300">
<tr class="evenRow">
<td>Remove portlet completely</td>
<td><input type="checkbox" name="delete" value="1" {$cfg->delete_checked}</td>
</tr>
<tr class="oddRow">
<td>Collapsed by default</td>
<td><input type="checkbox" name="active" value="1" {$cfg->active_checked}></td>
</tr>
<tr class="evenRow">
<td>Order</td>
<td><input type="text" name="order" value="{$cfg->order}" size=3></td>
</tr>
</table>
<br />
<input type="submit" name="submit" value="Save" />
<br /><br />
{if $actions}
<h2>Actions</h2>
Disabling an action will not actually block it, but just remove it from the menu. So if the
user knows the url to the action, he will still be able to use it. Enabling a disabled
action here will not automaticly make it show up in the menu for all users. Every action has
it's own predefined rules for determining where it shows up. Disabling an action will
make sure that it, no matter what, never shows up.
<br /><br />
<table cellpadding=3 width="500">
<tr class="header">
<td>Disabled</td>
<td>Action</td>
</tr>
{foreach item=action from=$actions}
<tr class="{cycle values="evenRow,oddRow"}">
<td><input type="checkbox" name="disabled[{$action[2]}]" value="1" {$action[6]}/></td>
<td>{$action[5]} ({$action[2]})</td>
</tr>
{/foreach}
</table>
<br />
<input type="submit" name="submit" value="Save" />
{/if}
</form>