{{!
    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/>.
}}
{{!
    List competencies template.

    Classes required for JS:
    * learningplan

    Context variables required for this template:
    * competency
        * shortname
        * idnumber
        * id
}}
{{#competencies_list}}
<div class="competency-detail" id="comp-{{id}}">
    <div class="x_panel tile stats">
        <div class="x_title">
            <h4 class="truncate">
                <a role="button" title="{{shortname}} {{idnumber}}" data-action="competency-dialogue" href="#" data-id="{{id}}">
                    {{shortname}} 
                    <em>
                        <small>{{idnumber}}</small>
                    </em>
                </a>
            </h4>
        </div>
        <div class="x_content">
            <div class="loaderstatscompetency">
                <i class="fa fa-refresh fa-spin fa-5x"></i>
            </div>
        </div>
    </div>
</div>
{{/competencies_list}}
{{^competencies_list}}
    <p class="alert alert-info">
        {{#str}}nocompetenciesintemplate, tool_lp{{/str}}
    </p>
{{/competencies_list}}