AC-1259 inventory delete/promote. Promoted inventory group delete dialog style. Added matching styling to host delete dialog.

This commit is contained in:
chouseknecht 2014-05-13 12:04:50 -04:00
parent a802d41fd6
commit 6618cc877c
2 changed files with 15 additions and 3 deletions

View File

@ -773,9 +773,9 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, Prompt, Process
}
};
body = (group) ? '<p>Are you sure you want to remove host <strong>' + host_name + '</strong> from group ' + group.name + '?' +
' It will still be part of the inventory and available in All Hosts.</p>' :
'<p>Are you sure you want to permanently delete host <strong>' + host_name + '</strong> from the inventory?</p>';
body = (group) ? '<div class=\"alert alert-info\"><p>Are you sure you want to remove host <strong>' + host_name + '</strong> from group ' + group.name + '?' +
' It will still be part of the inventory and available in All Hosts.</p></div>' :
'<div class=\"alert alert-info\"><p>Are you sure you want to permanently delete host <strong>' + host_name + '</strong> from the inventory?</p></div>';
Prompt({ hdr: 'Delete Host', body: body, action: action_to_take, 'class': 'btn-danger' });
};

View File

@ -1377,6 +1377,18 @@ input[type="checkbox"].checkbox-no-label {
text-overflow: clip;*/
}
#group-delete-dialog .help-container {
.help-link,
.help-link:active,
.help-link:visited {
color: @blue-link;
}
.help-link:hover {
color: @blue-dark;
}
}
// Inventory edit dialog, source form, ec2
#source_form.squeeze .form-group {
margin-bottom: 10px;