{* $Id$ *} {title admpage="security" url="tiki-admin_ids.php"}{tr}IDS Rules{/tr}{/title}
{if isset($ruleinfo.id)} {button href="?add=1" class="btn btn-primary" _text="{tr}Add a new Rule{/tr}"} {/if}
{tabset name='tabs_admin_ids'} {* ---------------------- tab with list -------------------- *} {if $ids_rules|count > 0} {tab name="{tr}IDS Rules{/tr}"}
{* Use css menus as fallback for item dropdown action menu if javascript is not being used *} {section name=rule loop=$ids_rules} {$rule_id = $ids_rules[rule].id|escape} {/section}
{tr}Rule ID{/tr} {tr}Description{/tr} {tr}Tags{/tr} {tr}Impact{/tr}
{$rule_id} {$ids_rules[rule].description|escape} {$ids_rules[rule].tags|escape} {$ids_rules[rule].impact|escape} {actions} {strip} {icon name="edit" _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name="remove" _menu_text='y' _menu_icon='y' alt="{tr}Delete{/tr}"} {/strip} {/actions}
{/tab} {/if} {* ---------------------- tab with form -------------------- *} {if isset($ruleinfo.id) && $ruleinfo.id && !$ruleinfo.error} {$add_edit_rule_tablabel = "{tr}Edit Rule{/tr}"} {$rulename = "{$ruleinfo.name|escape}"} {else} {$add_edit_rule_tablabel = "{tr}Add a new rule{/tr}"} {$rulename = ""} {/if} {tab name="{$add_edit_rule_tablabel} {$rulename}"}

{ticket}
{tr}Rule Id must be numeric{/tr}
{if isset($ruleinfo.id) && $ruleinfo.id && !$ruleinfo.error} {else} {/if}
{/tab} {/tabset}