Commit 921e765c authored by Aaron Wells's avatar Aaron Wells

Fixing regression from theme update, where pages couldn't be added to new collections

Bug 1199563

Change-Id: I1f57ed79f410b627b120c1f1b28d2b76d3323c8d
parent 5e2f3e6d
......@@ -5,9 +5,6 @@
<div id="collectionpageswrap">
<div id="collectionpages">
<h3>{str tag=Collection section=collection}</h3>
{if !$views}
<div class="message">{str tag=noviews section=collection}</div>
{else}
<fieldset id="pagestoadd">
<legend>{str tag=addviewstocollection section=collection}</legend>
{if $viewsform}
......@@ -16,36 +13,39 @@
{str tag=noviewsavailable section=collection}
{/if}
</fieldset>
<table id="collectionviews" class="fullwidth">
<tbody>
{foreach from=$views.views item=view}
<tr class="{cycle values='r0,r1'}">
{if $views.count > 1}
<td class="displayordercontrols btns2">
{if $view->displayorder == $views.min}
<div id="viewdisplayorder_{$view->view}" class="justdown">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=down"><img src="{theme_url filename='images/btn_movedown.png'}" alt="Move Down" ></a>
</div>
{elseif $view->displayorder == $views.max}
<div id="viewdisplayorder_{$view->view}" class="justup">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=up"><img src="{theme_url filename='images/btn_moveup.png'}" alt="Move Up" ></a>
</div>
{if !$views}
<div class="message">{str tag=noviews section=collection}</div>
{else}
<table id="collectionviews" class="fullwidth">
<tbody>
{foreach from=$views.views item=view}
<tr class="{cycle values='r0,r1'}">
{if $views.count > 1}
<td class="displayordercontrols btns2">
{if $view->displayorder == $views.min}
<div id="viewdisplayorder_{$view->view}" class="justdown">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=down"><img src="{theme_url filename='images/btn_movedown.png'}" alt="Move Down" ></a>
</div>
{elseif $view->displayorder == $views.max}
<div id="viewdisplayorder_{$view->view}" class="justup">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=up"><img src="{theme_url filename='images/btn_moveup.png'}" alt="Move Up" ></a>
</div>
{else}
<div id="viewdisplayorder_{$view->view}">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=up"><img src="{theme_url filename='images/btn_moveup.png'}" alt="Move Up" ></a>
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=down"><img src="{theme_url filename='images/btn_movedown.png'}" alt="Move Down" ></a>
</div>
{/if}
</td>
{else}
<div id="viewdisplayorder_{$view->view}">
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=up"><img src="{theme_url filename='images/btn_moveup.png'}" alt="Move Up" ></a>
<a href="{$displayurl}&amp;view={$view->view}&amp;direction=down"><img src="{theme_url filename='images/btn_movedown.png'}" alt="Move Down" ></a>
</div>
<td>&nbsp;</td>
{/if}
</td>
{else}
<td>&nbsp;</td>
{/if}
<td><label><a href="{$view->fullurl}">{$view->title}</a></label></td>
<td><div class="fr">{$view->remove|safe}</div></td>
</tr>
{/foreach}
</tbody>
</table>
<td><label><a href="{$view->fullurl}">{$view->title}</a></label></td>
<td><div class="fr">{$view->remove|safe}</div></td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
<div class="cb"></div>
</div></div>
......
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