SLA plugin: template integration with SLA Dashboard
[myslice.git] / plugins / sladialog / templates / sladialog.html
index cb50c29..8886ae3 100644 (file)
@@ -1,47 +1,26 @@
 <div id={{ domid }}>
-<div class="modal fade" id="slamodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
-               data-backdrop="static" data-keyboard="false">
-  <div class="modal-dialog">
-    <div class="modal-content">
-      <div class="modal-header">
-        <h4 class="modal-title" id="myModalLabel">Selected testbed(s) provide the following SLAs</h4>
-      </div>
-      <div class="modal-body"  id="modal-body">
-        <table class="table" id="sla-modal-table">
-          <thead>
-          <tr>
-            <th>Testbed</th>
-            <th>SLA Description</th>
-            <th>Accept</th>
-          </tr>
-          </thead>
-          <tbody id="sla-table-body">
-          </tbody>
-        </table>
-      </div>
-      <div class="modal-footer">
-        <button type="button" id="cancel_sla" class="btn btn-default" data-dismiss="modal">Cancel</button>
-        <button type="button" id="submit_sla" class="btn btn-primary">Submit</button>
-      </div>
+    <div id="sla_template_modal" class="modal fade">
+        <div class="modal-dialog">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+                    <h4 class="modal-title">SLA Template description</h4>
+                </div>
+                <div class="modal-body">
+                    <p>Testbed offers:</p>
+                    <p id="sla_template"></p>
+                </div>
+                <div class="modal-footer">
+                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
+                </div>
+            </div>
+        </div>
     </div>
-  </div>
-</div>
-<!-- <div class="modal fade" id="slamodal-virtualwall" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
-    data-backdrop="static" data-keyboard="false">
-  <div class="modal-dialog">
-    <div class="modal-content">
-      <div class="modal-header">
-        <h4 class="modal-title" id="modalTitleId">Provider iMinds offers the following SLA</h4>
-      </div>
-      <div class="modal-body" id="modal-body">
-        <p>SLA description</p>
-        <p>Testbed guarantees 0.99 Uptime rate for 0.99 rate of the VirtualWall resources during the sliver lifetime</p>
-      </div>
-      <div class="modal-footer">
-        <button type="button" id="dismiss_sla_vwall" class="btn btn-default" data-dismiss="modal">Dismiss</button>
-        <button type="button" id="accept_sla_vwall" class="btn btn-primary">Accept</button>
-      </div>
+    <div class="sla-alert" hidden="hidden">
+        <div class="alert alert-success fade in">
+            <a href="#" class="sla-alert-close">&times;</a>
+            <strong>Accepted!</strong> The SLA has been accepted.
+        </div>
     </div>
-  </div>
-</div> -->
-</div>
+    <div id="sla_offers" class="container"></div>
+</div>
\ No newline at end of file