Skip to content

Commit

Permalink
MDL-53084 tool_lp: Improve the view of user competency in a plan
Browse files Browse the repository at this point in the history
* Remove the plan block
* Remove the plan link
  • Loading branch information
taboubi authored and Frederic Massart committed Apr 18, 2016
1 parent 9fbb3e6 commit 3ed982e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
3 changes: 1 addition & 2 deletions admin/tool/lp/lang/en/tool_lp.php
Expand Up @@ -391,8 +391,7 @@
$string['usercommentedonaplansmall'] = '{$a->fullname} commented on the plan "{$a->plan}".';
$string['usercommentedonaplansubject'] = '{$a} commented on a plan.';
$string['uponcoursemodulecompletion'] = 'Upon activity completion:';
$string['usercompetencyfrozen'] = '<p>This record is now frozen. It reflects the state of the user\'s competency when their plan was marked as complete.</p>
<p>Go back to <a href="{$a->url}">{$a->name}</a></p>';
$string['usercompetencyfrozen'] = 'This record is now frozen. It reflects the state of the user\'s competency when their plan was marked as complete.';
$string['usercompetencystatus_idle'] = 'Idle';
$string['usercompetencystatus_inreview'] = 'In review';
$string['usercompetencystatus_waitingforreview'] = 'Waiting for review';
Expand Down
36 changes: 1 addition & 35 deletions admin/tool/lp/templates/user_competency_summary_in_plan.mustache
Expand Up @@ -38,49 +38,15 @@
* evidence - array of evidence
* commentarea - comment block
* plan - plan summary record
* statusname - status name
* description - plan description
* isdraft - is draft
* iscompleted - is completed
* duedateformatted - due date formatted
* url - url of the plan
* name - plan name
* template - template
This template does not have an example context because it includes ajax functionality.
}}
{{#usercompetencysummary}}
<div data-region="user-competency-full-info" data-node="user-competency" data-competencyid="{{usercompetency.competencyid}}" data-userid="{{usercompetency.userid}}" data-region-id="{{uniqid}}">
<div data-region="plan-summary">
<div class="well">
<dt>{{#str}}status, tool_lp{{/str}}</dt>
<dd>
<span class="label pull-left
{{#plan.iscompleted}}label-success{{/plan.iscompleted}}
{{^plan.iscompleted}}
{{#plan.isdraft}}label-warning{{/plan.isdraft}}
{{^plan.isdraft}}label-info{{/plan.isdraft}}
{{/plan.iscompleted}}">
{{plan.statusname}}
</span>
</dd>
{{#plan.duedate}}
<dt>{{#str}}duedate, tool_lp{{/str}}</dt>
<dd>{{plan.duedateformatted}}</dd>
{{/plan.duedate}}
{{#plan.template}}
<dt>{{#str}}template, tool_lp{{/str}}</dt>
<dd>{{plan.template.shortname}}</dd>
{{/plan.template}}
{{#description}}
<dt>{{#str}}description{{/str}}</dt>
<dd>{{{plan.description}}}</dd>
{{/description}}
</div>
</div>
{{#plan.iscompleted}}
<div class="alert alert-info" role="alert">
{{#str}} usercompetencyfrozen, tool_lp, { "url": "{{plan.url}}", "name": "{{plan.name}}" } {{/str}}
{{#str}} usercompetencyfrozen, tool_lp {{/str}}
</div>
{{/plan.iscompleted}}
<div data-region="competency-summary">
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/version.php
Expand Up @@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();


$plugin->version = 2016020914; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2016020915; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014110400; // Requires this Moodle version.
$plugin->component = 'tool_lp'; // Full name of the plugin (used for diagnostics).

0 comments on commit 3ed982e

Please sign in to comment.