webstaff: fix a couple thinkos is vol/copy template editor
authorGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 21:59:21 +0000 (16:59 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:05 +0000 (14:10 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2
Open-ILS/src/templates/staff/cat/volcopy/t_view.tt2

index f17be86..38dde8f 100644 (file)
@@ -6,7 +6,7 @@
         <div class="col-md-2">
             <eg-basic-combo-box list="template_name_list" selected="template_name"></eg-basic-combo-box>
         </div>
-        <div class="col-md-1" ng-if="!editTemplates">
+        <div class="col-md-1">
             <button class="btn btn-default " ng-click="applyTemplate(template_name)" type="button">[% l('Apply') %]</button>
         </div>
         <div class="col-md-6">
index 38ebb53..d033666 100644 (file)
@@ -12,28 +12,30 @@ eg-navbar {
 
 <!-- tabbed copy data view -->
 
-<ul class="nav nav-tabs" ng-show="!embedded" ng-if="!edit_templates">
-  <li ng-class="{active : tab == 'edit'}">
-    <a ng-click="tab = 'edit'" >[% l('Edit') %]</a>
-  </li>
-  <li ng-class="{active : tab == 'templates'}">
-    <a ng-click="tab = 'templates'" >[% l('Copy Templates') %]</a>
-  </li>
-  <li ng-class="{active : tab == 'defaults'}">
-    <a ng-click="tab = 'defaults'" >[% l('Defaults') %]</a>
-  </li>
-</ul>
-
-<div class="tab-content" ng-if="!edit_templates">
-  <div class="tab-pane active">
-    <div ng-show="tab == 'edit'">
-      <div ng-include="'[% ctx.base_path %]/staff/cat/volcopy/t_edit'"></div>
-    </div>
-    <div ng-show="tab == 'templates'">
-      <eg-vol-template></eg-vol-template>
-    </div>
-    <div ng-show="tab == 'defaults'">
-      <div ng-include="'[% ctx.base_path %]/staff/cat/volcopy/t_defaults'"></div>
+<div ng-if="!edit_templates">
+  <ul class="nav nav-tabs" ng-show="!embedded">
+    <li ng-class="{active : tab == 'edit'}">
+      <a ng-click="tab = 'edit'" >[% l('Edit') %]</a>
+    </li>
+    <li ng-class="{active : tab == 'templates'}">
+      <a ng-click="tab = 'templates'" >[% l('Copy Templates') %]</a>
+    </li>
+    <li ng-class="{active : tab == 'defaults'}">
+      <a ng-click="tab = 'defaults'" >[% l('Defaults') %]</a>
+    </li>
+  </ul>
+  
+  <div class="tab-content">
+    <div class="tab-pane active">
+      <div ng-show="tab == 'edit'">
+        <div ng-include="'[% ctx.base_path %]/staff/cat/volcopy/t_edit'"></div>
+      </div>
+      <div ng-show="tab == 'templates'">
+        <eg-vol-template></eg-vol-template>
+      </div>
+      <div ng-show="tab == 'defaults'">
+        <div ng-include="'[% ctx.base_path %]/staff/cat/volcopy/t_defaults'"></div>
+      </div>
     </div>
   </div>
 </div>