1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fixed color of delete prompt ok button bug

This commit is contained in:
John Mitchell 2015-04-29 16:45:15 -04:00
parent b127e7f276
commit bd62f136a3
3 changed files with 15 additions and 23 deletions

View File

@ -427,28 +427,6 @@ export default
action: action,
backdrop: false
});
// }
// } else {
// //a schedule doesn't exist
// $("#prompt_action_btn").text('OK');
// $('#prompt_cancel_btn').hide();
// var action2 = function(){
// $('#prompt-modal').modal('hide');
// $("#prompt_action_btn").text('Yes');
// $('#prompt_cancel_btn').show();
// };
// Prompt({
// hdr: "Delete",
// body: "<div class=\"alert alert-info\">No schedule exists for that job. </div>",
// action: action2,
// backdrop: false
// });
// }
// })
// .error(function(data, status) {
// ProcessErrors(scope, data, status, null, { hdr: 'Error!',
// msg: 'Failed updating job ' + scope.job_template_id + ' with variables. PUT returned: ' + status });
// });
};
scope.cancelScheduleForm = function() {

View File

@ -30,6 +30,7 @@
@green: #60D66F;
@red: #ff5850;
@red-hover: #FA8C87;
@red-focus: #FF1105;
@font-face {
@ -1551,6 +1552,19 @@ input[type="checkbox"].checkbox-no-label {
}
}
.btn-danger {
background-color: @red;
border-color: @red-focus;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
border-color: @red-focus;
background-color: @red-focus;
}
// ad hoc permission checkbox
.squeeze.form-group {
margin-bottom: 10px;

View File

@ -193,7 +193,7 @@
</div>
<div class="modal-footer">
<a href="#" data-target="#prompt-modal" data-dismiss="modal" id="prompt_cancel_btn" class="btn btn-default">No</a>
<a href="" ng-class="promptActionBtnClass" ng-click="promptAction()" id="prompt_action_btn" class="btn btn-primary">Yes</a>
<a href="" ng-class="promptActionBtnClass" ng-click="promptAction()" id="prompt_action_btn" class="btn">Yes</a>
</div>
</div><!-- modal-content -->
</div><!-- modal-dialog -->