{{!
    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 local_dttutor/admin_custom_avatar_preview

    Custom avatar preview template

    Context variables required for this template:
    * url - URL to the custom avatar image
    * str_preview - Localized "Preview" string

    Example context (json):
    {
        "url": "https://example.com/custom-avatar.png",
        "str_preview": "Preview"
    }
}}
<div class="mt-2">
    <div class="alert alert-success">
        <strong>{{str_preview}}</strong><br>
        <img src="{{url}}" alt="Custom avatar preview" style="max-width: 150px; max-height: 150px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); margin-top: 5px;">
    </div>
</div>
