[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 {{! 2 This file is part of Moodle - http://moodle.org/ 3 4 Moodle is free software: you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation, either version 3 of the License, or 7 (at your option) any later version. 8 9 Moodle is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 }} 17 {{! 18 @template tool_lp/user-summary 19 20 Moodle template for the list of valid options in an autocomplate form element. 21 22 Classes required for JS: 23 * none 24 25 Data attributes required for JS: 26 * none 27 28 Context variables required for this template: 29 * profileimageurlsmall Url to a small profile image. 30 * profileimageurl Url to a profile image. 31 * fullname Users full name 32 * hasidentity boolean to say if there are identity fields to show 33 * identity concatenated list of identity fields. 34 * id user id field 35 * email user email field 36 * idnumber user idnumber field 37 * phone1 user phone1 field 38 * phone2 user phone2 field 39 * department user department field 40 * institution user institution field 41 42 Example context (json): 43 { "id": "1", 44 "fullname": "Admin", 45 "hasidentity": true, 46 "identity": "Admin User, 0144114141", 47 "profileimageurl": "invalid url", 48 "profileimageurlsmall": "invalid url" 49 } 50 }} 51 <span> 52 <a href="{{profileurl}}" title="{{#str}}viewprofile{{/str}}"> 53 <img height="18" src="{{profileimageurlsmall}}" alt="" role="presentation"> 54 <span>{{fullname}}</span> 55 {{#hasidentity}} 56 <span><small>{{identity}}</small></span> 57 {{/hasidentity}} 58 </a> 59 </span>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |