Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{{!
    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 core_calendar/event_summary_modal

    This template renders the calendar events summary modal.

    Example context (json):
    {
        "title": "Assignment due 1"
    }
}}
{{< core/modal-sm }}
    {{$footer}}

        {{#action.actionable}}
            <a href="{{action.url}}">{{{action.name}}}</a>
        {{/action.actionable}}
        {{^action.actionable}}
            {{#isactionevent}}
            <a href="{{url}}">{{#str}} gotoactivity, core_calendar {{/str}}</a>
            {{/isactionevent}}
        {{/action.actionable}}

        {{^isactionevent}}
            {{#canedit}}
                <button type="button" class="btn btn-sm btn-primary" data-action="edit">
                    <svg class="rui-btn--icon mr-2" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M4.75 19.25L9 18.25L18.5625 8.6875C19.46 7.79004 19.46 6.33496 18.5625 5.4375C17.665 4.54004 16.21 4.54004 15.3125 5.4375L5.75 15L4.75 19.25Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                    {{#str}} edit {{/str}}
                </button>
            {{/canedit}}
        {{/isactionevent}}

        {{#candelete}}
            <button type="button" class="btn btn-sm btn-icon btn-danger ml-auto" data-action="delete" title="{{#str}} delete {{/str}}">
                <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.75 7.75L7.59115 17.4233C7.68102 18.4568 8.54622 19.25 9.58363 19.25H14.4164C15.4538 19.25 16.319 18.4568 16.4088 17.4233L17.25 7.75"></path>
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 7.5V6.75C9.75 5.64543 10.6454 4.75 11.75 4.75H12.25C13.3546 4.75 14.25 5.64543 14.25 6.75V7.5"></path>
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7.75H19"></path>
                </svg>
            </button>
        {{/candelete}}

    {{/footer}}
{{/ core/modal-sm }}