{{!
    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 qtype_pmatch/newresponse

    Form to create a new response.

    Context variables required for this template:
    * newrowid - the id for new row

    Example context (json):
    {
        "newrowid" : "qtype-pmatch-new-response_1"
    }

}}

<tr class="generaterow" id="{{newrowid}}">
    <td class="cell c0" id="{{newrowid}}_c0"></td>
    <td class="cell c1" id="{{newrowid}}_c1"></td>
    <td class="cell c2" id="{{newrowid}}_c2"></td>
    <td class="cell c3" id="{{newrowid}}_c3"></td>
    <td class="cell c4" id="{{newrowid}}_c4">
        <div class="section-checkbox">
            <input type="checkbox" class="new-expectedfraction" name="new-expectedfraction" id="new-expectedfraction"/>
            <label class="form-check-label" for="new-expectedfraction">{{# str }} testquestioncorrect, qtype_pmatch {{/ str }}</label>
        </div>
    </td>
    <td class="cell c5" id="{{newrowid}}_c5">
        <div class="section-input">
            <label for="new-response">{{# str }} testquestionresponse, qtype_pmatch {{/ str }} <input type="text" id="new-response" class="new-response form-control" name="new-response" required/></label>
        </div>
        <div class="section-button">
            <input type="button" class="savenewresponse btn btn-primary" value="{{# str }} testquestionformsaveresponsebutton, qtype_pmatch {{/ str }}" disabled/>
            <input type="button" class="cancelnewresponse btn btn-secondary" value="{{# str }} testquestionformcancelresponsebutton, qtype_pmatch {{/ str }}"/>
        </div>
        <span class="response error"></span>
    </td>
</tr>
