{{!
    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/>.
}}
{{!
    @template theme_boost_union/courselistingdetailsmodal-contact-dataattrib

    Boost Union course listing details modal contact template.

    Context variables required for this template:
    * id - The id of the user.
    * userpicture - The user picture.
    * fullname - The full name of the user.
    * role - The role of the user.
    * canviewuserdetails - Whether the user can view the user details.

    Example context (json):
    {
        "id": 1,
        "userpicture": "/theme/image.php/boost_union/core/1739619014/u/f1",
        "contactname": "John Doe",
        "role": "Teacher",
        "canviewuserdetails": true
    }
}}
{{! This template is manually escaped as its content is used within a data-attribute. }}
&lt;div class=&quot;contact p-2&quot;&gt;
    &lt;div class=&quot;card h-100&quot;&gt;
        &lt;div class=&quot;card-body text-center pb-3&quot;&gt;
            &lt;img src=&quot;{{userpicture}}&quot; class=&quot;img-fluid rounded-circle shadow-sm mb-2&quot; alt=&quot;{{contactname}}&quot; /&gt;
            &lt;div class=&quot;name mb-0&quot;&gt;&lt;strong&gt;{{contactname}}&lt;/strong&gt;&lt;/div&gt;
            &lt;div class=&quot;role&quot;&gt;&lt;small&gt;{{role}}&lt;/small&gt;&lt;/div&gt;
        &lt;/div&gt;
        {{#canviewuserdetails}}
            &lt;div class=&quot;card-footer text-center&quot;&gt;
                &lt;a href=&quot;{{config.wwwroot}}/user/profile.php?id={{id}}&quot; class=&quot;btn btn-secondary&quot;&gt;{{#str}}courselistingviewprofile, theme_boost_union{{/str}}&lt;/a&gt;
            &lt;/div&gt;
        {{/canviewuserdetails}}
    &lt;/div&gt;
&lt;/div&gt;
