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

    Classes required for JS:

    Data attibutes required for JS:
    * data-action=add
    * data-enhance=tree
    * data-region=term
    * data-region=selected-competency

    Context variables required for this template:
    * framework -
    * competencies - array of objects containing id, shortname, idnumber, sortorder, parentid, competencyframeworkid, path
    * canmanage - true if this user has permission to manage the competencies
}}
<div data-region="managecompetencies">

<div class="row">
<div class="span6">
<p>
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}">
    <label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
    <input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
    <button>{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
</form>
</p>
<ul data-enhance="tree">
    {{> tool_lp/loading }}
</ul>
</div>

<div class="span6 well">
<h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
<p data-region="competencyinfo">
{{#str}}nocompetencyselected, tool_lp{{/str}}
</p>
{{#canmanage}}
<div data-region="competencyactions">
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} <span data-region="term"></span></button>
            <span data-region="competencyactionsmenu">
            <ul title="{{#str}}edit{{/str}}" class="competencyactionsmenu">
                <li><commit_msg>MDL-52909 cbe: Fix padding on manage competencies page.<commit_after>{{!
    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/>.
}}
{{!
    Manage competencies template.

    Classes required for JS:

    Data attibutes required for JS:
    * data-action=add
    * data-enhance=tree
    * data-region=term
    * data-region=selected-competency

    Context variables required for this template:
    * framework -
    * competencies - array of objects containing id, shortname, idnumber, sortorder, parentid, competencyframeworkid, path
    * canmanage - true if this user has permission to manage the competencies
}}
<div data-region="managecompetencies">

<div class="row-fluid">
<div class="span6">
<p>
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}">
    <label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
    <input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
    <button>{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
</form>
</p>
<ul data-enhance="tree">
    {{> tool_lp/loading }}
</ul>
</div>

<div class="span6 well">
<h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
<p data-region="competencyinfo">
{{#str}}nocompetencyselected, tool_lp{{/str}}
</p>
{{#canmanage}}
<div data-region="competencyactions">
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} <span data-region="term"></span></button>
            <span data-region="competencyactionsmenu">
            <ul title="{{#str}}edit{{/str}}" class="competencyactionsmenu">
                <li>
{'fraction_non_alphanumeric': 0.14781834372217276, 'fraction_numerical': 0.0033392698130008903, 'mean_word_length': 4.123147092360319, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5828491', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1345, 'n_words': 414}