LP1840773 SCKO Angular
authorBill Erickson <berickxx@gmail.com>
Wed, 22 Jun 2022 15:42:20 +0000 (11:42 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 22 Jun 2022 15:42:20 +0000 (11:42 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/scko/banner.component.html
Open-ILS/src/eg2/src/app/scko/banner.component.ts
Open-ILS/src/eg2/src/app/scko/checkout.component.html
Open-ILS/src/eg2/src/app/scko/scko.component.css
Open-ILS/src/eg2/src/app/scko/scko.component.html

index 979f44e..d8b1f9b 100644 (file)
@@ -40,7 +40,7 @@
       <div class="d-flex mt-3 mb-3">
         <div class="flex-1"></div>
         <div>
-          <form (ngSubmit)="submitBarcode()" #barcodeForm="ngForm"
+          <form (ngSubmit)="submitItemBarcode()" #barcodeForm="ngForm"
             autocomplete="off" class="form-validated form-inline">
 
             <label class="sr-only" for="item-barcode" i18n>Item Barcode</label>
index e599453..a7cc682 100644 (file)
@@ -171,7 +171,7 @@ export class SckoBannerComponent implements OnInit {
         });
     }
 
-    submitBarcode() {
+    submitItemBarcode() {
         console.log('Submitting barcode ', this.itemBarcode);
     }
 
index 5b10c7e..42df0f4 100644 (file)
@@ -1,5 +1,5 @@
-<div>
-  <table class='oils-selfck-item-table'>
+<div id='oils-selfck-circ-table-div'>
+  <table id='oils-selfck-circ-table' class='oils-selfck-item-table'>
     <thead>
       <tr>
         <td class="rounded-left" id='oils-self-circ-pic-cell'></td>
index f3ed0fd..0ccf92c 100644 (file)
@@ -96,12 +96,29 @@ A {
 .oils-selfck-item-table thead {
     font-weight: bold;
     color: #00593D;
-    background-color: #D8D8D8;                                                 
-    padding: 8px 0 7px;                                                        
 }
 
 .oils-selfck-item-table tbody tr {
     border-bottom: 1px solid #888;
 }
 
+.scko-page {
+    margin-top: 20px;
+    background: #ffffff; /* Old browsers */
+    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
+    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijk4JSIgc3RvcC1jb2xvcj0iI2UwZTBlMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
+    background: -moz-linear-gradient(top,  #ffffff 0%, #e0e0e0 98%); /* FF3.6+ */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(98%,#e0e0e0)); /* Chrome,Safari4+ */
+    background: -webkit-linear-gradient(top,  #ffffff 0%,#e0e0e0 98%); /* Chrome10+,Safari5.1+ */
+    background: -o-linear-gradient(top,  #ffffff 0%,#e0e0e0 98%); /* Opera 11.10+ */
+    background: -ms-linear-gradient(top,  #ffffff 0%,#e0e0e0 98%); /* IE10+ */
+    background: linear-gradient(to bottom,  #ffffff 0%,#e0e0e0 98%); /* W3C */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-8 */
+    border: 1px solid #DDDDDD;
+    color: #333333;
+    -webkit-border-radius: 5px;
+    border-radius: 5px;
+    padding: 3px;
+}
+
 
index c9df088..a273be6 100644 (file)
@@ -1,9 +1,9 @@
 
 <eg-scko-banner></eg-scko-banner>
 
-<div *ngIf="scko.patronSummary" class="row mt-5">
+<div *ngIf="scko.auth.token() && scko.patronSummary" class="row mt-5">
   <div class="col-lg-8">
-    <div class="ml-2">
+    <div class="ml-2 scko-page">
       <router-outlet></router-outlet>
     </div>
   </div>