Commit 4210d375a59017795ae72f07be2c8d1fdcab257e

Authored by Elena.Budnik
1 parent 25c9cc2a

redmine 6828 - IntervalUI format

Showing 1 changed file with 6 additions and 4 deletions   Show diff stats
js/app/views/IntervalUI.js
... ... @@ -202,16 +202,18 @@ Ext.define('amdaUI.IntervalUI', {
202 202 getDateField : function(fieldName,fieldText,fieldId,onChangeField)
203 203 {
204 204 return {
205   - layout: {type: 'hbox', align: 'middle'},
  205 + layout: {type: 'hbox', align: 'strech'},
206 206 items: [{
207 207 xtype: 'datefield',
208 208 margin : '10 0 0 5', // (top, right, bottom, left).
209 209 name: fieldName,
  210 + // flex : 1, // flex or width
  211 + width : 220,
210 212 emptyText: 'YYYY/MM/DD hh:mm:ss',
211   - tip: 'Date formated as YYYY/MM/DD hh:mm:ss',
  213 + tip: 'Date formatted as YYYY/MM/DD hh:mm:ss',
212 214 format: 'Y/m/d H:i:s',
213   - enforceMaxLength: true,
214   - maxLength: 19,
  215 + enforceMaxLength: true,
  216 + maxLength: 19,
215 217 fieldLabel: fieldText,
216 218 labelAlign: 'left',
217 219 labelWidth: 60,
... ...