Skip to content

Commit

Permalink
Added everything for Step 14: Adding Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
wridgeu committed Jun 11, 2020
1 parent 6d158b9 commit e790fd2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
6 changes: 6 additions & 0 deletions webapp/i18n/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ flaggedTooltip=Mark this post as flagged
#XTIT: Object view title
objectTitle=Post

#XTIT: Post view date label
postDateLabel=Posted At

#XTIT: Post view description label
postDescriptionLabel=Description

#~~~ Footer Options ~~~~~~~~~~~~~~~~~~~~~~~

#XTIT: Send E-Mail subject
Expand Down
6 changes: 6 additions & 0 deletions webapp/i18n/i18n_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ flaggedTooltip=Mark this post as flagged
#XTIT: Object view title
objectTitle=Post

#XTIT: Post view date label
postDateLabel=Posted At

#XTIT: Post view description label
postDescriptionLabel=Description

#~~~ Footer Options ~~~~~~~~~~~~~~~~~~~~~~~

#XTIT: Send E-Mail subject
Expand Down
2 changes: 1 addition & 1 deletion webapp/test/integration/pages/Worklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sap.ui.define(
},
errorMessage: "The table does not contain one item.",
});
}
},
},
},
});
Expand Down
20 changes: 19 additions & 1 deletion webapp/view/Post.view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<mvc:View controllerName="com.mrb.UI5-Testing.controller.Post"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:mvc="sap.ui.core.mvc"
xmlns:form="sap.ui.layout.form"
xmlns:semantic="sap.m.semantic">
<semantic:FullscreenPage id="page" busy="{postView>/busy}" busyIndicatorDelay="0" navButtonPress=".onNavBack" showNavButton="true" title="{i18n>objectTitle}">
<semantic:content>
Expand All @@ -9,6 +10,23 @@
formatter: '.formatter.numberUnit'
}" numberUnit="{Currency}" backgroundDesign="Translucent">
</ObjectHeader>
<IconTabBar id="iconTabBar" expanded="{device>/isNoPhone}" class="sapUiNoContentPadding">
<items>
<IconTabFilter icon="sap-icon://hint" key="info">
<form:SimpleForm>
<form:content>
<Label text="{i18n>postDateLabel}"/>
<Text text="{Timestamp}"/>
<Label text="{i18n>postDescriptionLabel}"/>
<Text text="{Description}"/>
</form:content>
</form:SimpleForm>
</IconTabFilter>
<IconTabFilter icon="sap-icon://inspection" key="statistics">
<Text text="Viewed 55555 times" id="viewCounter"/>
</IconTabFilter>
</items>
</IconTabBar>
</semantic:content>
</semantic:FullscreenPage>
</mvc:View>

0 comments on commit e790fd2

Please sign in to comment.