<commit_before><h2>{{'adminTemplateList.templates' | message}}</h2>
<button id="add-template" class="add" ui-sref=".add">
    {{'adminTemplateList.addRequisitionTemplate' | message}}
</button>
<div ng-repeat="program in vm.programs | orderBy: 'name'">
    <div class="openlmis-table-container">
        <h2>{{program.name}}</h2>
        <table class="openlmis-table">
            <caption ng-if="!vm.programTemplates[program.id].length">
                {{'adminTemplateList.noRequisitionTemplates' | message: {'program': program.name} }}
            </caption>
            <thead>
                <tr>
                    <th>{{'adminTemplateList.templateName' | message}}</th>
                    <th>{{'adminTemplateList.facilityType' | message}}</th>
                    <th>{{'adminTemplateList.action' | message}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="template in vm.programTemplates[program.id] | orderBy: 'name'">
                    <td>{{template.name}}</td>
                    <td ng-if="template.facilityTypes.length > 1"
                        popover-template="admin-template-list/facility-types-popover.html">
                        {{'adminTemplateList.facilityTypes' | message: {'number': vm.templateFacilityTypes[template.id].length } }}</td>
                    <td ng-if="!(template.facilityTypes.length > 1)">{{vm.templateFacilityTypes[template.id][0].name}}</td>
                    <td>
                        <button ui-sref="openlmis.administration.requisitionTemplates.configure.columns({id: template.id})">{{'adminTemplateList.configure' | message}}</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div><commit_msg>OLMIS-4015: Moved add template button to the toolbar<commit_after><h2>{{'adminTemplateList.templates' | message}}</h2>
<div ng-repeat="program in vm.programs | orderBy: 'name'">
    <div class="openlmis-table-container">
        <h2>{{program.name}}</h2>
        <table class="openlmis-table">
            <caption ng-if="!vm.programTemplates[program.id].length">
                {{'adminTemplateList.noRequisitionTemplates' | message: {'program': program.name} }}
            </caption>
            <thead>
                <tr>
                    <th>{{'adminTemplateList.templateName' | message}}</th>
                    <th>{{'adminTemplateList.facilityType' | message}}</th>
                    <th>{{'adminTemplateList.action' | message}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="template in vm.programTemplates[program.id] | orderBy: 'name'">
                    <td>{{template.name}}</td>
                    <td ng-if="template.facilityTypes.length > 1"
                        popover-template="admin-template-list/facility-types-popover.html">
                        {{'adminTemplateList.facilityTypes' | message: {'number': vm.templateFacilityTypes[template.id].length } }}</td>
                    <td ng-if="!(template.facilityTypes.length > 1)">{{vm.templateFacilityTypes[template.id][0].name}}</td>
                    <td>
                        <button ui-sref="openlmis.administration.requisitionTemplates.configure.columns({id: template.id})">{{'adminTemplateList.configure' | message}}</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="openlmis-toolbar button-group">
    <div class="button-group primary">
        <button id="add-template" class="add" ui-sref=".add">
            {{'adminTemplateList.addRequisitionTemplate' | message}}
        </button>
    </div>
</div>
{'fraction_non_alphanumeric': 0.16477272727272727, 'fraction_numerical': 0.00487012987012987, 'mean_word_length': 2.0911371237458196, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4325649', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1013, 'n_words': 150}