mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-30 12:33:52 -06:00
Set the background colour for backform notes, and add an icon. Fixes #3948
This commit is contained in:
parent
554455fa75
commit
e2482d2294
@ -2380,13 +2380,22 @@ define([
|
||||
defaults: {
|
||||
label: gettext('Note'),
|
||||
text: '',
|
||||
extraClasses: [],
|
||||
noteClass: 'backform_control_notes',
|
||||
extraClasses: ['pg-el-12', 'd-flex'],
|
||||
noteClass: 'backform-note',
|
||||
faIcon: 'fa-file-text-o',
|
||||
faExtraClass: 'fa-rotate-180 fa-flip-vertical',
|
||||
iconWidthClass: 'col-0 pr-2',
|
||||
textWidthClass: 'col-sm',
|
||||
},
|
||||
template: _.template([
|
||||
'<div class="<%=noteClass%> pg-el-12 <%=extraClasses.join(\' \')%>">',
|
||||
'<label class="control-label"><%=label%>:</label>',
|
||||
'<span><%=text%></span></div>',
|
||||
'<div class="<%=noteClass%> <%=extraClasses.join(\' \')%>">',
|
||||
' <div class="icon <%=iconWidthClass%>">',
|
||||
' <i class="fa <%=faIcon%> <%=faExtraClass%>" aria-hidden="true"></i>',
|
||||
' </div>',
|
||||
' <div class="<%=textWidthClass%>">',
|
||||
' <span><%=text%></span>',
|
||||
' </div>',
|
||||
'</div>',
|
||||
].join('\n')),
|
||||
});
|
||||
|
||||
|
@ -47,17 +47,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.backform_control_notes {
|
||||
border: $panel-border;
|
||||
border-radius: $border-radius;
|
||||
font-family: $font-family-editor;
|
||||
font-size: 0.8rem;
|
||||
margin: 0 0 10px;
|
||||
padding: 5px 10px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
div.backform_control_notes label.control-label {
|
||||
min-width: 0px;
|
||||
.backform-note {
|
||||
border-radius: $border-radius;
|
||||
padding: .25rem;
|
||||
word-wrap: break-word;
|
||||
background: $border-color;
|
||||
color: $color-fg;
|
||||
}
|
||||
|
||||
.subnode-header label {
|
||||
|
@ -93,7 +93,7 @@ define([
|
||||
}, {
|
||||
id: 'globals_note',
|
||||
label: gettext('Note'),
|
||||
text: gettext('Only objects global to the entire database will be backed up in PLAIN format'),
|
||||
text: gettext('Only objects global to the entire database will be backed up, in PLAIN format'),
|
||||
type: 'note',
|
||||
}, {}],
|
||||
validate: function() {
|
||||
@ -229,7 +229,7 @@ define([
|
||||
type: 'note',
|
||||
visible: function(m) {
|
||||
return m.get('type') === 'server';
|
||||
},
|
||||
},Only objects global to the entire database will be backed up in PLAIN format
|
||||
}, {
|
||||
type: 'nested',
|
||||
control: 'fieldset',
|
||||
|
Loading…
Reference in New Issue
Block a user