Commit 68d57850 authored by Liam Sharpe's avatar Liam Sharpe Committed by Aaron Wells

WIP fancying up the admin area (Bootstrap)

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I1cb47169e96c91aa1dbd65ebd6eb5318f58c9496
parent bcf0eb37
{include file='header.tpl'}
<div class="panel panel-default panel-body">
{$institutionselector|safe}
{if $institutiondata}
<div id="site-stats-wrap">
<div class="site-stats-left">
{include file='admin/users/stats.tpl' cron=1}
</div>
<div class="site-stats-right">
<div class="tabswrap"><h3 class="rd-tab-title"><a href="#">{str tag=tabs}<span class="rd-tab"></span></a></h3>
<ul class="in-page-tabs">
{foreach from=$subpages item=subpage}
<li{if $subpage == $type} class="current-tab"{/if}><a {if $subpage == $type}class="current-tab" {/if}href="{$WWWROOT}admin/users/statistics.php?institution={$institutiondata.name}&type={$subpage}">{str tag=$subpage}<span class="accessible-hidden sr-only">({str tag=tab}{if $subpage == $type} {str tag=selected}{/if})</span></a></li>
{/foreach}
</ul></div>
{$institutionselector|safe}
{if $institutiondata}
<div id="site-stats-wrap">
<div class="site-stats-left pbs pts">
{include file='admin/users/stats.tpl' cron=1}
</div>
<div class="subpage rel"><div id="site-stats-wrap2">
{if $subpagedata.summary}
<div class="statistics-subpage-left-column">
{$subpagedata.summary|safe}
</div>
{/if}
{if $subpagedata.table.csv}
<div class="fr">
<span class="bulkaction-title">{str tag=exportstatsascsv section=admin}:</span>
<a href="{$WWWROOT}download.php" target="_blank">{str tag=Download section=admin} <span class="accessible-hidden sr-only">{str tag=downloadstatsascsv section=admin}</span></a>
</div>
{/if}
<div id="statistics_table_container" class="statistics-subpage-{if $subpagedata.summary}right{else}full{/if}-column {if $subpagedata.table.count == 0} hidden{/if}">
<h3>{$subpagedata.tabletitle}</h3>
<table id="statistics_table" class="fullwidth">
<thead>
<tr>
{foreach from=$subpagedata.tableheadings item=heading}
<th{if $heading.class} class="{$heading.class}"{/if}>{$heading.name}</th>
{/foreach}
</tr>
</thead>
<tbody>
{$subpagedata.table.tablerows|safe}
</tbody>
</table>
{$subpagedata.table.pagination|safe}
</div>
<div class="cb"></div>
</div>
</div>
</div>
<div class="cb"></div>
<div class="panel panel-default double">
<div class="panel-heading">
<ul class="nav nav-pills">
{foreach from=$subpages item=subpage}
<li{if $subpage == $type} class="active"{/if}>
<a {if $subpage == $type}class="current-tab" {/if}href="{$WWWROOT}admin/users/statistics.php?institution={$institutiondata.name}&type={$subpage}">{str tag=$subpage}
<span class="accessible-hidden sr-only">({str tag=tab}{if $subpage == $type} {str tag=selected}{/if})</span>
</a>
</li>
{/foreach}
</ul>
</div>
<div class="subpage panel-body row">
{if $subpagedata.table.count == 0}{else}
<div id="statistics_table_container" class="col-md-12">
<h3>{$subpagedata.tabletitle}</h3>
<table id="statistics_table" class="table table-striped fullwidth">
<thead>
<tr>
{foreach from=$subpagedata.tableheadings item=heading}
<th{if $heading.class} class="{$heading.class}"{/if}>{$heading.name}</th>
{/foreach}
</tr>
</thead>
<tbody>
{$subpagedata.table.tablerows|safe}
</tbody>
</table>
{$subpagedata.table.pagination|safe}
</div>
{/if}
{if $subpagedata.summary}
<div class="col-md-12 image-right">
{$subpagedata.summary|safe}
</div>
{/if}
</div>
{if $subpagedata.table.csv}
<a href="{$WWWROOT}download.php" class="panel-footer" target="_blank">
<span class="icon icon-table"></span> {str tag=exportstatsascsv section=admin}:</span></a>
{/if}
</div>
</div>
{/if}
<div id="site-stats-clearer"></div>
</div>
{include file='footer.tpl'}
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