| Server IP : 165.22.154.248 / Your IP : 216.73.217.0 [ Web Server : Apache/2.4.29 (Ubuntu) System : Linux droplet-integra 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 7.2.24-0ubuntu0.18.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/avanza-lms.old.bak9874115/admin/tool/lp/templates/ |
Upload File : |
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
User learning plans page.
Classes required for JS:
* planactions
Data attributes required for JS:
* data-region = plans
* data-planid = plans.id
* data-userid = userid
* data-action = deleteplan
Context variables required for this template:
* userid - The plan user id
* pluginbaseurl - tool_lp base url
* plans - The list of learning plans
* navigation - array of strings containing buttons for navigation
}}
<div data-region="plans">
<div class="float-left">
{{#navigation}}
{{{.}}}
{{/navigation}}
</div>
<table class="generaltable fullwidth">
<caption>{{#str}}listplanscaption, tool_lp{{/str}}</caption>
<thead>
<tr>
<th scope="col">{{#str}}planname, tool_lp{{/str}}</th>
<th scope="col">{{#str}}templatebased, tool_lp{{/str}}</th>
<th scope="col">{{#str}}status, tool_lp{{/str}}</th>
<th scope="col">{{#str}}actions, tool_lp{{/str}}</th>
</tr>
</thead>
<tbody>
{{#plans}}
<tr data-region="plan-node" data-id="{{id}}" data-userid="{{userid}}">
<td>
<span><a href="{{pluginbaseurl}}/plan.php?id={{id}}">{{{name}}}</a></span>
</td>
<td>
{{#isbasedontemplate}}
<span class="badge badge-info">{{#str}}yes{{/str}}</span>
{{/isbasedontemplate}}
{{^isbasedontemplate}}
<span class="badge">{{#str}}no{{/str}}</span>
{{/isbasedontemplate}}
</td>
<td>{{statusname}}</td>
<td>
{{#canmanage}}
<div style="display: inline-block;">
<ul title="{{#str}}edit{{/str}}" class="planactions">
<li>
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
<ul class="dropdown dropdown-menu">
<li class="{{^canbeedited}} disabled {{/canbeedited}} dropdown-item">
<a href="{{#canbeedited}}
{{pluginbaseurl}}/editplan.php?id={{id}}&userid={{userid}}&return=plans
{{/canbeedited}}
{{^canbeedited}}
#
{{/canbeedited}}
">
{{#pix}}t/edit{{/pix}} {{#str}}editthisplan, tool_lp{{/str}}
</a>
</li>
{{#isreopenallowed}}
<li class="dropdown-item">
<a data-action="plan-reopen" href="#">
{{#pix}}t/edit{{/pix}} {{#str}}reopenplan, tool_lp{{/str}}
</a>
</li>
{{/isreopenallowed}}
{{#iscompleteallowed}}
<li class="dropdown-item">
<a data-action="plan-complete" href="#">
{{#pix}}t/edit{{/pix}} {{#str}}completeplan, tool_lp{{/str}}
</a>
</li>
{{/iscompleteallowed}}
{{#isrequestreviewallowed}}
<li class="dropdown-item">
<a data-action="plan-request-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}requestreview, tool_lp{{/str}}</a>
</li>
{{/isrequestreviewallowed}}
{{#iscancelreviewrequestallowed}}
<li class="dropdown-item">
<a data-action="plan-cancel-review-request" href="#">{{#pix}}t/edit{{/pix}} {{#str}}cancelreviewrequest, tool_lp{{/str}}</a>
</li>
{{/iscancelreviewrequestallowed}}
{{#isstartreviewallowed}}
<li class="dropdown-item">
<a data-action="plan-start-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}startreview, tool_lp{{/str}}</a>
</li>
{{/isstartreviewallowed}}
{{#isstopreviewallowed}}
<li class="dropdown-item">
<a data-action="plan-stop-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}stopreview, tool_lp{{/str}}</a>
</li>
{{/isstopreviewallowed}}
{{#isapproveallowed}}
<li class="dropdown-item">
<a data-action="plan-approve" href="#">{{#pix}}t/edit{{/pix}} {{#str}}planapprove, tool_lp{{/str}}</a>
</li>
{{/isapproveallowed}}
{{#isunapproveallowed}}
<li class="dropdown-item">
<a data-action="plan-unapprove" href="#">{{#pix}}t/edit{{/pix}} {{#str}}planunapprove, tool_lp{{/str}}</a>
</li>
{{/isunapproveallowed}}
{{#isunlinkallowed}}
<li class="dropdown-item">
<a data-action="plan-unlink" href="#">
{{#pix}}t/edit{{/pix}} {{#str}}unlinkplantemplate, tool_lp{{/str}}
</a>
</li>
{{/isunlinkallowed}}
<li class="dropdown-item">
<a data-action="plan-delete" href="#">
{{#pix}}t/delete{{/pix}} {{#str}}deletethisplan, tool_lp{{/str}}
</a>
</li>
</ul>
</ul>
</div>
{{/canmanage}}
</td>
</tr>
{{/plans}}
</tbody>
</table>
{{^plans}}
<p class="alert alert-info">
{{#str}}nouserplans, tool_lp{{/str}}
</p>
{{/plans}}
{{#canreaduserevidence}}
<div class="float-left">
<a href="{{pluginbaseurl}}/user_evidence_list.php?userid={{userid}}">{{#str}}userevidence, tool_lp{{/str}}</a>
</div>
{{/canreaduserevidence}}
{{#js}}
// Initialise the JS.
require(['tool_lp/planactions'],
function(ActionsMod) {
var planActions = new ActionsMod('plans');
planActions.enhanceMenubar('.planactions');
});
{{/js}}
</div>