mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Set the background colour for backform notes, and add an icon. Fixes #3948
This commit is contained in:
committed by
Dave Page
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')),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user