Commit 18d57d4d authored by Liam Sharpe's avatar Liam Sharpe Committed by Aaron Wells
Browse files

Added white panel-bodies to the admin area, fixed a few seachbars, removed and...

Added white panel-bodies to the admin area, fixed a few seachbars, removed and tidyed unnecessary code (Bootstrap)

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I469b2295e7d8408c29ad329c859775ecd41b31ea
parent 9fc5216c
......@@ -29,7 +29,7 @@ $data = build_grouplist_html($query, $limit, $offset);
$searchform = pieform(array(
'name' => 'search',
'renderer' => 'div',
'class' => 'form-inline',
'class' => 'form-inline mbl',
'elements' => array(
'inputgroup' => array(
'type' => 'fieldset',
......
......@@ -139,6 +139,7 @@ unset($prefs);
$form = pieform(array(
'name' => 'adduser',
'class' => 'panel panel-body pts',
'autofocus' => false,
'template' => 'adduser.php',
'templatedir' => pieform_template_dir('adduser.php'),
......
......@@ -28,6 +28,7 @@ $query = param_variable('query', '');
$offset = param_integer('offset', 0);
$limit = 20;
$customthemedefaults = array(
'background' => array('type' => 'color', 'value' => '#182768'),
'backgroundfg' => array('type' => 'color', 'value' => '#FFFFFF'),
......@@ -614,18 +615,27 @@ else {
/*search institution form*/
$searchform = pieform(array(
'name' => 'search',
'renderer' => 'oneline',
'renderer' => 'div',
'class' => 'form-inline mbl',
'elements' => array(
'inputgroup' => array(
'type' => 'fieldset',
'title' => get_string('Query') . ': ',
'class' => 'input-group form-inline',
'elements' => array(
'query' => array(
'type' => 'text',
'defaultvalue' => $query
'defaultvalue' => $query,
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-success',
'value' => get_string('search')
)
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-success input-group-btn',
'value' => get_string('search'),
)
),
),
),
));
$smarty->assign('searchform', $searchform);
......
......@@ -27,6 +27,7 @@ $staffusers = get_column('usr', 'id', 'staff', 1, 'deleted', 0);
$form = pieform(array(
'name' => 'staffusers',
// 'class' => 'panel panel-body',
'elements' => array(
'users' => array(
'type' => 'userlist',
......
......@@ -109,10 +109,6 @@ function getstylesheets($stylesheets){
return $stylesheets;
}
/**
* This function creates a Smarty object and sets it up for use within our
* podclass app, setting up some variables.
......
{include file='header.tpl'}
<div class="panel panel-body">
<p>{str tag=htmlfiltersdescription section=admin}</p>
<p>{str tag=htmlfiltersdescription section=admin}</p>
{if $filters}
<h3>{str tag=installed section=admin}:</h3>
<ul>
{if $filters}
<h3>{str tag=installed section=admin}:</h3>
<ul>
{foreach from=$filters item=filter}
<li>{$filter->site}</li>
{/foreach}
</ul>
{else}
<p>{str tag=nofiltersinstalled section=admin}</p>
{/if}
<p>{$newfiltersdescription}</p>
<div>{$reloadform|safe}</div>
</ul>
{else}
<p>{str tag=nofiltersinstalled section=admin}</p>
{/if}
<p>{$newfiltersdescription}</p>
<div>{$reloadform|safe}</div>
</div>
{include file='footer.tpl'}
\ No newline at end of file
{include file="header.tpl"}
<p>{str tag=allowediframesitesdescription section=admin}</p>
<p>{str tag=allowediframesitesdescriptiondetail section=admin}</p>
{if $editurls}
<table class="iframesources fullwidth">
<div class="panel panel-body">
<p>{str tag=allowediframesitesdescription section=admin}</p>
<p>{str tag=allowediframesitesdescriptiondetail section=admin}</p>
{if $editurls}
<table class="iframesources fullwidth">
<thead>
<tr>
<th>{str tag=Site}</th>
......@@ -28,9 +28,9 @@
</tr>
{/foreach}
</tbody>
</table>
{/if}
{$newform|safe}
</table>
{/if}
{$newform|safe}
</div>
{include file="footer.tpl"}
{include file='header.tpl'}
<div id="adminplugin">
<div class="panel panel-body">
<div id="adminplugin">
<b>{str tag='pluginexplainaddremove'}
<br/><br/>{str tag='pluginexplainartefactblocktypes'}<br/><br/></b>
<ul class="adminpluginstypes">
......@@ -57,6 +57,6 @@
{/foreach}
</ul>
<div class="cb"></div>
</div>
</div>
{include file='footer.tpl'}
{include file="header.tpl"}
<div class="panel panel-body">
<form action="{$WWWROOT}admin/groups/archive.php" method="post">
{if $search->sortby}
<input type="hidden" name="sortby" id="sortby" value="{$search->sortby}">
......@@ -79,5 +79,5 @@
<div>{str tag="noresultsfound"}</div>
{/if}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
{$optionform|safe}
<h3>{str tag=addcategories section=admin}</h3>
<p>{str tag=groupcategoriespagedescription section=admin}</p>
<div id="editmenus">
<div id="menuitemlist"></div>
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
{$searchform|safe}
<table id="admgroupslist" class="fullwidth table table-striped">
<table id="admgroupslist" class="fullwidth table table-striped mbm">
<thead>
<tr>
<th>{str tag="groupname" section="admin"}</th>
......@@ -20,5 +20,5 @@
</tbody>
</table>
{$results.pagination|safe}
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
{$uploadcsvpagedescription|safe}
{$uploadcsvform|safe}
{include file="progress_meter.tpl"}
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
<p>{str tag="adminuserspagedescription1" section="admin"}</p>
<div class="userlistform">
{$adminusersform|safe}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
<form action="{$WWWROOT}admin/users/exportqueue.php" method="post">
{if $search->sortby}
<input type="hidden" name="sortby" id="sortby" value="{$search->sortby}">
......@@ -63,5 +63,6 @@
<div>{str tag="noresultsfound"}</div>
{/if}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
<p>{str tag="institutionadminuserspagedescription1" section="admin"}</p>
{$institutionselector|safe}
<div class="userlistform">
{$adminusersform|safe}
</div>
</div>
{include file="footer.tpl"}
......@@ -2,10 +2,10 @@
{if $delete_form}
<h3>{str tag="deleteinstitution" section="admin"}</h3>
<p><strong>{$institutionname}</strong></p>
<p>{str tag="deleteinstitutionconfirm" section="admin"}</p>
{$delete_form|safe}
<h3>{str tag="deleteinstitution" section="admin"}</h3>
<p><strong>{$institutionname}</strong></p>
<p>{str tag="deleteinstitutionconfirm" section="admin"}</p>
{$delete_form|safe}
{elseif $institution_form}
{if $suspended}
<div class="">
......@@ -29,10 +29,11 @@
<div class="detail">{$suspendform|safe}</div>
</div>
{/if}
{$institution_form|safe}
{$institution_form|safe}
{else}
{$searchform|safe}
<div class="table-responsive">
<div class="panel panel-body">
{$searchform|safe}
<div class="table-responsive">
<table id="adminstitutionslist" class="fullwidth table table-striped">
<thead>
<tr>
......@@ -72,10 +73,11 @@
{$results.tablerows|safe}
</tbody>
</table>
</div>
</div>
<div class="center">
{$results.pagination|safe}
</div>
<div class="center">
{$results.pagination|safe}
</div>
{/if}
{include file="footer.tpl"}
......@@ -25,16 +25,21 @@
<td class="controls">
<form action="" method="post">
<input type="hidden" name="i" value="{$institution->name}">
<input type="hidden" name="edit" value=1>
<input type="image" name="edit" title="{str tag="edit"}" src="{theme_url filename="images/btn_edit.png"}" alt="{str(tag=editspecific arg1=$institution->displayname)|escape:html|safe}">
</form>
<button type="submit" name="edit" value="1" class="btn-link btn btn-xs pull-right" alt="{str(tag=editspecific arg1=$institution->displayname)|escape:html|safe}">
<span class="icon icon-cog icon-lg text-default"></span>
<span class="sr-only">
{str tag="edit"}
</span>
</button>
{if $siteadmin && !$institution->members && $institution->name != 'mahara'}
<form action="" method="post">
<input type="hidden" name="i" value="{$institution->name}">
<input type="hidden" name="delete" value="1">
<input type="image" name="delete" title="{str tag="delete"}" src="{theme_url filename="images/btn_deleteremove.png"}" alt="{str(tag=deletespecific arg1=$institution->displayname)|escape:html|safe}">
</form>
<button type="submit" name="delete" value="1" class="btn-link btn btn-xs pull-right" alt="{str(tag=deletespecific arg1=$institution->displayname)|escape:html|safe}">
<span class="icon icon-trash text-danger icon-lg"></span>
<span class="sr-only">
{str tag="delete"}
</span>
</button>
{/if}
</form>
</td>
</tr>
{/foreach}
{include file="header.tpl"}
<div class="panel panel-body">
<p>{str tag="institutionstaffuserspagedescription1" section="admin"}</p>
{$institutionselector|safe}
<div class="userlistform">
{$staffusersform|safe}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<p>{str tag="institutionmemberspagedescription" section="admin"}</p>
<p>{$instructions}</p>
{$usertypeselector|safe}
<div class="userlistform">
{$institutionusersform|safe}
<div class="panel panel-body">
<p>{str tag="institutionmemberspagedescription" section="admin"}</p>
<p>{$instructions}</p>
{$usertypeselector|safe}
<div class="userlistform">
{$institutionusersform|safe}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="panel panel-body">
<table id="notificationstable" class="fullwidth table">
<thead>
<tr>
......@@ -28,5 +28,5 @@
{/foreach}
</tbody>
</table>
</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