SHARE
TWEET

Untitled

a guest Feb 27th, 2020 326 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div>
  2.     <div class="separator" ng-style="$root.form.style.tabHeader"></div>
  3.     <div class="section group">
  4.         <div class="col span_1_of_2">
  5.             <div class="ssc-form-label-input-field" ng-repeat="(additionalFieldKey, additionalField) in $root.config.cOrg.additionalFields" ng-show="$even && $root.doc.isFieldVisible('poleDodatkowe_' + additionalField.number) && ($root.user.canReadField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia')">
  6.                
  7.                
  8.                 <div ng-style="ssc-form-label-input-field" class="ssc-form-label">
  9.                     <i ng-if="additionalField.description !== undefined && additionalField.description != ''" ng-attr-title="{{additionalField.description}}" class="fa fa-info-circle is-info" style="display: inline;position: relative;cursor: default;margin-left:0px;"></i>
  10.                     <span ng-style="$root.form.style.label" ng-if="additionalField.type == 'fieldAvailable' || additionalField.type == 'fieldAreaAvailable' || additionalField.type == 'fieldDateAvailable'" ng-click="changeValueAvailable(additionalFieldKey)" style="cursor:pointer">
  11.                         <i ng-if="!$root.doc.additionalFields[additionalField.number - 1].valueAvailable" ng-disabled="!($root.form.editMode)"  class="fa fa-square-o"  aria-hidden="true"></i>
  12.                         <i ng-if="$root.doc.additionalFields[additionalField.number - 1].valueAvailable"  ng-disabled="!($root.form.editMode)"  class="fa fa-check"     aria-hidden="true"></i>
  13.                         {{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}
  14.                     </span>
  15.  
  16.                     <span ng-if="additionalField.type == 'singleList' || additionalField.type == 'multiList'" ng-click="selectFromList(additionalField.number, 'poleDodat_lista_' + additionalField.number, additionalField.type)" class="ssc-form-label-link" ng-readonly="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" ng-style="$root.form.style.label" class="ssc-form-label">{{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}:</span>
  17.                     <span ng-if="!(additionalField.type == 'singleList' || additionalField.type == 'multiList' || additionalField.type == 'fieldAvailable' || additionalField.type == 'fieldAreaAvailable' || additionalField.type == 'fieldDateAvailable')" ng-style="$root.form.style.label">
  18.                         {{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}:
  19.                     </span>
  20.                 </div>
  21.                
  22.                 <span ng-show="(additionalField.type == 'fieldDateAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable) || additionalField.type == 'fieldDate'">
  23.                     <input ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-style="$root.form.style.text" class="ssc-form-input-small" ng-class="{ datePicker: $root.form.editMode}" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"></input>
  24.                 </span>
  25.                
  26.                 <input    ng-if="additionalField.type == 'field'    || (additionalField.type == 'fieldAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable)"     ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-readonly="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" ng-style="$root.form.style.text" class="ssc-form-input"></input>
  27.                 <textarea ng-if="additionalField.type == 'fieldArea'|| (additionalField.type == 'fieldAreaAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable)" ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" style="min-height: 18px; font-size: inherit; font-family: inherit;" class="ssc-form-input ssc-form-details-textarea"></textarea>
  28.  
  29.                 <select ng-if="additionalField.type == 'fieldDateYear'" ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"   class="ssc-form-select-small">
  30.                     <option ng-repeat="year in years" value="{{year}}">{{year}}</option>
  31.                 </select>
  32.                 <div ng-if="additionalField.type == 'fieldDateYearMonth'" >
  33.                     <select  ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"  ng-model="$root.doc.additionalFields[additionalField.number - 1].valueYear" class="ssc-form-select-small">
  34.                         <option ng-repeat="year in years" value="{{year}}">{{year}}</option>
  35.                     </select>
  36.                     <select ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"  ng-model="$root.doc.additionalFields[additionalField.number - 1].valueMonth" style="margin-left: 10px;" class="ssc-form-select-small">
  37.                         <option ng-repeat="month in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]" value="{{month}}">{{$root.form.translation.months[month]}}</option>
  38.                     </select>
  39.                 </div>
  40.                 <div ng-if="additionalField.type == 'multiList' || additionalField.type == 'singleList'">
  41.                     <div ng-repeat="item in $root.doc.additionalFields[additionalField.number - 1].values track by $index">
  42.                     {{item}} <i ng-if="$root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia')" ng-click="removeItemFromList($index, additionalField.number)" class="ssc-form-icon-remove fa fa-times" aria-hidden="true"></i>
  43.                     </div>
  44.                 </div>
  45.                
  46.                
  47.             </div>
  48.         </div>
  49.        
  50.         <div class="col span_1_of_2">
  51.             <div class="ssc-form-label-input-field" ng-repeat="(additionalFieldKey, additionalField) in $root.config.cOrg.additionalFields" ng-if="$odd && $root.doc.isFieldVisible('poleDodatkowe_' + additionalField.number) && ($root.user.canReadField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia')">
  52.                
  53.                
  54.                 <div ng-style="ssc-form-label-input-field" class="ssc-form-label">
  55.                     <i ng-if="additionalField.description !== undefined && additionalField.description != ''" ng-attr-title="{{additionalField.description}}" class="fa fa-info-circle is-info" style="display: inline;position: relative;cursor: default;margin-left:0px;"></i>
  56.                     <span ng-style="$root.form.style.label" ng-if="additionalField.type == 'fieldAvailable' || additionalField.type == 'fieldAreaAvailable' || additionalField.type == 'fieldDateAvailable'" ng-click="changeValueAvailable(additionalFieldKey)" style="cursor:pointer">
  57.                         <i ng-if="!$root.doc.additionalFields[additionalField.number - 1].valueAvailable" ng-disabled="!($root.form.editMode)"  class="fa fa-square-o"  aria-hidden="true"></i>
  58.                         <i ng-if="$root.doc.additionalFields[additionalField.number - 1].valueAvailable"  ng-disabled="!($root.form.editMode)"  class="fa fa-check"     aria-hidden="true"></i>
  59.                         {{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}
  60.                     </span>
  61.  
  62.                     <span ng-if="additionalField.type == 'singleList' || additionalField.type == 'multiList'" ng-click="selectFromList(additionalField.number, 'poleDodat_lista_' + additionalField.number, additionalField.type)" class="ssc-form-label-link" ng-readonly="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" ng-style="$root.form.style.label" class="ssc-form-label">{{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}:</span>
  63.                     <span ng-if="!(additionalField.type == 'singleList' || additionalField.type == 'multiList' || additionalField.type == 'fieldAvailable' || additionalField.type == 'fieldAreaAvailable' || additionalField.type == 'fieldDateAvailable')" ng-style="$root.form.style.label">
  64.                         {{$root.form.translation.getTranslationException(additionalField.name, 'poleDodatkowe_' + additionalField.number)}}:
  65.                     </span>
  66.                 </div>
  67.                
  68.                 <span ng-show="(additionalField.type == 'fieldDateAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable) || additionalField.type == 'fieldDate'">
  69.                     <input ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-style="$root.form.style.text" class="ssc-form-input-small" ng-class="{ datePicker: $root.form.editMode}" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"></input>
  70.                 </span>
  71.                
  72.                 <input    ng-if="additionalField.type == 'field'    || (additionalField.type == 'fieldAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable)"     ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-readonly="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" ng-style="$root.form.style.text" class="ssc-form-input"></input>
  73.                 <textarea ng-if="additionalField.type == 'fieldArea'|| (additionalField.type == 'fieldAreaAvailable' && $root.doc.additionalFields[additionalField.number - 1].valueAvailable)" ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))" style="min-height: 18px; font-size: inherit; font-family: inherit;" class="ssc-form-input ssc-form-details-textarea"></textarea>
  74.  
  75.                 <select ng-if="additionalField.type == 'fieldDateYear'" ng-model="$root.doc.additionalFields[additionalField.number - 1].value" ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"   class="ssc-form-select-small">
  76.                     <option ng-repeat="year in years" value="{{year}}">{{year}}</option>
  77.                 </select>
  78.                 <div ng-if="additionalField.type == 'fieldDateYearMonth'" >
  79.                     <select  ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"  ng-model="$root.doc.additionalFields[additionalField.number - 1].valueYear" class="ssc-form-select-small">
  80.                         <option ng-repeat="year in years" value="{{year}}">{{year}}</option>
  81.                     </select>
  82.                     <select ng-disabled="!($root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia'))"  ng-model="$root.doc.additionalFields[additionalField.number - 1].valueMonth" style="margin-left: 10px;" class="ssc-form-select-small">
  83.                         <option ng-repeat="month in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]" value="{{month}}">{{$root.form.translation.months[month]}}</option>
  84.                     </select>
  85.                 </div>
  86.                 <div ng-if="additionalField.type == 'multiList' || additionalField.type == 'singleList'">
  87.                     <div ng-repeat="item in $root.doc.additionalFields[additionalField.number - 1].values track by $index">
  88.                     {{item}} <i ng-if="$root.form.editMode && $root.doc.isFieldEditable('poleDodatkowe_' + additionalField.number) && ($root.user.canEditField(form, 'poleDodatkowe_' + additionalField.number) || tag == 'zamowienia')" ng-click="removeItemFromList($index, additionalField.number)" class="ssc-form-icon-remove fa fa-times" aria-hidden="true"></i>
  89.                     </div>
  90.                 </div>
  91.                
  92.                
  93.             </div>
  94.         </div>
  95.     </div>
  96. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top