mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-53526 tool_lp: Add consistency to 'Add ...' buttons
This commit is contained in:
parent
f9090dff7c
commit
d11d4c1442
5 changed files with 30 additions and 35 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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,17 +163,7 @@
|
|||
{{/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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue