{{!
    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_assign_ai/review_modal
    Template for AI review modal body.

    Example context (json):
    {
        "message": "This is an example AI-generated review message.",
        "token": "exampletoken123",
        "savelabel": "Save",
        "saveapprovelabel": "Save and Approve"
    }
}}

<div class="local-assign-ai-modal">
    <textarea id="airesponse-edit" class="form-control" rows="8">{{{message}}}</textarea>

    <div class="ai-buttons mt-3">
        <button class="btn btn-success save-ai" data-courseid="{{courseid}}" data-cmid="{{cmid}}" data-userid="{{userid}}">
            {{savelabel}}
        </button>
        <button class="btn btn-primary approve-ai" data-courseid="{{courseid}}" data-cmid="{{cmid}}" data-userid="{{userid}}">
            {{saveapprovelabel}}
        </button>
    </div>
</div>
