-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: UI for the facility details page and modals (#3) #6
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c678594
Implemented: UI for facility details page (#3)
amansinghbais 2ac5502
Implemented: addGeopoint modal, addAddress modal and addGeoPoint card…
amansinghbais 72acd0a
Implemented: modal for selecting time and product store (#3)
amansinghbais c4fdeeb
Improved: select operating time modal (#3)
amansinghbais b06fb52
Improved: syntax for better readability (#3)
amansinghbais 57a7906
Improved: import entries in alphabetical order and route path (#3)
amansinghbais File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal()"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Address") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-item> | ||
<ion-label>{{ translate("Address line 1") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item class="ion-margin-bottom"> | ||
<ion-label>{{ translate("Address line 2") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("City") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("Country") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("State") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("Zipcode") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
</ion-content> | ||
|
||
<ion-fab vertical="bottom" horizontal="end" slot="fixed"> | ||
<ion-fab-button> | ||
<ion-icon :icon="saveOutline" /> | ||
</ion-fab-button> | ||
</ion-fab> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonTitle, | ||
IonToolbar, | ||
modalController | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { closeOutline, saveOutline } from "ionicons/icons"; | ||
import { translate } from '@hotwax/dxp-components' | ||
|
||
export default defineComponent({ | ||
name: "AddAddressModal", | ||
components: { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonTitle, | ||
IonToolbar | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss() | ||
} | ||
}, | ||
setup() { | ||
return { | ||
closeOutline, | ||
saveOutline, | ||
translate | ||
}; | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal()"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Latitude & Longitude") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-item class="ion-margin-bottom"> | ||
<ion-label>{{ "<postal code value>" }}</ion-label> | ||
<ion-button fill="outline"> | ||
{{ translate("Generate") }} | ||
<ion-icon slot="end" :icon="colorWandOutline" /> | ||
</ion-button> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("Latitude") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("Longitude") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
</ion-content> | ||
|
||
<ion-fab vertical="bottom" horizontal="end" slot="fixed"> | ||
<ion-fab-button> | ||
<ion-icon :icon="saveOutline" /> | ||
</ion-fab-button> | ||
</ion-fab> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonTitle, | ||
IonToolbar, | ||
modalController | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { closeOutline, colorWandOutline, saveOutline } from "ionicons/icons"; | ||
import { translate } from '@hotwax/dxp-components' | ||
|
||
export default defineComponent({ | ||
name: "AddGeoPointModal", | ||
components: { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonTitle, | ||
IonToolbar, | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss() | ||
} | ||
}, | ||
setup() { | ||
return { | ||
closeOutline, | ||
colorWandOutline, | ||
saveOutline, | ||
translate | ||
}; | ||
}, | ||
}); | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<ion-content> | ||
<ion-list> | ||
<ion-list-header>{{ "NotNaked" }}</ion-list-header> | ||
<ion-item button> | ||
{{ translate("Make primary") }} | ||
<ion-icon slot="end" :icon="starOutline" /> | ||
</ion-item> | ||
<ion-item button lines="none"> | ||
{{ translate("Unlink") }} | ||
<ion-icon slot="end" :icon="removeCircleOutline" /> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonContent, | ||
IonList, | ||
IonListHeader, | ||
IonItem, | ||
IonIcon | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { starOutline, removeCircleOutline } from "ionicons/icons"; | ||
import { translate } from "@hotwax/dxp-components"; | ||
|
||
export default defineComponent({ | ||
name: "CreateMappingModal", | ||
components: { | ||
IonContent, | ||
IonList, | ||
IonListHeader, | ||
IonItem, | ||
IonIcon | ||
}, | ||
setup() { | ||
return { | ||
removeCircleOutline, | ||
starOutline, | ||
translate | ||
}; | ||
} | ||
}); | ||
</script> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.