Skip to content

Commit

Permalink
MDL-53630 tool_lp: Rename Learning plans to Learning plan templates
Browse files Browse the repository at this point in the history
* In site administration
* In category administration
  • Loading branch information
taboubi authored and Frederic Massart committed Apr 18, 2016
1 parent cf4c3ea commit c11d30e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion admin/tool/lp/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function tool_lp_extend_navigation_category_settings($navigation, $coursecategor

// The link to the learning plan page.
if ($templatereadcapability) {
$title = get_string('learningplans', 'tool_lp');
$title = get_string('templates', 'tool_lp');
$path = new moodle_url("/admin/tool/lp/learningplans.php", array('pagecontextid' => $coursecategorycontext->id));
$settingsnode = navigation_node::create($title,
$path,
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/lp/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// Manage learning plans page.
$temp = new admin_externalpage(
'toollplearningplans',
get_string('learningplans', 'tool_lp'),
get_string('templates', 'tool_lp'),
new moodle_url('/admin/tool/lp/learningplans.php', array('pagecontextid' => context_system::instance()->id)),
array('tool/lp:templatemanage')
);
Expand Down
6 changes: 3 additions & 3 deletions admin/tool/lp/tests/behat/plan_crud.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: Manage plearning plan
And I follow "Home"
And I expand "Site administration" node
And I expand "Competencies" node
And I follow "Learning plans"
And I follow "Learning plan templates"
And I click on ".template-userplans" "css_element" in the "Science template" "table_row"
And I click on ".form-autocomplete-downarrow" "css_element"
And I click on "Admin" item in the autocomplete list
Expand All @@ -54,13 +54,13 @@ Feature: Manage plearning plan
And I follow "Home"
And I expand "Site administration" node
And I expand "Competencies" node
And I follow "Learning plans"
And I follow "Learning plan templates"
And I click on ".template-cohorts" "css_element" in the "Science template cohort" "table_row"
And I click on ".form-autocomplete-downarrow" "css_element"
And I click on "cohort plan" item in the autocomplete list
When I click on "Add cohorts" "button"
Then I should see "2 plans were created."
And I follow "Learning plans"
And I follow "Learning plan templates"
And I click on ".template-userplans" "css_element" in the "Science template cohort" "table_row"
And I should see "Student 1"
And I should see "Student 2"
Expand Down
10 changes: 5 additions & 5 deletions admin/tool/lp/tests/behat/template_crud.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Feature: Manage plearning plan templates
And I am on site homepage
And I expand "Site administration" node
When I expand "Competencies" node
Then I should see "Learning plans"
Then I should see "Learning plan templates"

Scenario: Create a new learning plan template
Given I follow "Learning plans"
Given I follow "Learning plan templates"
And I should see "List of learning plan templates"
And I click on "Add new learning plan template" "button"
And I should see "Add new learning plan template"
Expand All @@ -26,7 +26,7 @@ Feature: Manage plearning plan templates
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-2 | science template description |
And I follow "Learning plans"
And I follow "Learning plan templates"
And I should see "Science template Year-2"
When I click on "Science template Year-2" "link"
Then I should see "Science template Year-2"
Expand All @@ -36,7 +36,7 @@ Feature: Manage plearning plan templates
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-3 | science template description |
And I follow "Learning plans"
And I follow "Learning plan templates"
And I should see "Science template Year-3"
And I click on "Edit" of edit menu in the "Science template Year-3" row
And the field "Name" matches value "Science template Year-3"
Expand All @@ -49,7 +49,7 @@ Feature: Manage plearning plan templates
Given the following lp "templates" exist:
| shortname | description |
| Science template Year-4 | science template description |
And I follow "Learning plans"
And I follow "Learning plan templates"
And I should see "Science template Year-4"
And I click on "Delete" of edit menu in the "Science template Year-4" row
And "Confirm" "dialogue" should be visible
Expand Down

0 comments on commit c11d30e

Please sign in to comment.