<commit_before><div class="page">
    <h2 openlmis-message="label.initiate.requisition"></h2>
    <section class="table-container">
        <form ng-submit="vm.loadPeriods()">
            <fieldset>
                <legend>{{'label.requisition.facilityType' | message}}</legend>
                <label>
                    <input type="radio" ng-model="vm.isSupervised" ng-value="false"
                           ng-change="vm.updateFacilityType(vm.isSupervised)"/>
                    {{'label.myFacility' | message}}
                </label>
                <label>
                    <input type="radio" ng-model="vm.isSupervised" ng-value="true"
                           ng-change="vm.updateFacilityType(vm.isSupervised)"
                           ng-disabled="vm.supervisedFacilitiesDisabled"/>
                    {{'label.supervised.Facility' | message}}
                </label>
            </fieldset>
            <fieldset ng-show="!vm.isSupervised">
                <legend>{{'label.requisition.facilityName' | message}}</legend>
                <select id="facilityName" ng-model="vm.selectedFacilityId"
                        ng-options="facility.id as facility.name for facility in vm.facilities"
                        placeholder="label.select.facility">
                </select>
            </fieldset>
            <fieldset ng-show="!vm.isSupervised">
                <legend>{{'label.program' | message}}</legend>
                <select id="programListMyFacility" ng-model="vm.selectedProgramId"
                        ng-options="program.id as program.name for program in vm.programs"
                        ng-change="vm.refreshGridData()"
                        placeholder="{{'label.select.program' | message}}">
                </select>
            </fieldset>
            <fieldset ng-show="vm.isSupervised">
                <legend>{{'label.program' | message}}</legend>
                <select id="programListSupervisedFacility" ng-model="vm.selectedProgramId"
                        ng-options="program.id as program.name for program in vm.programs"
                        ng-change="vm.loadFacilitiesForProgram(vm.selectedProgramId)"
                        placeholder="{{'label.select.program' | message}}">
                </select>
            </fieldset>
            <fieldset ng-show="vm.isSupervised">
                <legend>{{'label.requisition.facilityName' | message}}</legend>
                <select id="supervisedFacilityName" ng-model="vm.selectedFacilityId"
                        ng-options="facility.id as facility.name for facility in vm.facilities | unique:'id'"
                        ng-change="vm.refreshGridData()"
                        placeholder="{{'label.select.facility' | message}}">
                </select>
            </fieldset>
            <fieldset>
                <legend>{{'label.requisition.type' | message}}</legend>
                <label>
                    <input type="radio" ng-model="vm.emergency" ng-value="false"
                           ng-change="vm.refreshGridData()"/>
                    {{'requisition.type.regular' | message}}
                </label>
                <label>
                    <input type="radio" ng-model="vm.emergency" ng-value="true"
                           ng-change="vm.refreshGridData()"/>
                    {{'requisition.type.emergency' | message}}
                </label>
            </fieldset>
            <input class="btn btn-primary" type="submit" value="{{'button.search'|message}}"/>
        </form>
        <table ng-show="vm.selectedProgramId && vm.selectedFacilityId && vm.periodGridData && !(vm.periodGridData.length == 0)">
            <thead>
                <tr>
                    <th>{{'label.periods' | message}}</th>
                    <th>{{'period.header.startDate' | message}}</th>
                    <th>{{'period.header.endDate' | message}}</th>
                    <th>{{'label.rnr.status' | message}}</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="period in vm.periodGridData">
                    <td>{{period.name}}</td>
                    <td>{{period.startDate | date:'dd/MM/yyyy'}}</td>
                    <td>{{period.endDate | date:'dd/MM/yyyy'}}</td>
                    <td>{{period.rnrStatus}}</td>
                    <td>
                        <input id="proceedButton" type="button" ng-click="vm.initRnr(period)"
                               openlmis-message="button.proceed" class="btn btn-primary grid-btn"
                               ng-show="{{period.activeForRnr}}"/>
                    </td>
                </tr>
            </tbody>
        </table>
    </section>
    <div ng-if="vm.error" class="alert is-error" openlmis-message="vm.error" ng-show="vm.error"></div>
