{{!
    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 local_coursedynamicrules/conditions

    TODO describe template conditions

    Example context (json):
    {
    }
}}
{{#conditions}}
<div class="card mb-3 instance-card" data-title="{{header}}">
  <div class="card-header p-0">
    <div class="mb-0 d-flex justify-content-between align-items-center pr-2 ">
      <span class="text-left ml-1 nomargin btn"> {{header}} </span>
        <span class="ml-auto" >
            <a class="btn btn-link pl-0 pr-2" href="{{deleteurl}}" >
                <i class="icon fa fa-trash fa-fw " title="{{#str}} deletecondition, local_coursedynamicrules {{/str}}" role="img" aria-label="{{#str}} deletecondition, local_coursedynamicrules {{/str}}" ></i>
            </a>
        </span>
    </div>
  </div>
  <div>
    <div class="card-body p-3" style="opacity: 1">
      <div class="description-container">{{description}}</div>
    </div>
  </div>
</div>
{{/conditions}}
