fix nested forms

This commit is contained in:
real_nowhereman 2011-04-15 17:09:39 +00:00
parent 6721d8098d
commit 2d1174228f
2 changed files with 2 additions and 10 deletions

View File

@ -1,9 +1,5 @@
<h2>{$panelstrings.head}</h2>
{html_form}
{validate_init form=$admin_panel_id}
{validate id="subject" message=$panelstrings.error.subject append="error"}
{validate id="content" message=$panelstrings.error.content append="error"}
{include file='shared:errorlist.tpl'}
@ -17,6 +13,7 @@
</div>
{html_form}
{entry content=$post alwaysshow=true}
@ -78,8 +75,8 @@
{/entry}
{/entry_block}
{/html_form}
{/entry_block}
{if $smarty.get.entry }

View File

@ -1,10 +1,5 @@
<h2>{$panelstrings.head}</h2>
{validate_init form=$admin_panel_id}
{validate id="subject" message=$panelstrings.error.subject append="error"}
{validate id="content" message=$panelstrings.error.content append="error"}
{validate id="id" message=$panelstrings.error.id append="error"}
{include file='shared:errorlist.tpl'}