{{!
This file is part of Programs plugin for Moodle™.

This program 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.

This program 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 this program.  If not, see <https://www.gnu.org/licenses/>.

@copyright   2025 Petr Skoda
@license     https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

}}
{{!
    @template tool_muprog/catalogue/program

    Template to display tenant login URL with copy to clipboard button.

    Context variables required for this template:
    * url - Program URL
    + fullname - Program full bame
    * description - Program description
    * tags - div with program tags
    * image - program image tag
    * sourceinfo - program status and source info

    Example context (json):
    {
        "url": "https://example.com/admin/tool/muprog/catalogue/program.php?id=5",
        "fullname": "Program 001",
        "description": "Some program",
        "tags": "",
        "image": "",
        "sourceinfo": ""
    }
}}
<div class="card mb-3">
    <div class="row">
        <div class="col-md-8">
            <div class="card-body">
                <h2 class="card-title"><a href="{{url}}">{{fullname}}</a></h2>
                <div class="card-text">{{{description}}}</div>
                {{{tags}}}
            </div>
        </div>
        <div class="col-md-auto">
            {{{image}}}
        </div>
    </div>
    <div class="card-footer text-muted">{{{sourceinfo}}}</div>
</div>
