patron reg cont.
authorBill Erickson <berickxx@gmail.com>
Tue, 19 May 2015 13:52:25 +0000 (09:52 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 19 May 2015 13:52:25 +0000 (09:52 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2
Open-ILS/src/templates/staff/css/circ.css.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index a7eace3..81b05bb 100644 (file)
@@ -3,12 +3,20 @@
 <div class="strong-text-2">[% l('Patron Edit') %]</div>
 
 <!-- IDL field documentation window -->
-<fieldset id="reg-field-doc" ng-show="selected_field_doc">
+<div id="reg-control-actions">
+  <div class="pad-all-min">
+    <button type="button" class="btn btn-default">[% l('Save') %]</button>
+    <button type="button" class="btn btn-default">[% l('Save & Clone') %]</button>
+  </div>
+  <div class="pad-all-min"><a href>[% l('Show Only Required Field') %]</a></div>
+  <div class="pad-all-min"><a href>[% l('Show Suggested Field') %]</a></div>
+  <fieldset id="reg-field-doc" ng-show="selected_field_doc">
     <legend>
     {{idl_fields[selected_field_doc.fm_class()][selected_field_doc.field()].label}}
     </legend>
     <div>{{selected_field_doc.string()}}</div>
-</fieldset>
+  </fieldset>
+</div>
 
 [% MACRO formfield(cls, field, path, input_type) BLOCK;
 
index 30134bc..bf9d834 100644 (file)
@@ -59,12 +59,15 @@ but the ones I'm finding aren't quite cutting it..*/
 /* make all input widgets the same width, i.e. fill their column */
 
 .reg-field-input input:not([type="checkbox"]) { width: 100%; }
+
+/* selector contents float left to allow depth-based left-padding */
 .reg-field-input .eg-org-selector,
 .reg-field-input .btn-group {
   width: 100%; 
   text-align: left;
 }
 
+/* selector button labels float right */
 .reg-field-input .eg-org-selector button,
 .reg-field-input .btn-group > button {
   width: 100%; 
@@ -73,8 +76,7 @@ but the ones I'm finding aren't quite cutting it..*/
 
 
 /* floating div along top-right with field documentation */
-/* TODO: make this part of the floatin save/clone div */
-#reg-field-doc {
+#reg-control-actions {
     position: fixed;
     top:160px;
     right:30px;
@@ -86,6 +88,14 @@ but the ones I'm finding aren't quite cutting it..*/
     margin-top: 20px;
 }
 
+#reg-field-doc {
+    border:2px dashed #d9e8f9;
+    -moz-border-radius: 10px;
+    font-weight: bold;
+    padding: 20px;
+    margin-top: 20px;
+}
+
 #reg-field-doc legend {
     /* otherwise the font size is quite large */
     font-size: 100%;
index 1d5fc4e..108a41b 100644 (file)
@@ -131,7 +131,7 @@ angular.module('egCoreMod')
         });
     };
 
-    // some data retrieval depe
+    // some org settings require the retrieval of additional data...
     service.process_org_settings = function(settings) {
 
         if (!settings['sms.enable']) {