{extends 'layout_view.tpl'} {block name="navigation"} {if $tiki_p_admin eq 'y'}
{button href="tiki-admin.php?page=community" _icon_name="settings" _text="{tr}Community{/tr}" _class="tips" _title=":{tr}Community Control Panel{/tr}"} {* former add_dracula() *} {$headerlib->add_jsfile('lib/dracula/raphael-min.js', true)} {$headerlib->add_jsfile('lib/dracula/graffle.js', true)} {$headerlib->add_jsfile('lib/dracula/graph.js', true)}
{jq} $('#graph-draw').click(function(e) { var width = $window.width() - 50; var height = $window.height() - 130; if (screen.width < 768) width = 1400; $('#graph-canvas') .empty() .css('width', width) .css('height', height) .dialog({ title: "Events", width: width + 30, height: height + 30 }) .drawGraph(); return false; }); {/jq}
{/if} {/block} {block name="title"} {title}{tr}Activity Rules{/tr}{/title} {/block} {block name="content"}
{* table-responsive class cuts off css drop-down menus *} {foreach from=$rules item=rule} {/foreach}
{tr}ID{/tr} {tr}Status{/tr} {tr}Event Type{/tr} {tr}Rule Type{/tr} {tr}Description{/tr}
{$rule.ruleId|escape} {if $rule.status eq 'enabled'} {icon name="toggle-on"} {elseif $rule.status eq 'disabled'} {icon name="toggle-off"} {else} {icon name="warning"} {/if} {$rule.eventType|escape} {$ruleTypes[$rule.ruleType]|escape} {$rule.notes|escape} {actions} {strip} {icon name="edit" _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {if $rule.ruleType eq "record"} {if $rule.status eq "disabled"} {icon name="toggle-on" _menu_text='y' _menu_icon='y' alt="{tr}Enable{/tr}"} {elseif $rule.status eq "enabled"} {icon name="toggle-off" _menu_text='y' _menu_icon='y' alt="{tr}Disable{/tr}"} {/if} {/if} {if $rule.ruleType eq "sample" or $rule.ruleType eq "record"} {icon name="exchange" _menu_text='y' _menu_icon='y' alt="{tr}Change Rule Type{/tr}"} {/if} {icon name="delete" _menu_text='y' _menu_icon='y' alt="{tr}Delete{/tr}"} {/strip} {/actions}
{/block}