Hide Radio buttons that should not be shown on the maintenance dialogue.

This commit is contained in:
Aditya Toshniwal 2018-12-04 11:00:58 +00:00 committed by Dave Page
parent c80b91876a
commit 0100997aab
2 changed files with 7 additions and 1 deletions

View File

@ -1736,3 +1736,9 @@ body {
background-position-x: center;
background-position-y: center;
}
.pgadmin-controls-radio-none {
& input[type="radio"] {
display: none;
}
}

View File

@ -81,7 +81,7 @@ define([
control: Backform.RadioControl.extend({
template: _.template([
'<label class="control-label col-sm-4 col-12"><%=label%></label>',
'<div class="pgadmin-controls col-12 col-sm-8 btn-group pg-maintenance-op" data-toggle="buttons">',
'<div class="pgadmin-controls col-12 col-sm-8 btn-group pg-maintenance-op pgadmin-controls-radio-none" data-toggle="buttons">',
' <% for (var i=0; i < options.length; i++) { %>',
' <% var option = options[i]; %>',
' <label class="btn btn-primary<% if (i == 0) { %> active<%}%>">',