LP1782652: Make template dropdown larger in Volume/Copy Editor
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 27 Sep 2018 14:53:35 +0000 (07:53 -0700)
committerJason Stephenson <jason@sigio.com>
Tue, 18 Dec 2018 16:32:46 +0000 (11:32 -0500)
To test:
1) Open an item in the volume/copy editor.
2) Go to the Copy Templates tab. Note the spacing of the template bar.
3) Create a few templates.  Give them names of 30 characters or more.
4) Go back to the Edit tab and select one of your new templates.  Note
that after you have selected it, the name of your template does not fit
in the dropdown box, and is cut off at the end.
5) Apply this commit.
6) Go to the Copy Templates tab again.  Note that the spacing of the
template bar has not changed.
7) Go to the Edit tab.  Note that the template dropdown has changed
to be much larger.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Janet Schrader <jschrader@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>

Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2

index b133c7a..7e58ebb 100644 (file)
         <div class="col-md-1">
             <h5>[% l('Template') %]</h5>
         </div>
-        <div class="col-md-2">
+        <div ng-class="template_controls ? 'col-md-2' : 'col-md-5'">
             <eg-basic-combo-box list="template_name_list" selected="template_name"></eg-basic-combo-box>
         </div>
         <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">
-            <div class="row" ng-show="template_controls">
+        <div class="col-md-6" ng-show="template_controls">
+            <div class="row">
                 <div class="col-md-4">
                     <div class="btn-group">
                         <label class="btn btn-default" ng-click="saveTemplate(template_name)">[% l('Save') %]</label>
@@ -40,7 +40,7 @@
                 </div>
             </div>
         </div>
-        <div class="col-md-2">
+        <div class="col-md-2" ng-class="{'col-md-offset-3' : !template_controls}">
             <button class="btn btn-default pull-right" ng-click="clearWorking()" type="button">[% l('Clear') %]</button>
         </div>
     </div>