Commit 24e0805d authored by Richard Mansfield's avatar Richard Mansfield

Put edit view tabs in separate template

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent d102f6ca
......@@ -4,11 +4,8 @@
{/if}
{if $edittitleurl}
<h1>{$viewtitle}</h1>
<ul class="in-page-tabs edit-view-tabs">
<li><a href="{$WWWROOT}view/edit.php?id={$viewid}">{str tag=edittitleanddescription section=view}</a></li>
<li><a class="current-tab" href="{$WWWROOT}view/blocks.php?id={$viewid}">{str tag=editcontent section=view}</a></li>
</ul>
<h1>{$viewtitle}</h1>
{include file="view/editviewtabs.tpl" selected='content'}
<div class="subpage rel">
{/if}
......
{include file="header.tpl"}
<h1>{$viewtitle}</h1>
<ul class="in-page-tabs edit-view-tabs">
<li><a class="current-tab" href="{$WWWROOT}view/edit.php?id={$viewid}">{str tag=edittitleanddescription section=view}</a></li>
<li><a href="{$WWWROOT}view/blocks.php?id={$viewid}">{str tag=editcontent section=view}</a></li>
</ul>
<h1>{$viewtitle}</h1>
{include file="view/editviewtabs.tpl" selected='title'}
<div class="subpage rel">
{$editview|safe}
</div>
......
<ul class="in-page-tabs edit-view-tabs">
<li><a{if $selected == 'title'} class="current-tab"{/if} href="{$WWWROOT}view/edit.php?id={$viewid}">{str tag=edittitleanddescription section=view}</a></li>
<li><a{if $selected == 'content'} class="current-tab"{/if} href="{$WWWROOT}view/blocks.php?id={$viewid}">{str tag=editcontent section=view}</a></li>
</ul>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment