|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> |
| 3 | + <!--basic style for html element--> |
| 4 | + <style> |
| 5 | + .ci-lifecycle-container { |
| 6 | + display: flex; |
| 7 | + justify-content: center; |
| 8 | + text-align: center; |
| 9 | + } |
| 10 | + .card { |
| 11 | + width: 400px; |
| 12 | + margin: 20px auto; |
| 13 | + border: 1px solid #ddd; |
| 14 | + border-radius: 8px; |
| 15 | + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
| 16 | + overflow: hidden; |
| 17 | + font-family: Arial, sans-serif; |
| 18 | + } |
| 19 | + .card-header { |
| 20 | + background-color: #007bff; |
| 21 | + color: #fff; |
| 22 | + padding: 16px; |
| 23 | + font-size: 18px; |
| 24 | + } |
| 25 | + .card-footer, .card-body { |
| 26 | + padding: 16px; |
| 27 | + } |
| 28 | + button { |
| 29 | + padding: 10px; |
| 30 | + font-size: 14px; |
| 31 | + color: #FFFFFF; |
| 32 | + background-color: #3cb371; |
| 33 | + border: none; |
| 34 | + cursor: pointer; |
| 35 | + margin: 5px; |
| 36 | + } |
| 37 | + #ci_input { |
| 38 | + padding: 5px; |
| 39 | + width: 100%; |
| 40 | + } |
| 41 | + #ci_search { |
| 42 | + margin-left: 1rem; |
| 43 | + padding: 15px; |
| 44 | + width: 30%; |
| 45 | + cursor: pointer; |
| 46 | + border-radius: 10px; |
| 47 | + background-color: yellow; |
| 48 | + } |
| 49 | + table { |
| 50 | + width: 100%; |
| 51 | + border-collapse: collapse; |
| 52 | + margin: 20px auto; |
| 53 | + font-size: 16px; |
| 54 | + border: 1px solid #ddd; |
| 55 | + } |
| 56 | + th, td { |
| 57 | + padding: 12px; |
| 58 | + text-align: left; |
| 59 | + } |
| 60 | + th { |
| 61 | + background-color: #f2f2f2; |
| 62 | + font-weight: bold; |
| 63 | + width: 30%; |
| 64 | + } |
| 65 | + .card-footer { |
| 66 | + background-color: #f9f9f9; |
| 67 | + border-top: 1px solid #ddd; |
| 68 | + display: flex; |
| 69 | + justify-content: center; |
| 70 | + } |
| 71 | + </style> |
| 72 | + <!-- end of styling --> |
| 73 | + <div class="ci-lifecycle-container"> <!-- container --> |
| 74 | + <div class="ci-lifecycle-header"> <!-- header --> |
| 75 | + <h1>CI Lifecycle Management</h1> <!-- header title --> |
| 76 | + <!-- search input box and search button --> |
| 77 | + <div style="display:flex;"> |
| 78 | + <input type="text" name="ci_input" id="ci_input" placeholder="Enter CI Id ..." /> |
| 79 | + <button id="ci_search" name="ci_search" onClick="searchCI()">Search CI</button> |
| 80 | + </div> |
| 81 | + <!-- end of search --> |
| 82 | + <!-- Display Configuration item details --> |
| 83 | + <div id="ci-info" style="display:none;"> |
| 84 | + <div class="card" > |
| 85 | + <div class="card-header"> |
| 86 | + Configuration Item |
| 87 | + </div> |
| 88 | + <div class="card-body" > |
| 89 | + <table> |
| 90 | + <tr> |
| 91 | + <th style="">Serial No</th> |
| 92 | + <td id="serial_number"></td> |
| 93 | + </tr> |
| 94 | + <tr> |
| 95 | + <th style="">Name</th> |
| 96 | + <td id="ci_name" ></td> |
| 97 | + </tr> |
| 98 | + <tr> |
| 99 | + <th>CI class</th> |
| 100 | + <td id='ci_class'></td> |
| 101 | + </tr> |
| 102 | + <tr> |
| 103 | + <th>Status</th> |
| 104 | + <td id="ci_install_status"></td> |
| 105 | + </tr> |
| 106 | + |
| 107 | + </table> |
| 108 | + |
| 109 | + |
| 110 | + </div> |
| 111 | + <!-- end --> |
| 112 | + |
| 113 | + <!-- button to change configuration item install status --> |
| 114 | + <div class="card-footer" style=""> |
| 115 | + <!--stolen--> |
| 116 | + <button id="ci_Stolen" name="ci_Stolen" onClick="UpdateCI(8)">Stolen</button> |
| 117 | + <!--retired--> |
| 118 | + <button id="ci_Retired" name="ci_Retired" onClick="UpdateCI(7)">Retire CI |
| 119 | + </button> |
| 120 | + |
| 121 | + <!--In stock--> |
| 122 | + <button id="ci_InStock" name="ci_InStock" onClick="UpdateCI(6)">In Stock |
| 123 | + </button> |
| 124 | + <!--In Maintainance--> |
| 125 | + <button class="ci_InMaintenance" id="ci_InMaintenance" onclick="UpdateCI(3)" >In maintainace</button> |
| 126 | + </div> |
| 127 | + <!-- end --> |
| 128 | + |
| 129 | + </div> |
| 130 | + |
| 131 | + </div> |
| 132 | + </div> |
| 133 | + </div> |
| 134 | + |
| 135 | + |
| 136 | +</j:jelly> |
0 commit comments