</div>
<commit_msg>OLMIS-1352: Fixes for Initiate/Authorize screen markup<commit_after><div class="page">
    <h2>{{'label.initiate.requisition' | message}}</h2>
    <section class="table-container">
        <form ng-submit="vm.loadPeriods()">
            <fieldset>
                <legend>{{'label.requisition.facilityType' | message}}</legend>
                <label>
                    <input type="radio" ng-model="vm.isSupervised" ng-value="false"
                           ng-change="vm.updateFacilityType(vm.isSupervised)"/>
                    {{'label.myFacility' | message}}
                </label>
                <label>
                    <input type="radio" ng-model="vm.isSupervised" ng-value="true"
                           ng-change="vm.updateFacilityType(vm.isSupervised)"
                           ng-disabled="vm.supervisedFacilitiesDisabled"/>
                    {{'label.supervised.Facility' | message}}
                </label>
            </fieldset>
            <label for="facilityName" ng-show="!vm.isSupervised">
                {{'label.requisition.facilityName' | message}}
            </label>
            <select id="facilityName" ng-model="vm.selectedFacilityId"
                    ng-options="facility.id as facility.name for facility in vm.facilities"
                    placeholder="label.select.facility" ng-show="!vm.isSupervised">
            </select>
            <label for="programListMyFacility" ng-show="!vm.isSupervised">
                {{'label.program' | message}}
            </label>
            <select id="programListMyFacility" ng-model="vm.selectedProgramId"
                    ng-options="program.id as program.name for program in vm.programs"
                    ng-change="vm.refreshGridData()" ng-show="!vm.isSupervised"
                    placeholder="{{'label.select.program' | message}}">
            </select>
            <label for="programListSupervisedFacility" ng-show="vm.isSupervised">
                {{'label.program' | message}}
            </label>
            <select id="programListSupervisedFacility" ng-model="vm.selectedProgramId"
                    ng-options="program.id as program.name for program in vm.programs"
                    ng-change="vm.loadFacilitiesForProgram(vm.selectedProgramId)"
                    placeholder="{{'label.select.program' | message}}" ng-show="vm.isSupervised">
            </select>
            <label for="supervisedFacilityName" ng-show="vm.isSupervised">
                {{'label.requisition.facilityName' | message}}
            </label>
            <select id="supervisedFacilityName" ng-model="vm.selectedFacilityId"
                    ng-options="facility.id as facility.name for facility in vm.facilities | unique:'id'"
                    ng-change="vm.refreshGridData()" ng-show="vm.isSupervised"
                    placeholder="{{'label.select.facility' | message}}">
            </select>
            <fieldset>
                <legend>{{'label.requisition.type' | message}}</legend>
                <label>
                    <input type="radio" ng-model="vm.emergency" ng-value="false"
                           ng-change="vm.refreshGridData()"/>
                    {{'requisition.type.regular' | message}}
                </label>
                <label>
                    <input type="radio" ng-model="vm.emergency" ng-value="true"
                           ng-change="vm.refreshGridData()"/>
                    {{'requisition.type.emergency' | message}}
                </label>
            </fieldset>
            <input class="btn btn-primary" type="submit" value="{{'button.search'|message}}"/>
        </form>
        <table ng-show="vm.selectedProgramId && vm.selectedFacilityId && vm.periodGridData && !(vm.periodGridData.length == 0)">
            <thead>
                <tr>
                    <th>{{'label.periods' | message}}</th>
                    <th>{{'period.header.startDate' | message}}</th>
                    <th>{{'period.header.endDate' | message}}</th>
                    <th>{{'label.rnr.status' | message}}</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="period in vm.periodGridData">
                    <td>{{period.name}}</td>
                    <td>{{period.startDate | date:'dd/MM/yyyy'}}</td>
                    <td>{{period.endDate | date:'dd/MM/yyyy'}}</td>
                    <td>{{period.rnrStatus}}</td>
                    <td>
                        <input id="proceedButton" type="button" ng-click="vm.initRnr(period)"
                               openlmis-message="button.proceed" class="btn btn-primary grid-btn"
                               ng-show="{{period.activeForRnr}}"/>
                    </td>
                </tr>
            </tbody>
        </table>
    </section>
    <div ng-if="vm.error" class="alert is-error" openlmis-message="vm.error" ng-show="vm.error"></div>
</div>

{'fraction_non_alphanumeric': 0.14877378650656356, 'fraction_numerical': 0.0010176045588684236, 'mean_word_length': 1.5931398416886544, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, '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': '5986724', 'n_tokens_mistral': 2766, 'n_tokens_neox': 2547, 'n_words': 385}