<commit_before><!--
  ~ This program is part of the OpenLMIS logistics management information system platform software.
  ~ Copyright © 2013 VillageReach
  ~
  ~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  ~  
  ~ This program 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 Affero General Public License for more details.
  ~ You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses.  For additional information contact <EMAIL>. 
  -->

<h2 ng-bind="template.name"></h2>
<div class="app-form">
  <div ng-repeat="parameter in parameters" class="form-row">
    <label class="short" style="margin-bottom: 2px; font-size: 0.9em;">{{ parameter.displayName }}</label>:

    <ng-switch on="parameter.dataType">
      <span ng-switch-when="java.lang.Integer" class="clearfix form-inline row-fluid">
        <input type="text"
               name="{{parameter.name}}"
               ng-model="map[parameter.name]" class="right-justified"
               numeric-validator="integer" ng-trim="false"/>

      <span class="rnr-form-error" style="display:none;" id="{{parameter.name}}"
            openlmis-message="error.number.only"></span>
      </span>

      <div ng-switch-when="java.lang.String">
        <input type="text" name="{{parameter.name}}" ng-trim="false"
               ng-model="map[parameter.name]"/>
      </div>

      <div ng-switch-when="java.lang.Boolean">
        <input type="radio" name="{{parameter.name}}" ng-value="'true'" ng-model="map[parameter.name]"/>
        <strong openlmis-message="button.yes"></strong> &nbsp; &nbsp; &nbsp;
        <input type="radio" name="{{parameter.name}}" ng-value="'false'" ng-model="map[parameter.name]"/>
        <strong openlmis-message="button.no"></strong>
      </div>

      <div ng-switch-when="java.util.Date">
        <input name="startDate" id="startDate" type="text"
               ui-date="{dateFormat: 'dd/mm/yy', changeYear: true}"
               ui-date-format="dd/mm/y"
               ng-model="map[parameter.name]" readonly/>
      </div>

      <div ng-switch-default>
        <input type="text" name="{{parameter.name}}" ng-trim="false"
               ng-model="map[parameter.name]"/>
      </div>
    </ng-switch>
    <label class="short">{{ parameter.description }}</label>
  </div>
  <a id="pdfLink" href="/reports/{{template.id}}/pdf" target="_blank"
     openlmis-message="report.type.pdf"></a>
  <a id="xlsLink" href="/reports/{{template.id}}/xls" target="_blank"
     openlmis-message="report.type.xls"></a>
  <a id="csvLink" href="/reports/{{template.id}}/csv" target="_blank"
     openlmis-message="report.type.csv"></a>
  <a id="htmlLink" href="/reports/{{template.id}}/html" target="_blank"
     openlmis-message="report.type.html"></a>
</div><commit_msg>|#1496| Riya | Removing numeric validations on text boxes on view report page.<commit_after><!--
  ~ This program is part of the OpenLMIS logistics management information system platform software.
  ~ Copyright © 2013 VillageReach
  ~
  ~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  ~  
  ~ This program 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 Affero General Public License for more details.
  ~ You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses.  For additional information contact <EMAIL>. 
  -->

<h2 ng-bind="template.name"></h2>
<div class="app-form">
  <div ng-repeat="parameter in parameters" class="form-row">
    <label class="short" style="margin-bottom: 2px; font-size: 0.9em;" ng-bind="parameter.displayName"></label>:

    <ng-switch on="parameter.dataType">
      <div ng-switch-when="java.lang.Boolean">
        <input type="radio" name="{{parameter.name}}" ng-value="'true'" ng-model="map[parameter.name]"/>
        <strong openlmis-message="button.yes"></strong> &nbsp; &nbsp; &nbsp;
        <input type="radio" name="{{parameter.name}}" ng-value="'false'" ng-model="map[parameter.name]"/>
        <strong openlmis-message="button.no"></strong>
      </div>

      <div ng-switch-when="java.util.Date">
        <input name="startDate" id="startDate" type="text"
               ui-date="{dateFormat: 'dd/mm/yy', changeYear: true}"
               ui-date-format="dd/mm/y"
               ng-model="map[parameter.name]" readonly/>
      </div>

      <div ng-switch-default>
        <input type="text" id="{{parameter.name}}" ng-trim="false"
               ng-model="map[parameter.name]"/>
      </div>
    </ng-switch>

    <label class="short" ng-bind="parameter.description"></label>
  </div>

  <div>
    <a id="pdfLink" href="/reports/{{template.id}}/pdf" target="_blank"
       openlmis-message="report.type.pdf"></a>
    <a id="xlsLink" href="/reports/{{template.id}}/xls" target="_blank"
       openlmis-message="report.type.xls"></a>
    <a id="csvLink" href="/reports/{{template.id}}/csv" target="_blank"
       openlmis-message="report.type.csv"></a>
    <a id="htmlLink" href="/reports/{{template.id}}/html" target="_blank"
       openlmis-message="report.type.html"></a>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1627305636959145, 'fraction_numerical': 0.004137217721082572, 'mean_word_length': 3.4054669703872436, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '1795384', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1702, 'n_words': 462}