Skip to content

Commit

Permalink
Changed Date and Time Input/Display
Browse files Browse the repository at this point in the history
  • Loading branch information
thulium3 committed Aug 5, 2016
1 parent 988ee3e commit 2248cf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions webapp/view/CreateEntity.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<Input name="Location" id="Location_id" valueLiveUpdate="true" liveChange="_validateSaveEnablement" enabled="true" visible="true"
value="{ path: 'Location', type: 'sap.ui.model.odata.type.String' , constraints:{ maxLength:100 } }"/>
<Label text="{i18n>EventDate}" required="false"/>
<DatePicker name="EventDate" value="{ path: 'EventDate', type: 'sap.ui.model.type.DateTime'}" id="EventDate_id"
enabled="true" visible="true"/>
<DatePicker name="EventDate" value="{ path: 'EventDate', type: 'sap.ui.model.type.Date'}" id="EventDate_id" enabled="true"
visible="true" valueFormat="yyyy-MM-dd" displayFormat="long"/>
<Label text="{i18n>StartTime}" required="false"/>
<DatePicker name="StartTime" value="{ path: 'StartTime', type: 'sap.ui.model.type.DateTime'}" id="StartTime_id"
enabled="true" visible="true"/>
<TimePicker id="StartTime_id" value="{ path: 'StartTime', type: 'sap.ui.model.type.Time'}" valueFormat="HH:mm" displayFormat="HH:mm"
placeholder="{i18n>StartTime}"/>
<Label text="{i18n>EndTime}" required="false"/>
<DatePicker name="EndTime" value="{ path: 'EndTime', type: 'sap.ui.model.type.DateTime'}" id="EndTime_id"
enabled="true" visible="true"/>
<TimePicker id="EndTime_id" value="{ path: 'EndTime', type: 'sap.ui.model.type.Time'}" valueFormat="HH:mm" displayFormat="HH:mm"
placeholder="{i18n>EndTime}"/>
<Label text="{i18n>MaxParticipants}" required="false"/>
<Input name="MaxParticipants" id="MaxParticipants_id" valueLiveUpdate="true" liveChange="_validateSaveEnablement" enabled="true"
visible="true" value="{ path: 'MaxParticipants', type: 'sap.ui.model.odata.type.Int32' }"/>
Expand Down
4 changes: 2 additions & 2 deletions webapp/view/Detail.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
class="editableForm sapUiSmallMarginTopBottom">
<f:content>
<Label text="{i18n>StartTime}"/>
<Text text="{ path: 'StartTime', type: 'sap.ui.model.odata.type.DateTime' }"/>
<Text text="{ path: 'StartTime', type: 'sap.ui.model.odata.type.DateTime', formatOptions: { pattern: 'HH:mm'} }"/>
<Label text="{i18n>EndTime}"/>
<Text text="{ path: 'EndTime', type: 'sap.ui.model.odata.type.DateTime' }"/>
<Text text="{ path: 'EndTime', type: 'sap.ui.model.odata.type.DateTime', formatOptions: { pattern: 'HH:mm'} }"/>
<Label text="{i18n>MaxParticipants}"/>
<Text text="{MaxParticipants}"/>
<Label text="{i18n>HomepageURL}"/>
Expand Down

0 comments on commit 2248cf6

Please sign in to comment.