{{!
    This file is part of the mod_mtcontabilita plugin for 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 mod_mtcontabilita/session_item/row

    Template for showing session list item.

    Example context (json):
    {
        "sessiontimes": [
            {
                "date": "Tue, June 11",
                "time": "11:00 - 14:00"
            }
        ],
        "capacity": "1/10",
        "status": "Booked"
    }
}}
<div class="row flex-grow-1">
    <div class="col-12 col-sm-12 p-12">

        <div class="row">
            <!-- <div class="col small text-uppercase" id="session-item-desc-{{uniqid}}">{{#str}} itemdesc,mtcontabilita {{/str}}</div> -->
            <div class="col small text-uppercase" id="session-item-num-{{uniqid}}">{{#str}} itemnum,mtcontabilita {{/str}}</div>
            <div class="col small text-uppercase" id="session-item-date-{{uniqid}}">{{#str}} itemdate,mtcontabilita {{/str}}</div>
            <div class="col small text-uppercase" id="session-item-conto-{{uniqid}}">{{#str}} listid,mtcontabilita {{/str}}</div>
            <div class="col small text-uppercase" id="session-item-type-{{uniqid}}">{{#str}} itemtype,mtcontabilita {{/str}}</div>
            <div class="col small text-uppercase" id="session-item-schema-{{uniqid}}">{{#str}} schema,mtcontabilita {{/str}}</div>
            <div class="col small text-uppercase" id="session-item-amount-{{uniqid}}">{{#str}} itemamount,mtcontabilita {{/str}}</div>
        </div>
        {{#sessiontimes}}
        <div class="row">
            <!-- <div class="col" aria-labelledby="session-item-itemdesc-{{uniqid}}">{{itemdesc}}</div> -->
            <div class="col" aria-labelledby="session-item-num-{{uniqid}}">{{itemnum}}</div>
            <div class="col" aria-labelledby="session-item-date-{{uniqid}}">{{itemdate}}</div>
            <div class="col" aria-labelledby="session-item-conto-{{uniqid}}">{{conto}}</div>
            <div class="col" aria-labelledby="session-item-type-{{uniqid}}">{{itemtype}}</div>
            <div class="col" aria-labelledby="session-item-schema-{{uniqid}}">{{schema}}</div>
            <div class="col" aria-labelledby="session-item-amount-{{uniqid}}">{{amount}}</div>
        </div>
        {{/sessiontimes}}

    </div>
{{!
    <div class="col-6 col-sm-3 p-4">
        <div class="small text-uppercase" id="session-item-capacity-{ {uniqid} }">{ { capacitytitle } }</div>
        <div aria-labelledby="session-item-capacity-{ {uniqid} }">{ {capacity} }</div>
    </div>
    <div class="col-6 col-sm-3 p-4">
        {   {> mod_mtcontabilita/session_status} }
    </div>}}
</div>
