{{!
    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 mod_minilesson/aigen_progress

    TODO describe template aigen_progress

    Example context (json):
    {
    }
}}
<div class="progress active position-relative" style="height: 25px; width: 500px;">
    <div id="{{tableuniqueid}}_bar"
         class="progress-bar progress-bar-striped progress-bar-animated"
         style="width: {{{width}}}%"
         role="progressbar"
         aria-valuemin="0"
         aria-valuemax="{{{width}}}"
         aria-valuenow="0"
         data-region="progressbar"
         {{#id}}data-id="{{id}}"{{/id}}>
         {{#width}} {{{width}}}% {{/width}}
    </div>
    {{^width}}
        <div class="position-absolute d-flex align-items-center justify-content-center progress-bar progress-bar-striped progress-bar-animated bg-secondary" style="top:0; left:0; width: 100%; height:100% ">
            {{#inprogress}}{{#str}} processinprogress, mod_minilesson {{/str}}{{/inprogress}}
            {{^inprogress}}{{#str}} processpending, mod_minilesson {{/str}}{{/inprogress}}
        </div>
    {{/width}}
</div>