Skip to content

Commit 91425f7

Browse files
committed
Move the validation indicator below the form action buttons to avoid crowding on narrower layouts (ex. tablets)
1 parent c5f9e8e commit 91425f7

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

ehr/resources/web/ehr/panel/DataEntryPanel.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,18 +334,25 @@ Ext4.define('EHR.panel.DataEntryPanel', {
334334
},
335335
items: this.getItemConfig(),
336336
dockedItems: [{
337+
xtype: 'toolbar',
338+
dock: 'bottom',
339+
itemId: 'validationIndicator',
340+
hidden: true,
341+
border: false,
342+
plain: true,
343+
style: 'background-color: transparent; padding: 12px 0 0 0;',
344+
items: [{
345+
xtype: 'container',
346+
html: '<span><i class="fa fa-spinner fa-pulse"></i> Validating...</span>',
347+
style: 'font: bold 13px tahoma,arial,verdana,sans-serif; line-height: 16px; color: #C33;'
348+
}]
349+
},{
337350
xtype: 'toolbar',
338351
dock: 'bottom',
339352
ui: 'footer',
340353
style: 'background-color: transparent;',
341354
padding: '20px 0 0 0',
342-
items: this.getButtons().concat([{
343-
xtype: 'container',
344-
itemId: 'validationIndicator',
345-
hidden: true,
346-
html: '<span><i class="fa fa-spinner fa-pulse"></i> Validating...</span>',
347-
style: 'font: bold 13px tahoma,arial,verdana,sans-serif; line-height: 16px; color: #C33; margin-left: 12px;'
348-
}])
355+
items: this.getButtons()
349356
}]
350357
});
351358

0 commit comments

Comments
 (0)