Fixed some template errors

This commit is contained in:
azett 2022-02-20 14:26:16 +01:00
parent 96934bf2aa
commit 1f2f56538e
3 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,7 @@
{include file=plugin:commentcenter/listcomments}
<p>{$plang.sure}</p>
<div class="buttonbar">
{if $is_managing}
{if isset($is_managing) && $is_managing}
<input type="hidden" name="entry" value="{$entry}" />
{assign var="button_suff" value="_2"}
{else}

View File

@ -1,5 +1,6 @@
{include file=plugin:commentcenter/header}
{html_form}
{if !isset($polnew)}{assign var="polnew" value=false}{/if}
<h2>{if $polnew}{$plang.newpol}{else}{$plang.editpol}{/if}</h2>
<dl class="option-set">
<dt>{$plang.apply_to}</dt>
@ -8,7 +9,7 @@
<label for="all_entries">{$plang.all_entries}</label><br />
<input type="radio" name="apply_to" id="some_entries" value="some_entries"{if isset($policy.entry) and !empty($policy.entry)} checked="checked"{/if} />
<label for="some_entries">{$plang.some_entries}</label><br />
<input type="radio" name="apply_to" id="properties" value="properties"{if !$polnew && isset($policy.is_all) & !$policy.is_all & isset($policy.entry) & empty($policy.entry)} checked="checked"{/if} />
<input type="radio" name="apply_to" id="properties" value="properties"{if !$polnew && isset($policy.is_all) && !$policy.is_all & isset($policy.entry) & empty($policy.entry)} checked="checked"{/if} />
<label for="properties">{$plang.properties}</label><br />
</dd>
<dt><label for="behavoir">{$plang.behavoir}</label></dt>

View File

@ -14,9 +14,9 @@
<td class="main-cell">
{if isset($delete)}<input type="hidden" name="del_policy[]" value="{$id}" />
{/if}
{if $policy.is_all}
{if isset($policy.is_all) && $policy.is_all}
{$plang.all_entries}
{elseif is_array($policy.entry) && count($policy.entry)>0}
{elseif isset($policy.entry) && is_array($policy.entry) && count($policy.entry)>0}
{$plang.fol_entries}
<ul>
{foreach from=$policy.entry item=entry}
@ -29,7 +29,7 @@
<li><span title="{$policy.entry}">{$policy.entry|idToSubject}</span></li>
</ul>
{else}
{if count($policy.categories)>0}
{if isset($policy.categories) && count($policy.categories)>0}
<p>{$plang.fol_cats}
{$policy.categories|@filed}</p>
{/if}