simplify/robustify the insertion of dividers in fmEditor here with the new appendTemp...
authorJason Etheridge <jason@EquinoxOLI.org>
Fri, 16 Dec 2022 12:47:26 +0000 (07:47 -0500)
committerJason Etheridge <jason@EquinoxOLI.org>
Fri, 16 Dec 2022 12:47:26 +0000 (07:47 -0500)
Open-ILS/src/eg2/src/app/staff/admin/local/circ_matrix_matchpoint/circ-matrix-matchpoint.component.html

index 887f7c0..c37ae67 100644 (file)
   </div>
 
   <ng-template #active let-idPrefix="idPrefix" let-field="field" let-record="record">
-    <div class="col-lg-9">
-      <input
-        class="form-check-input"
-        type="checkbox"
-        name="{{field.name}}"
-        id="{{idPrefix}}-{{field.name}}"
-        [disabled]="field.readOnly"
-        [ngModel]="record[field.name]()"
-        (ngModelChange)="record[field.name]($event)"/>
-    </div>
-    <div class="row" [ngStyle]="{
-      width:'150%',
-      backgroundColor:'black',
-      marginLeft:'-43%',
-      marginTop:'6%',
-      marginBottom:'-1%',
-      opacity:'90%',
-      fontSize:'18px',
-      textAlign:'center'}">
-      <div [ngStyle]="{width:'100%', color:'white'}">Circulation Policies</div>
+    <div class="row">
+      <div class="col-lg-12">
+        <eg-staff-banner bannerText="Circulation Policy Matchpoints" i18n-bannerText>
+        </eg-staff-banner>
+      </div>
     </div>
   </ng-template>
 
   <ng-template #item_age let-idPrefix="idPrefix" let-field="field" let-record="record">
-    <div class="col-lg-9">
-      <input
-        class="form-control"
-        id="{{idPrefix}}-{{field.name}}" name="{{field.name}}"
-        type="text"
-        placeholder="{{field.label}}..." i18n-placeholder
-        [required]="field.isRequired()"
-        [ngModel]="record[field.name]()"
-        (ngModelChange)="record[field.name]($event)"/>
-    </div>
-    <div class="row" [ngStyle]="{
-      width:'150%',
-      backgroundColor:'black',
-      marginLeft:'-43%',
-      marginTop:'3%',
-      marginBottom:'-1%',
-      opacity:'90%',
-      fontSize:'18px',
-      textAlign:'center',
-      paddingTop:'3.5%',
-      paddingBottom:'5.5%',
-      paddingLeft:'3.5%',
-      paddingRight:'3.5%'}">
-      <div [ngStyle]="{width:'100%', color:'white'}">Circulation Policy Effects</div>
+    <div class="row">
+      <div class="col-lg-12">
+        <eg-staff-banner bannerText="Circulation Policy Effecs" i18n-bannerText>
+        </eg-staff-banner>
+      </div>
     </div>
   </ng-template>
 
@@ -93,6 +59,6 @@
     fieldOrder="id,active,grp,org_unit,copy_circ_lib,copy_owning_lib,user_home_ou,is_renewal,juvenile_flag,circ_modifier,copy_location,marc_type,marc_form,marc_bib_level,marc_vr_format,ref_flag,usr_age_lower_bound,usr_age_upper_bound,item_age,circulate,duration_rule,renewals,hard_due_date,recurring_fine_rule,grace_period,max_fine_rule,available_copy_hold_ratio,total_copy_hold_ratio,script_test,description"
     requiredFields="active,grp,org_unit"
     (recordSaved)="configureLimitSets($event); clearLinkedCircLimitSets(); closeDialog()"
-    [fieldOptions]="{active:{customTemplate:{template:active}}, item_age:{customTemplate:{template:item_age}}}">
+    [fieldOptions]="{active:{appendTemplate:{template:active}}, item_age:{appendTemplate:{template:item_age}}}">
   </eg-fm-record-editor>
 </eg-circ-matrix-matchpoint-dialog>