MDL-53526 tool_lp: Add consistency to 'Add ...' buttons

This commit is contained in:
Serge Gauthier 2016-03-18 15:31:32 -04:00 committed by Frederic Massart
parent f9090dff7c
commit d11d4c1442
5 changed files with 30 additions and 35 deletions

View file

@ -34,8 +34,14 @@
* navigation - array of strings containing buttons for navigation
}}
<div data-region="managecompetencies">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth managecompetencies">
<caption>{{#str}}listcompetencyframeworkscaption, tool_lp{{/str}}</caption>
<caption>{{#str}}listcompetencyframeworkscaption, tool_lp{{/str}}
</caption>
<thead>
<tr>
<th scope="col">{{#str}}competencyframeworkname, tool_lp{{/str}}</th>
@ -86,12 +92,6 @@
</p>
{{/competencyframeworks}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
{{#js}}
// Initialise the JS.
require(['tool_lp/frameworkactions',

View file

@ -32,6 +32,11 @@
* navigation - array of strings containing buttons for navigation
}}
<div data-region="managetemplates">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth managetemplates">
<caption>{{#str}}listtemplatescaption, tool_lp{{/str}}</caption>
<thead>
@ -88,12 +93,6 @@
</p>
{{/templates}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
{{#js}}
// Initialise the JS.
require(['tool_lp/templateactions',

View file

@ -90,6 +90,14 @@
{{/canpostorhascomments}}
{{/plan.commentarea}}
<div data-region="plan-competencies">
<div data-region="actions">
<div class="pull-right">
<!-- Button to add competencies to the plan -->
{{#plan.canbeedited}}
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} {{#str}}addcompetency, tool_lp{{/str}}</button>
{{/plan.canbeedited}}
</div>
</div>
<h3>{{#str}}learningplancompetencies, tool_lp{{/str}}</h3>
<table class="generaltable fullwidth managecompetencies">
<thead>
@ -155,18 +163,8 @@
{{/competencies}}
</tbody>
</table>
<div data-region="actions">
<div class="pull-right">
<!-- Button to add competencies to the plan -->
{{#plan.canbeedited}}
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} {{#str}}addcompetency, tool_lp{{/str}}</button>
{{/plan.canbeedited}}
</div>
</div>
</div>
</div>
{{#js}}
require(['tool_lp/competencies', 'tool_lp/planactions', 'tool_lp/user_competency_workflow'], function(mod, actionsMod, UserCompWorkflow) {
var planActions = new actionsMod('plan');

View file

@ -34,6 +34,11 @@
}}
<div data-region="plans">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth">
<caption>{{#str}}listplanscaption, tool_lp{{/str}}</caption>
<thead>
@ -149,11 +154,6 @@
</p>
{{/plans}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
{{#canreaduserevidence}}
<div class="pull-left">
<a href="{{pluginbaseurl}}/user_evidence_list.php?userid={{userid}}">{{#str}}userevidence, tool_lp{{/str}}</a>

View file

@ -33,7 +33,11 @@
}}
<div data-region="user-evidence-list">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth">
<caption>{{#str}}listofevidence, tool_lp{{/str}}</caption>
<thead>
@ -120,12 +124,6 @@
<p class="alert-info">{{#str}}nouserevidence, tool_lp{{/str}}</p>
{{/evidence}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
</div>
{{#js}}