Commit 1a508cd6 authored by Pat Kira's avatar Pat Kira

Minor styling fixes part4 (bug: 1465107)

behatnotneeded: styling only

Change-Id: I6bb4dd26247e7f9cece86c1dff6215e771d0d260
parent d1bfcdad
......@@ -2174,6 +2174,7 @@ function auth_generate_registration_form($formname, $authname='internal', $goto)
$elements['submit'] = array(
'type' => 'submit',
'class' => 'btn-primary',
'value' => get_string('register'),
);
......
......@@ -36,22 +36,17 @@
<li class="list-group-item{if !$data.active} list-group-item-warning{/if}" id="{$plugintype}.{$plugin}">
<div class="list-group-item-heading">
{$plugin}
{if $data.activateform}
<div class="btn-group btn-group-top">
{$data.activateform|safe}
{/if}
<div class="btn-group btn-group-top">
{if $data.config}
{if !$data.activateform} <div class="btn-group btn-group-top"> {/if}
<a class="btn btn-default pull-left" title="{str tag='configfor'} {$plugintype} {$plugin}" href="pluginconfig.php?plugintype={$plugintype}&amp;pluginname={$plugin}">
<span class="icon icon-cog icon-lg"></span>
<span class="accessible-hidden sr-only ">{str tag='configfor'} {$plugintype} {$plugin}</span>
</a>
{/if}
{if $data.config || $data.activateform}
</div>
{if $data.activateform}
{$data.activateform|safe}
{/if}
</div>
</div>
{if $data.types}
......
......@@ -54,7 +54,7 @@
<div class="panel panel-default mtxl" id="results" >
<h2 class="panel-heading" id="resultsheading">{str tag="Results"}</h2>
{if $results}
<table id="searchresults" class="tablerenderer fullwidth listing">
<table id="searchresults" class="tablerenderer fullwidth table">
<thead>
<tr>
{foreach from=$columns key=f item=c}
......@@ -86,7 +86,7 @@
{$pagination|safe}
</div>
<a class="panel-footer" id="csvlink" href="{$WWWROOT}admin/groups/archivescsvdownload.php{if $.request.institution}?institution={$.request.institution}{/if}" target="_blank">
<a class="panel-footer text-small" id="csvlink" href="{$WWWROOT}admin/groups/archivescsvdownload.php{if $.request.institution}?institution={$.request.institution}{/if}" target="_blank">
<span class="icon icon-table prs"></span>
{str tag=exportdataascsv section=admin}
</a>
......
......@@ -34,8 +34,6 @@
{if $add}
<h2 class="title panel-heading">{str tag="addinstitution" section="admin"}</h2>
{/if}
<h2 class="title panel-heading">{str tag="institution" section="admin"}</h2>
<div class="panel-body">
{$institution_form|safe}
</div>
......@@ -54,7 +52,6 @@
{if $countinstitutions > 1}
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="icon icon-pencil icon-lg prs"></span>
<span class="icon icon-ellipsis-h icon-xs"></span>
......
{include file="header.tpl"}
<p class="lead">{str tag="institutionmemberspagedescription" section="admin"}</p>
<div class="panel panel-default panel-body">
<p>{$instructions}</p>
{$usertypeselector|safe}
<div class="userlistform">
{$institutionusersform|safe}
</div>
<p>{$instructions}</p>
{$usertypeselector|safe}
<div class="userlistform">
{$institutionusersform|safe}
</div>
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
<div class="lead">{str tag="pendingregistrationspagedescription" section="admin"}</div>
<div class="panel panel-default panel-body">
<div id="pendingonlineistcontainer">
<table id="pendinglist" class="fullwidth listing">
<tbody>
{$data|safe}
</tbody>
</table>
</div>
<div class="panel panel-default">
<div id="pendingonlineistcontainer">
{$data|safe}
</div>
</div>
{include file="footer.tpl"}
{if $data}
<table id="pendinglist" class="fullwidth listing">
<thead>
<th>{str tag=pendingregistration section=admin}</th>
<th>{str tag=registrationreason section=admin}</th>
<th>&nbsp;</th>
</thead>
<tbody>
<table id="pendinglist" class="fullwidth table">
<thead>
<th>{str tag=pendingregistration section=admin}</th>
<th>{str tag=registrationreason section=admin}</th>
<th>&nbsp;</th>
</thead>
<tbody>
{foreach from=$data item=registration}
<tr class="{cycle values='r0,r1'}">
<td class="pendinginfo">
<div id="pendinginfo_{$registration->id}">
<h3 class="title">{$registration->firstname} {$registration->lastname}</h3>
<div class="detail">{$registration->email}</div>
</div>
</td>
<td class="pendinginfo">
<div class="detail">{$registration->reason}</div>
</td>
<td class="right">
<a class="btn" href="{$WWWROOT}admin/users/actionregistration.php?r={$registration->id}&action=approve"><span class="btn-approve">{str tag=approve section=admin}</span></a>
<a class="btn" href="{$WWWROOT}admin/users/actionregistration.php?r={$registration->id}&action=deny"><span class="btn-deny">{str tag=deny section=admin}</span></a>
</td>
</tr>
<tr class="{cycle values='r0,r1'}">
<td class="pendinginfo">
<div id="pendinginfo_{$registration->id}">
<h3 class="title">{$registration->firstname} {$registration->lastname}</h3>
<div class="detail">{$registration->email}</div>
</div>
</td>
<td class="pendinginfo">
<div class="detail">{$registration->reason}</div>
</td>
<td class="">
<div class="btn-group">
<a class="btn btn-default btn-xs" href="{$WWWROOT}admin/users/actionregistration.php?r={$registration->id}&action=approve">
<span class="icon icon-lg left icon-check text-success"></span>
<span class="btn-approve">{str tag=approve section=admin}</span>
</a>
<a class="btn btn-default btn-xs" href="{$WWWROOT}admin/users/actionregistration.php?r={$registration->id}&action=deny">
<span class="icon icon-lg left icon-ban text-danger"></span>
<span class="btn-deny">{str tag=deny section=admin}</span></a>
</div>
</td>
</tr>
{/foreach}
{else}
<tr><td><div class="lead text-small">{str tag=nopendingregistrations section=admin}</div></td></tr>
<tr><td><div class="no-results">{str tag=nopendingregistrations section=admin}</div></td></tr>
{/if}
</tbody>
</table>
......@@ -2,11 +2,15 @@
{if $GROUP}
<h2>{$PAGESUBHEADING}{if $SUBPAGEHELPNAME}<span class="page-help-icon">{$PAGEHELPICON|safe}</span>{/if}</h2>
{/if}
{if $ADMIN}
<div class="panel panel-default">
<div class="panel-body">
{$form|safe}
</div>
{if $ADMIN || $INSTITUTIONALADMIN}
<div class="row">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
{$form|safe}
</div>
</div>
</div>
</div>
{else}
{$form|safe}
......
......@@ -4,11 +4,19 @@
{elseif $pagedescriptionhtml}
{$pagedescriptionhtml|safe}
{/if}
{if $ADMIN}<div class="panel panel-default panel-body">{/if}
{$form|safe}
{if $ADMIN}</div>{/if}
{if $ADMIN || $INSTITUTIONALADMIN}
<div class="row">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
{$form|safe}
</div>
</div>
</div>
</div>
{else}
{$form|safe}
{/if}
{include file="pagemodal.tpl"}
{include file="footer.tpl"}
\ No newline at end of file
......@@ -184,7 +184,9 @@
IMPORTANT: do not introduce any new whitespace into the instanceList div.
*}}
<div id="instanceList">{{foreach $instancelist instance}}<div class="authInstance" id="instanceDiv{{$instance->id}}">
<div id="instanceList" class="pbl">
{{foreach $instancelist instance}}
<div class="authInstance" id="instanceDiv{{$instance->id}}">
<label class="authLabel">
<a href="" onclick="editinstance({{$instance->id}},'{{$instance->authname}}'); return false;">
{{str tag="title" section="auth.`$instance->authname`"}}</a>
......@@ -207,17 +209,18 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div.
<span class="sr-only">{{str tag=deleteitem}}</span>
</a>
</span>
</div>{{/foreach}}
</div>
{{/foreach}}
</div>
<div class="form-group">
<span class="picker">
<select class="select form-control" name="dummy" id="dummySelect">
{{foreach $authtypes authtype}}
<option value="{{$authtype->name}}"{{if !$authtype->is_usable}} disabled="disabled"{{/if}}>{{$authtype->title}} - {{$authtype->description}}</option>
{{/foreach}}
</select>
</span>
<button class="btn btn-primary" type="button" onclick="addinstance(); return false;" name="button" value="foo">{{str tag=Add section=admin}}</button>
<div class="select">
<span class="picker">
<select class="select form-control" name="dummy" id="dummySelect">
{{foreach $authtypes authtype}}
<option value="{{$authtype->name}}"{{if !$authtype->is_usable}} disabled="disabled"{{/if}}>{{$authtype->title}} - {{$authtype->description}}</option>
{{/foreach}}
</select>
</span>
<button class="btn btn-primary" type="button" onclick="addinstance(); return false;" name="button" value="foo">{{str tag=Add section=admin}}</button>
</div>
<input type="hidden" id="instancePriority" name="instancePriority" value="{{$instancestring}}" />
......
......@@ -97,8 +97,8 @@
{$institutionselector|safe}
</div>
{/if}
{if isset($PAGEHEADING)}
{if isset($PAGEHEADING)}
<h1 class="{$headingclass}">
{if isset($pageicon)}
<span class="{$pageicon}"></span>
......@@ -117,10 +117,7 @@
<span class="icon-rss icon icon-lg"></span>
</a>
{/if}
</h1>
{/if}
{if $SUBPAGETOP}
......
{include file="header.tpl"}
<div class="message">
{$message|clean_html|safe}
</div>
<div class="message alert alert-{$type}">
{$message|clean_html|safe}
</div>
{include file="footer.tpl"}
{include file="header.tpl"}
{include file="view/editviewtabs.tpl" selected='title' new=$new issiteview=$issiteview}
{if $ADMIN || $INSTITUTIONALADMIN}
<div class="row">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
{$editview|safe}
</div>
</div>
</div>
</div>
{else}
<div class="row">
<div class="col-md-9">
{$editview|safe}
</div>
</div>
{/if}
{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