Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding help icons

  • Loading branch information...
commit b26dc53ccab4058199df02f02c896a978ce23997 1 parent 795dff0
scriby authored September 22, 2011
36  mod/lti/edit_form.php
@@ -61,25 +61,31 @@ function definition() {
61 61
         
62 62
         $mform->addElement('text', 'lti_typename', get_string('typename', 'lti'));
63 63
         $mform->setType('lti_typename', PARAM_INT);
64  
-//        $mform->addHelpButton('lti_typename', 'typename','lti');
  64
+        $mform->addHelpButton('lti_typename', 'typename','lti');
  65
+        
65 66
         $mform->addRule('lti_typename', null, 'required', null, 'client');
66 67
 
67 68
         $mform->addElement('text', 'lti_toolurl', get_string('toolurl', 'lti'), array('size'=>'64'));
68 69
         $mform->setType('lti_toolurl', PARAM_TEXT);
69  
-//        $mform->addHelpButton('lti_toolurl', 'toolurl', 'lti');
  70
+        $mform->addHelpButton('lti_toolurl', 'toolurl', 'lti');
  71
+        
70 72
         $mform->addRule('lti_toolurl', null, 'required', null, 'client');
71 73
 
72  
-        $mform->addElement('text', 'lti_resourcekey', get_string('resourcekey', 'lti'));
  74
+        $mform->addElement('text', 'lti_resourcekey', get_string('resourcekey_admin', 'lti'));
73 75
         $mform->setType('lti_resourcekey', PARAM_TEXT);
74  
-
75  
-        $mform->addElement('passwordunmask', 'lti_password', get_string('password', 'lti'));
  76
+        $mform->addHelpButton('lti_resourcekey', 'resourcekey_admin', 'lti');
  77
+        
  78
+        $mform->addElement('passwordunmask', 'lti_password', get_string('password_admin', 'lti'));
76 79
         $mform->setType('lti_password', PARAM_TEXT);
77  
-
  80
+        $mform->addHelpButton('lti_password', 'password_admin', 'lti');
  81
+        
78 82
         $mform->addElement('textarea', 'lti_customparameters', get_string('custom', 'lti'), array('rows'=>4, 'cols'=>60));
79 83
         $mform->setType('lti_customparameters', PARAM_TEXT);
  84
+        $mform->addHelpButton('lti_customparameters', 'custom', 'lti');
80 85
         
81 86
         if(!empty($this->_customdata->isadmin)){
82 87
             $mform->addElement('checkbox', 'lti_coursevisible', ' ', ' ' . get_string('show_in_course', 'lti'));
  88
+            $mform->addHelpButton('lti_coursevisible', 'show_in_course', 'lti');
83 89
         } else {
84 90
             $mform->addElement('hidden', 'lti_coursevisible', '1');
85 91
         }
@@ -93,7 +99,7 @@ function definition() {
93 99
 
94 100
         $mform->addElement('select', 'lti_launchcontainer', get_string('default_launch_container', 'lti'), $launchoptions);
95 101
         $mform->setDefault('lti_launchcontainer', LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS);
96  
-//        $mform->addHelpButton('lti_launchinpopup', 'launchinpopup', 'lti');
  102
+        $mform->addHelpButton('lti_launchcontainer', 'default_launch_container', 'lti');
97 103
         
98 104
         // Add privacy preferences fieldset where users choose whether to send their data
99 105
         $mform->addElement('header', 'privacy', get_string('privacy', 'lti'));
@@ -103,26 +109,26 @@ function definition() {
103 109
         $options[1] = get_string('always', 'lti');
104 110
         $options[2] = get_string('delegate', 'lti');
105 111
 
106  
-        $mform->addElement('select', 'lti_sendname', get_string('sendname', 'lti'), $options);
  112
+        $mform->addElement('select', 'lti_sendname', get_string('share_name_admin', 'lti'), $options);
107 113
         $mform->setDefault('lti_sendname', '2');
108  
-//        $mform->addHelpButton('lti_sendname', 'sendname', 'lti');
  114
+        $mform->addHelpButton('lti_sendname', 'share_name_admin', 'lti');
109 115
 
110  
-        $mform->addElement('select', 'lti_sendemailaddr', get_string('sendemailaddr', 'lti'), $options);
  116
+        $mform->addElement('select', 'lti_sendemailaddr', get_string('share_email_admin', 'lti'), $options);
111 117
         $mform->setDefault('lti_sendemailaddr', '2');
112  
-//        $mform->addHelpButton('lti_sendemailaddr', 'sendemailaddr', 'lti');
  118
+        $mform->addHelpButton('lti_sendemailaddr', 'share_email_admin', 'lti');
113 119
 
114 120
 //-------------------------------------------------------------------------------
115 121
         // LTI Extensions
116 122
 
117 123
         // Add grading preferences fieldset where the tool is allowed to return grades
118  
-        $mform->addElement('select', 'lti_acceptgrades', get_string('acceptgrades', 'lti'), $options);
  124
+        $mform->addElement('select', 'lti_acceptgrades', get_string('accept_grades_admin', 'lti'), $options);
119 125
         $mform->setDefault('lti_acceptgrades', '2');
120  
-//        $mform->addHelpButton('lti_acceptgrades', 'acceptgrades', 'lti');
  126
+        $mform->addHelpButton('lti_acceptgrades', 'accept_grades_admin', 'lti');
121 127
 
122 128
         // Add grading preferences fieldset where the tool is allowed to retrieve rosters
123  
-        $mform->addElement('select', 'lti_allowroster', get_string('allowroster', 'lti'), $options);
  129
+        $mform->addElement('select', 'lti_allowroster', get_string('share_roster_admin', 'lti'), $options);
124 130
         $mform->setDefault('lti_allowroster', '2');
125  
-//        $mform->addHelpButton('lti_allowroster', 'allowroster', 'lti');
  131
+        $mform->addHelpButton('lti_allowroster', 'share_roster_admin', 'lti');
126 132
 
127 133
           
128 134
         if(!empty($this->_customdata->isadmin)){
349  mod/lti/lang/en/lti.php
@@ -46,14 +46,13 @@
46 46
  */
47 47
 
48 48
 $string['accept'] = 'Accept';
49  
-$string['acceptgrades'] = 'Accept grades from tool';
50 49
 $string['activity'] = 'Activity';
51 50
 $string['addnewapp'] = 'Enable External Application';
52 51
 $string['addserver'] = 'Add new trusted server';
53 52
 $string['addtype'] = 'Add external tool configuration';
54 53
 $string['allow'] = 'Allow';
55 54
 $string['allowinstructorcustom'] = 'Allow instructors to add custom parameters';
56  
-$string['allowroster'] = 'Tool may access course roster';
  55
+$string['share_roster_admin'] = 'Tool may access course roster';
57 56
 $string['allowsetting'] = 'Allow tool to store 8K of settings in Moodle';
58 57
 $string['always'] = 'Always';
59 58
 $string['lti'] = 'Basic LTI';
@@ -128,6 +127,7 @@
128 127
 $string['organizationurl'] ='Organization URL';
129 128
 $string['pagesize'] = 'Submissions shown per page';
130 129
 $string['password'] = 'Shared Secret';
  130
+$string['password_admin'] = 'Shared Secret';
131 131
 $string['pluginadministration'] = 'Basic LTI administration';
132 132
 $string['pluginname'] = 'LTI';
133 133
 $string['preferheight'] = 'Preferred Height';
@@ -140,11 +140,12 @@
140 140
 $string['redirect'] = 'You will be redirected in few seconds. If you are not, press the button.';
141 141
 $string['resource'] = 'Resource';
142 142
 $string['resourcekey'] = 'Consumer Key';
  143
+$string['resourcekey_admin'] = 'Consumer Key';
143 144
 $string['resourceurl'] = 'Resource URL';
144 145
 $string['saveallfeedback'] = 'Save all my feedback';
145 146
 $string['send'] = 'Send';
146  
-$string['sendemailaddr'] = 'Share launcher\'s email with tool';
147  
-$string['sendname'] = 'Share launcher\'s name with tool';
  147
+$string['share_email_admin'] = 'Share launcher\'s email with tool';
  148
+$string['share_name_admin'] = 'Share launcher\'s name with tool';
148 149
 $string['setdefault'] = 'Set a default value for the professor if delegating';
149 150
 $string['setupbox'] = 'Basic LTI Tool Setup Box';
150 151
 $string['setupoptions'] = 'Setup Options';
@@ -182,6 +183,7 @@
182 183
 $string['no_lti_configured'] = 'There are no active External Tools configured.';
183 184
 $string['no_lti_pending'] = 'There are no pending External Tools.';
184 185
 $string['no_lti_rejected'] = 'There are no rejected External Tools.';
  186
+$string['accept_grades_admin'] = 'Accept grades from the tool';
185 187
 
186 188
 //New instructor strings
187 189
 $string['display_name'] = 'Display activity name when launched';
@@ -206,4 +208,341 @@
206 208
 $string['using_tool_configuration'] = 'Using tool configuration: ';
207 209
 $string['domain_mismatch'] = 'Launch URL\'s domain does not match tool configuration.';
208 210
 $string['custom_config'] = 'Using custom tool configuration.';
209  
-$string['tool_config_not_found'] = 'Tool configuration not found for this URL.';
  211
+$string['tool_config_not_found'] = 'Tool configuration not found for this URL.';
  212
+
  213
+//Instance help
  214
+
  215
+$string['external_tool_type_help'] = <<<HTML
  216
+The main purpose of a tool configuration is to set up a secure communication channel between Moodle and the tool provider.
  217
+It also provides an opportunity for configuration defaults and setting up additional services provided by the tool.
  218
+
  219
+<ul>
  220
+   <li>
  221
+       <b>Automatic, based on Launch URL</b> - This setting should be used in almost all cases. Moodle will select the most appropriate tool configuration
  222
+       based on the Launch URL. Tools configured by both an administrator or within this course will be used.
  223
+       When the Launch URL is specified, Moodle will provide feedback on whether it recognizes it or not. If Moodle does not recognize the Launch URL,
  224
+       you may need to enter the tool configuration details manually.
  225
+   </li>
  226
+   <li>
  227
+       <b>A specific tool type</b> - By selecting a specific tool type, you can force Moodle to use that tool configuration when communicating with the 
  228
+       external tool provider. If the Launch URL does not appear to belong to the tool provider, a warning will appear. In some cases, it is not necessary
  229
+       to enter a Launch URL when providing a specific tool type (if not launching to a particular resource within the tool provider).
  230
+   </li>
  231
+   <li>
  232
+       <b>Custom configuration</b> - To setup custom tool configuration on just this instance, show Advanced options, and enter the consumer key and
  233
+       shared secret yourself. If you do not have a consumer key and shared secret, you may be able to request them from the tool provider.
  234
+       Not all tools require a consumer key and shared secret, in which case the fields may be left blank.
  235
+   </li>
  236
+</ul>
  237
+
  238
+<b>Tool type editing:</b><br />
  239
+
  240
+Three icons are available after the External tool type dropdown list:
  241
+
  242
+<ul>
  243
+    <li>
  244
+        <b>Add</b> - Create a course level tool configuration. All External Tool instances in this course may use the tool configuration.
  245
+    </li>
  246
+    <li>
  247
+        <b>Edit</b> - Select a course level tool type from the dropdown, then click this icon. The details of the tool configuration may be edited.
  248
+    </li>
  249
+    <li>
  250
+        <b>Delete</b> - Remove the selected course level tool type.
  251
+    </li>
  252
+</ul>
  253
+HTML;
  254
+
  255
+$string['launch_url_help'] = <<<HTML
  256
+The Launch URL indicates the web address of the External Tool, and may contain additional information, such as the resource to show.
  257
+If you are unsure what to enter for the Launch URL, please check with the tool provider for more information.
  258
+
  259
+If you have selected a specific tool type, you may not need to enter a Launch URL. If the tool link is used to just launch
  260
+into the tool provider's system, and not go to a specific resource, this will likely be the case.
  261
+HTML;
  262
+
  263
+$string['launchinpopup_help'] = <<<HTML
  264
+The launch container affects the display of the tool when launched from the course. Some launch containers provide more screen
  265
+real estate to the tool, and others provide a more integrated feel with the Moodle environemnt.
  266
+   
  267
+<ul>
  268
+    <li>
  269
+        <b>Default</b>  - Use the launch container specified by the tool configuration.
  270
+    </li>
  271
+    <li>
  272
+        <b>Embed</b> - The tool is displayed within the existing Moodle window, in a manner similar to most other Activity types.
  273
+    </li>
  274
+    <li>
  275
+        <b>Embed, without blocks</b> - The tool is displayed within the existing Moodle window, with just the neavigation controls
  276
+        at the top of the page.
  277
+    </li>
  278
+    <li>
  279
+        <b>New window</b> - The tool opens in a new window, occupying all the available space. 
  280
+        Depending on the browser, it will open in a new tab or a popup window.
  281
+        It is possible that browsers will prevent the new window from opening.
  282
+    </li>
  283
+</ul>
  284
+HTML;
  285
+
  286
+$string['resourcekey_help'] = <<<HTML
  287
+For pre-configured tools, it is not necessary to enter a resource key here, as the consumer key will be
  288
+provided as part of the configuration process.
  289
+
  290
+This field should be entered if creating a link to a tool provider which is not already configured.
  291
+If the tool provider is to be used more than once in this course, adding a course tool configuration is a good idea.
  292
+   
  293
+The consumer key can be thought of as a username used to authenticate access to the tool.
  294
+It can be used by the tool provider to uniquely identify the Moodle site from which users launch into the tool.
  295
+
  296
+The consumer key must be provided by the tool provider. The method of obtaining a consumer key varies between
  297
+tool providers. It may be an automated process, or it may require a dialogue with the tool provider.
  298
+
  299
+Tools which do not require secure communication from Moodle and do not provide additional services (such as grade reporting)
  300
+may not require a resource key.
  301
+HTML;
  302
+
  303
+$string['password_help'] = <<<HTML
  304
+For pre-configured tools, it is not necessary to enter a shared secret here, as the shared secret will be
  305
+provided as part of the configuration process.
  306
+
  307
+This field should be entered if creating a link to a tool provider which is not already configured.
  308
+If the tool provider is to be used more than once in this course, adding a course tool configuration is a good idea.
  309
+
  310
+The shared secret can be thought of as a password used to authenticate access to the tool. It should be provided
  311
+along with the consumer key from the tool provider.
  312
+
  313
+Tools which do not require secure communication from Moodle and do not provide additional services (such as grade reporting)
  314
+may not require a shared secret.
  315
+HTML;
  316
+
  317
+$string['custom_help'] = <<<HTML
  318
+Custom parameters are settings used by the tool provider. For example, a custom parameter may be used to display
  319
+a specific resource from the provider.
  320
+
  321
+It is safe to leave this field unchanged unless directed by the tool provider.
  322
+HTML;
  323
+
  324
+$string['share_name_help'] = <<<HTML
  325
+Specify whether the full name of the user launching the tool should be shared with the tool provider.
  326
+The tool provider may need launchers' names to show meaningful information within the tool.
  327
+
  328
+Note that this setting may be overriden in the tool configuration.
  329
+HTML;
  330
+
  331
+$string['share_email_help'] = <<<HTML
  332
+Specify whether the e-mail address of the user launching the tool will be shared with the tool provider.
  333
+The tool provider may need launcher's e-mail addresses to distinguish users with the same name, or send e-mails
  334
+to users based on actions within the tool.
  335
+
  336
+Note that this setting may be overriden in the tool configuration.
  337
+HTML;
  338
+
  339
+$string['accept_grades_help'] = <<<HTML
  340
+Specify whether the tool provider can add, update, read, and delete grades associated only with this external tool instance.
  341
+
  342
+Some tool providers support reporting grades back to Moodle based on actions taken within the tool, creating a more integrated
  343
+experience.
  344
+
  345
+Note that this setting may be overriden in the tool configuration.
  346
+HTML;
  347
+
  348
+$string['share_roster_help'] = <<<HTML
  349
+Specify whether the tool can access the list of users enrolled in this course.
  350
+
  351
+Note that this setting may be overriden in the tool configuration.
  352
+HTML;
  353
+
  354
+$string['display_name_help'] = <<<HTML
  355
+If selected, the activity name (specified above) will display above the tool provider's content.
  356
+
  357
+It is possible that the tool provider may also display the title. This option can prevent the activity title from
  358
+being displayed twice.
  359
+
  360
+The title is never displayed when the tool's launch container is in a new window.
  361
+HTML;
  362
+
  363
+$string['display_description_help'] = <<<HTML
  364
+If selected, the activity description (specified above) will display above the tool provider's content.
  365
+
  366
+The description may be used to provide additional instructions for launchers of the tool, but it is not required.
  367
+
  368
+The description is never displayed when the tool's launch container is in a new window.
  369
+HTML;
  370
+
  371
+//Admin help
  372
+$string['typename_help'] = <<<HTML
  373
+The tool name is used to identify the tool provider within Moodle. The name entered will be visible
  374
+to instructors when adding external tools within courses.
  375
+HTML;
  376
+
  377
+$string['toolurl_help'] = <<<HTML
  378
+The tool base URL is used to match tool launch URLs to the correct tool configuration. Prefxing the URL with http(s) is optional.
  379
+    
  380
+Additionally, the base URL is used as the launch URL if a launch URL is not specified in the external tool instance. 
  381
+    
  382
+<table>
  383
+    <thead>
  384
+        <tr>
  385
+            <td>
  386
+                <b>Base URL</b>
  387
+            </td>
  388
+            <td>
  389
+                <b>Matches</b>
  390
+            </td>
  391
+        </tr>
  392
+    </thead>
  393
+    <tbody>
  394
+        <tr>
  395
+            <td>
  396
+                tool.com
  397
+            </td>
  398
+            <td>
  399
+                tool.com, tool.com/quizzes, tool.com/quizzes/quiz.php?id=10, www.tool.com/quizzes
  400
+            </td>
  401
+        </tr>
  402
+        <tr>
  403
+            <td>
  404
+                www.tool.com/quizzes
  405
+            </td>
  406
+            <td>
  407
+                tool.com/quizzes, tool.com/quizzes/take.php?id=10, www.tool.com/quizzes
  408
+            </td>
  409
+        </tr>
  410
+        <tr>
  411
+            <td>
  412
+                quiz.tool.com
  413
+            </td>
  414
+            <td>
  415
+                quiz.tool.com, quiz.tool.com/take.php?id=10
  416
+            </td>
  417
+        </tr>
  418
+    </tbody>
  419
+</table>
  420
+
  421
+If two different tool configurations are for the same domain, the most specific match will be used.
  422
+HTML;
  423
+
  424
+$string['resourcekey_admin_help'] = <<<HTML
  425
+The consumer key can be thought of as a username used to authenticate access to the tool.
  426
+It can be used by the tool provider to uniquely identify the Moodle site from which users launch into the tool.
  427
+
  428
+The consumer key must be provided by the tool provider. The method of obtaining a consumer key varies between
  429
+tool providers. It may be an automated process, or it may require a dialogue with the tool provider.
  430
+
  431
+Tools which do not require secure communication from Moodle and do not provide additional services (such as grade reporting)
  432
+may not require a resource key.
  433
+HTML;
  434
+
  435
+$string['password_admin_help'] = <<<HTML
  436
+The shared secret can be thought of as a password used to authenticate access to the tool. It should be provided
  437
+along with the consumer key from the tool provider.
  438
+
  439
+Tools which do not require secure communication from Moodle and do not provide additional services (such as grade reporting)
  440
+may not require a shared secret.
  441
+HTML;
  442
+
  443
+$string['show_in_course_help'] = <<<HTML
  444
+If selected, this tool configuration will appear in the "External tool type" dropdown when instructors
  445
+configure external tools within courses.
  446
+
  447
+In most cases, this option does not need to be selected. Instructors can use this tool configuration
  448
+based on the Launch URL matching the Tool base URL, which is the preferred method.
  449
+
  450
+The only case in which this option should be selected is if the tool configuration is just intended for single sign on.
  451
+For example, if all launches to the tool provider just take the user to a landing page instead of to a specific resource.
  452
+HTML;
  453
+
  454
+$string['default_launch_container_help'] = <<<HTML
  455
+The launch container affects the display of the tool when launched from the course. Some launch containers provide more screen
  456
+real estate to the tool, and others provide a more integrated feel with the Moodle environemnt.
  457
+   
  458
+<ul>
  459
+    <li>
  460
+        <b>Default</b>  - Use the launch container specified by the tool configuration.
  461
+    </li>
  462
+    <li>
  463
+        <b>Embed</b> - The tool is displayed within the existing Moodle window, in a manner similar to most other Activity types.
  464
+    </li>
  465
+    <li>
  466
+        <b>Embed, without blocks</b> - The tool is displayed within the existing Moodle window, with just the neavigation controls
  467
+        at the top of the page.
  468
+    </li>
  469
+    <li>
  470
+        <b>New window</b> - The tool opens in a new window, occupying all the available space. 
  471
+        Depending on the browser, it will open in a new tab or a popup window.
  472
+        It is possible that browsers will prevent the new window from opening.
  473
+    </li>
  474
+</ul>
  475
+HTML;
  476
+
  477
+$string['share_name_admin_help'] = <<<HTML
  478
+Specify whether the full name of the user launching the tool should be shared with the tool provider.
  479
+The tool provider may need launchers' names to show meaningful information within the tool.
  480
+HTML;
  481
+
  482
+$string['share_email_admin_help'] = <<<HTML
  483
+Specify whether the e-mail address of the user launching the tool will be shared with the tool provider.
  484
+The tool provider may need launcher's e-mail addresses to distinguish users with the same name in the UI, or send e-mails
  485
+to users based on actions within the tool.
  486
+HTML;
  487
+
  488
+$string['accept_grades_admin_help'] = <<<HTML
  489
+Specify whether the tool provider can add, update, read, and delete grades associated with instances of this tool type.
  490
+
  491
+Some tool providers support reporting grades back to Moodle based on actions taken within the tool, creating a more integrated
  492
+experience.
  493
+HTML;
  494
+
  495
+$string['share_roster_admin_help'] = <<<HTML
  496
+Specify whether the tool can access the list of users enrolled in courses from which this tool type is launched.
  497
+HTML;
  498
+
  499
+$string['main_admin'] = 'General help';
  500
+
  501
+$string['main_admin_help'] = <<<HTML
  502
+External tools allow Moodle users to seamlessly interact with learning resources hosted remotely. Through a special
  503
+launch protocol, the remote tool will have access to some general information about the launching user. For example,
  504
+the institution name, course id, user id, and other information such as the user's name or e-mail address.
  505
+
  506
+Tool types listed on this page are separated into three categories:
  507
+
  508
+<ul>
  509
+    <li>
  510
+        <b>Active</b> - These tool providers have been approved and configured by an administrator. They can be used from within any
  511
+        course on this Moodle instance. If a consumer key and shared secret are entered, a trust relationship is established
  512
+        between this Moodle instance and the remote tool, providing a secure communication channel.
  513
+    </li>
  514
+    <li>
  515
+        <b>Pending</b> - These tool providers came in through a package import, but have not been configured by an administrator.
  516
+        Instructors may still use tools from these providers if they have a consumer key and shared secret, or if none is required.
  517
+    </li>
  518
+    <li>
  519
+        <b>Rejected</b> - These tools providers are flagged as ones which an administrator has no intention of making available to the entire 
  520
+        Moodle instance. Instructors may still use tools from these providers if they have a consumer key and shared secret, or if none is required.
  521
+    </li>
  522
+</ul>
  523
+HTML;
  524
+
  525
+$string['modulename_help'] = <<<HTML
  526
+External tools allow Moodle users to interact with learning resources and activities on other web sites. For instance, an
  527
+external tool could provide access to a new activity type or learning materials from a publisher.
  528
+
  529
+To setup an external tool instance a tool provider which supports LTI (Learning Tools Interoperability) is required.
  530
+If you find a tool provider which supports LTI, they should be able to provide instructions on how to configure the
  531
+external tool instance. Additionally, tool types configured by a site administrator will also be available for use.
  532
+
  533
+External tools differ from URL resources in a few ways:
  534
+<ul>
  535
+    <li>
  536
+        <b>Context aware</b> - External tools have access to information about the user who launched the tool, such as
  537
+        insitution, course, name, and other information.
  538
+    </li>
  539
+    <li>
  540
+        <b>Deep integration</b> - External tools support reading, updating, and deleting grades associated with the activity instance. More integration points
  541
+        are planned for future releases.
  542
+    </li>
  543
+    <li>
  544
+        <b>Security</b> - External tool configurations create a trust relationship between Moodle and the tool provider, allowing secure communication
  545
+        between them.
  546
+    </li>
  547
+</ul>
  548
+HTML;
21  mod/lti/mod_form.php
@@ -71,12 +71,15 @@ function definition() {
71 71
 
72 72
         $mform->addElement('checkbox', 'showtitle', '&nbsp;', ' ' . get_string('display_name', 'lti'));
73 73
         $mform->setAdvanced('showtitle');
  74
+        $mform->addHelpButton('showtitle', 'display_name', 'lti');
74 75
         
75 76
         $mform->addElement('checkbox', 'showdescription', '&nbsp;', ' ' . get_string('display_description', 'lti'));
76 77
         $mform->setAdvanced('showdescription');
  78
+        $mform->addHelpButton('showdescription', 'display_description', 'lti');
77 79
         
78 80
         //Tool settings
79 81
         $tooltypes = $mform->addElement('select', 'typeid', get_string('external_tool_type', 'lti'), array());
  82
+        $mform->addHelpButton('typeid', 'external_tool_type', 'lti');
80 83
         
81 84
         foreach(lti_get_types_for_add_instance() as $id => $type){
82 85
             if($type->course == $COURSE->id) {
@@ -92,6 +95,7 @@ function definition() {
92 95
         
93 96
         $mform->addElement('text', 'toolurl', get_string('launch_url', 'lti'), array('size'=>'64'));
94 97
         $mform->setType('toolurl', PARAM_TEXT);
  98
+        $mform->addHelpButton('toolurl', 'launch_url', 'lti');
95 99
         
96 100
         $launchoptions=array();
97 101
         $launchoptions[LTI_LAUNCH_CONTAINER_DEFAULT] = get_string('default', 'lti');
@@ -101,40 +105,43 @@ function definition() {
101 105
 
102 106
         $mform->addElement('select', 'launchcontainer', get_string('launchinpopup', 'lti'), $launchoptions);
103 107
         $mform->setDefault('launchcontainer', LTI_LAUNCH_CONTAINER_DEFAULT);
  108
+        $mform->addHelpButton('launchcontainer', 'launchinpopup', 'lti');
104 109
         
105 110
         $mform->addElement('text', 'resourcekey', get_string('resourcekey', 'lti'));
106 111
         $mform->setType('resourcekey', PARAM_TEXT);
107 112
         $mform->setAdvanced('resourcekey');
108  
-
  113
+        $mform->addHelpButton('resourcekey', 'resourcekey', 'lti');
  114
+        
109 115
         $mform->addElement('passwordunmask', 'password', get_string('password', 'lti'));
110 116
         $mform->setType('password', PARAM_TEXT);
111 117
         $mform->setAdvanced('password');
  118
+        $mform->addHelpButton('password', 'password', 'lti');
112 119
         
113 120
         $mform->addElement('textarea', 'instructorcustomparameters', get_string('custom', 'lti'), array('rows'=>4, 'cols'=>60));
114 121
         $mform->setType('instructorcustomparameters', PARAM_TEXT);
115 122
         $mform->setAdvanced('instructorcustomparameters');
  123
+        $mform->addHelpButton('instructorcustomparameters', 'custom', 'lti');
116 124
         
117 125
 //-------------------------------------------------------------------------------
118  
-        //$mform->addElement('hidden', 'typeid', $this->typeid);
119  
-        //$mform->addElement('hidden', 'toolurl', $this->typeconfig['toolurl']);
120  
-        //$mform->addElement('hidden', 'type', $typename);
121  
-
122  
-//-------------------------------------------------------------------------------
123 126
         // Add privacy preferences fieldset where users choose whether to send their data
124 127
         $mform->addElement('header', 'privacy', get_string('privacy', 'lti'));
125 128
 
126 129
         $mform->addElement('checkbox', 'instructorchoicesendname', '&nbsp;', ' ' . get_string('share_name', 'lti'));
127 130
         $mform->setDefault('instructorchoicesendname', '1');
  131
+        $mform->addHelpButton('instructorchoicesendname', 'share_name', 'lti');
128 132
         
129 133
         $mform->addElement('checkbox', 'instructorchoicesendemailaddr', '&nbsp;', ' ' . get_string('share_email', 'lti'));
130 134
         $mform->setDefault('instructorchoicesendemailaddr', '1');
  135
+        $mform->addHelpButton('instructorchoicesendemailaddr', 'share_email', 'lti');
131 136
         
132 137
         $mform->addElement('checkbox', 'instructorchoiceacceptgrades', '&nbsp;', ' ' . get_string('accept_grades', 'lti'));
133 138
         $mform->setDefault('instructorchoiceacceptgrades', '1');
  139
+        $mform->addHelpButton('instructorchoiceacceptgrades', 'accept_grades', 'lti');
134 140
         
135 141
         $mform->addElement('checkbox', 'instructorchoiceallowroster', '&nbsp;', ' ' . get_string('share_roster', 'lti'));
136 142
         $mform->setDefault('instructorchoiceallowroster', '1');
137  
-
  143
+        $mform->addHelpButton('instructorchoiceallowroster', 'share_roster', 'lti');
  144
+        
138 145
 //-------------------------------------------------------------------------------
139 146
 
140 147
 /*        $debugoptions=array();
2  mod/lti/settings.php
@@ -183,5 +183,5 @@
183 183
     $PAGE->requires->yui2_lib('tabview');
184 184
     $PAGE->requires->yui2_lib('datatable');
185 185
    
186  
-    $settings->add(new admin_setting_heading('lti_types', get_string('external_tool_types', 'lti'), $template));
  186
+    $settings->add(new admin_setting_heading('lti_types', get_string('external_tool_types', 'lti') . $OUTPUT->help_icon('main_admin', 'lti'), $template));
187 187
 }
2  mod/lti/styles.css
@@ -29,4 +29,4 @@
29 29
 #page-mod-lti-submissions .qgprefs #optiontable {text-align:right;margin-left:auto;}
30 30
 
31 31
 /* Styles for admin */
32  
-.path-admin-mod-lti .mform .fitem .fitemtitle { min-width:15em;padding-right:1em } /* Prevent setting titles from wrapping */
  32
+.path-admin-mod-lti .mform .fitem .fitemtitle { min-width:18em;padding-right:1em } /* Prevent setting titles from wrapping */

0 notes on commit b26dc53

Please sign in to comment.
Something went wrong with that request. Please try again.