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

View file

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

View file

@ -90,6 +90,14 @@
{{/canpostorhascomments}} {{/canpostorhascomments}}
{{/plan.commentarea}} {{/plan.commentarea}}
<div data-region="plan-competencies"> <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> <h3>{{#str}}learningplancompetencies, tool_lp{{/str}}</h3>
<table class="generaltable fullwidth managecompetencies"> <table class="generaltable fullwidth managecompetencies">
<thead> <thead>
@ -155,17 +163,7 @@
{{/competencies}} {{/competencies}}
</tbody> </tbody>
</table> </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>
</div> </div>
{{#js}} {{#js}}
require(['tool_lp/competencies', 'tool_lp/planactions', 'tool_lp/user_competency_workflow'], function(mod, actionsMod, UserCompWorkflow) { require(['tool_lp/competencies', 'tool_lp/planactions', 'tool_lp/user_competency_workflow'], function(mod, actionsMod, UserCompWorkflow) {

View file

@ -34,6 +34,11 @@
}} }}
<div data-region="plans"> <div data-region="plans">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth"> <table class="generaltable fullwidth">
<caption>{{#str}}listplanscaption, tool_lp{{/str}}</caption> <caption>{{#str}}listplanscaption, tool_lp{{/str}}</caption>
<thead> <thead>
@ -149,11 +154,6 @@
</p> </p>
{{/plans}} {{/plans}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
{{#canreaduserevidence}} {{#canreaduserevidence}}
<div class="pull-left"> <div class="pull-left">
<a href="{{pluginbaseurl}}/user_evidence_list.php?userid={{userid}}">{{#str}}userevidence, tool_lp{{/str}}</a> <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 data-region="user-evidence-list">
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth"> <table class="generaltable fullwidth">
<caption>{{#str}}listofevidence, tool_lp{{/str}}</caption> <caption>{{#str}}listofevidence, tool_lp{{/str}}</caption>
<thead> <thead>
@ -120,12 +124,6 @@
<p class="alert-info">{{#str}}nouserevidence, tool_lp{{/str}}</p> <p class="alert-info">{{#str}}nouserevidence, tool_lp{{/str}}</p>
{{/evidence}} {{/evidence}}
<div class="btn-group pull-right">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
</div> </div>
{{#js}} {{#js}}