{{!
    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/>.
}}
<div class="px-3 card flex-row session-card rounded {{extraclasses}}" data-sessionid="{{sessionid}}">
    <div class="flex-grow-1">
        <div class="d-flex position-relative">

            <div class="w-auto pl-0 py-4 pr-8">
            {{> mod_mtcontabilita/session_description}}
            </div>

            {{! Toggle button }}
            <div class="w-auto pl-0 py-4 pr-3">
                <a role="button" data-toggle="collapse"
                   href="#covercollapse{{sessionid}}"
                   class="text-gray-900 text-decoration-none stretched-link icons-collapse-expand collapsed"
                   aria-expanded="false"
                   aria-controls="covercollapse{{sessionid}}">
                    <span class="expanded-icon icon-no-margin p-2" title="{{#str}} collapse, core {{/str}}">
                        {{#pix}} t/collapsedchevron_up, core {{/pix}}
                        <span class="sr-only">{{#str}} collapse, core {{/str}}</span>
                    </span>
                    <span class="collapsed-icon icon-no-margin p-2" title="{{#str}} expand, core {{/str}}">
                        {{#pix}} t/expandedchevron, core {{/pix}}
                        <span class="sr-only">{{#str}} expand, core {{/str}}</span>
                    </span>
                </a>
            </div>
        </div>

        <div class="d-flex position-relative">
                <div class="col">
                    <div align="center"><a href="excel.php?tp=1&id={{sessionid}}" class="icon-size-6">{{#pix}} f/calc {{/pix}}</a></div>
                    <div align="center">{{#str}}init, mtcontabilita{{/str}}</div>
                </div>
                <!-- <div class="col">
                    <div align="center"><a href="excel.php?tp=1&id={{sessionid}}" class="icon-size-6">{{#pix}} f/calc {{/pix}}</a></div>
                    <div align="center">Scritture</div>
                </div>
                <div class="col">
                    <div align="center"><a href="excel.php?tp=1&id={{sessionid}}" class="icon-size-6">{{#pix}} f/calc {{/pix}}</a></div>
                    <div align="center">Situazionefinale</div>
                </div>
                <div class="col">
                    <div align="center"><a href="excel.php?tp=1&id={{sessionid}}" class="icon-size-6">{{#pix}} f/calc {{/pix}}</a></div>
                    <div align="center">SP/CE</div>
                </div> -->
        </div>

        {{! Toggle container }}
        <div id="covercollapse{{sessionid}}" class="position-relative z-index-1 pagesectioncontent collapse">
            <div class="session-description bg-gray-100 rounded mr-3 mb-3 p-3">
                {{> mod_mtcontabilita/session_item/row}}

                {{! Book and Cancel buttons }}
                {{#hasactionbutton}}
                    {{> mod_mtcontabilita/session_item/book_cancel_buttons}}
                {{/hasactionbutton}}
            </div>
        </div>



    </div>

    {{! Action menu }}
    {{#hasmenu}}
        {{> mod_mtcontabilita/session_item/action_menu}}
    {{/hasmenu}}
</div>
