revert-70aa11f8
harshanl 8 years ago
commit 406d49ad61

@ -69,7 +69,7 @@
<th colspan="3"></th> <th colspan="3"></th>
</tr> </tr>
</thead> </thead>
<tbody id="ast-container" data-app-context="{{@app.context}}"></tbody> <tbody id="ast-container" data-app-context="{{@app.context}}/"></tbody>
</table> </table>
</div> </div>

@ -44,6 +44,7 @@ function loadNotifications() {
if (data["notifications"] && data["notifications"].length > 0) { if (data["notifications"] && data["notifications"].length > 0) {
var viewModel = {}; var viewModel = {};
viewModel["notifications"] = data["notifications"]; viewModel["notifications"] = data["notifications"];
viewModel["appContext"] = context;
var content = template(viewModel); var content = template(viewModel);
$("#ast-container").html(content); $("#ast-container").html(content);
$("#unread-notifications").datatables_extended(); $("#unread-notifications").datatables_extended();

@ -57,7 +57,7 @@
<tr data-type="selectable" data-id="{{id}}"> <tr data-type="selectable" data-id="{{id}}">
<td data-display="{{description}}" data-grid-label="Description">{{description}}</td> <td data-display="{{description}}" data-grid-label="Description">{{description}}</td>
<td style="text-align: center;"> <td style="text-align: center;">
<a href="device/{{deviceType}}?id={{deviceIdentifier}}" data-click-event="remove-form"> <a href="{{appContext}}/device/{{deviceType}}?id={{deviceIdentifier}}" data-click-event="remove-form">
<span class="fw-stack"> <span class="fw-stack">
<i class="fw fw-ring fw-stack-2x"></i> <i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-view fw-stack-1x"></i> <i class="fw fw-view fw-stack-1x"></i>

@ -90,11 +90,14 @@
</div> </div>
<div id="apply-changes-modal-content" class="hide"> <div id="apply-changes-modal-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>Do you really want to apply changes to all policies?</h3> <h3>Do you really want to apply changes to all policies?</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="apply-changes-yes-link" class="btn-operations"> <a href="javascript:void(0)" id="apply-changes-yes-link" class="btn-operations">
Yes Yes
@ -105,15 +108,16 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="apply-changes-success-content" class="hide"> <div id="apply-changes-success-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>Done. Changes applied successfully.</h3> <h3>Done. Changes applied successfully.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="apply-changes-success-link" class="btn-operations"> <a href="javascript:void(0)" id="apply-changes-success-link" class="btn-operations">
Ok Ok
@ -121,15 +125,16 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="apply-changes-error-content" class="hide"> <div id="apply-changes-error-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>An unexpected error occurred. Please try again later.</h3> <h3>An unexpected error occurred. Please try again later.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="apply-changes-error-link" class="btn-operations"> <a href="javascript:void(0)" id="apply-changes-error-link" class="btn-operations">
Ok Ok
@ -137,15 +142,16 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="remove-policy-error-content" class="hide"> <div id="remove-policy-error-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>An unexpected error occurred. Please try again later.</h3> <h3>An unexpected error occurred. Please try again later.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="remove-policy-error-link" class="btn-operations"> <a href="javascript:void(0)" id="remove-policy-error-link" class="btn-operations">
Ok Ok
@ -153,15 +159,16 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="save-policy-priorities-success-content" class="hide"> <div id="save-policy-priorities-success-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>Done. New Policy priorities were successfully updated.</h3> <h3>Done. New Policy priorities were successfully updated.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="save-policy-priorities-success-link" class="btn-operations"> <a href="javascript:void(0)" id="save-policy-priorities-success-link" class="btn-operations">
Ok Ok
@ -169,14 +176,16 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div id="save-policy-priorities-error-content" class="hide"> <div id="save-policy-priorities-error-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>An unexpected error occurred. Please try again later.</h3> <h3>An unexpected error occurred. Please try again later.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="javascript:void(0)" id="save-policy-priorities-error-link" class="btn-operations"> <a href="javascript:void(0)" id="save-policy-priorities-error-link" class="btn-operations">
Ok Ok
@ -185,8 +194,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
{{#zone "bottomJs"}} {{#zone "bottomJs"}}
{{js "js/policy-priority.js"}} {{js "js/policy-priority.js"}}

@ -82,10 +82,14 @@
</div> </div>
</div> </div>
<div id="child-deselect-error-content" class="hide"> <div id="child-deselect-error-content" class="hide">
<div class="content"> <div class="modal-header">
<div class="row"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fw fw-cancel"></i>
<div class="col-lg-5 col-md-6 col-centered"> </button>
</div>
<div class="modal-body add-margin-top-2x add-margin-bottom-2x">
<h3>Can't deselect child permissions when parent permission is selected.</h3> <h3>Can't deselect child permissions when parent permission is selected.</h3>
</div>
<div class="modal-footer">
<div class="buttons"> <div class="buttons">
<a href="#" id="child-deselect-error-link" class="btn-operations"> <a href="#" id="child-deselect-error-link" class="btn-operations">
Ok Ok
@ -93,8 +97,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<!-- /content --> <!-- /content -->
</div> </div>
</div> </div>

Loading…
Cancel
Save