-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #424 from amansinghbais/423-rejection-reason-ui
Implemented: UI for rejection reason page (#423)
- Loading branch information
Showing
15 changed files
with
412 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,108 @@ | ||
<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("Create rejection reason") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<form> | ||
<ion-list> | ||
<ion-item> | ||
<ion-label>{{ translate("Name") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("ID") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>{{ translate("Description") }}</ion-label> | ||
<ion-input /> | ||
</ion-item> | ||
</ion-list> | ||
|
||
<ion-list> | ||
<ion-item> | ||
<ion-label>{{ translate("Variance type") }}</ion-label> | ||
<ion-select interface="popover" value=""> | ||
<ion-select-option value="">{{ "No variance" }}</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-label> | ||
<p>{{ "< Variance type desc >" }}</p> | ||
</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
|
||
<ion-fab vertical="bottom" horizontal="end" slot="fixed"> | ||
<ion-fab-button> | ||
<ion-icon :icon="checkmarkDoneOutline" /> | ||
</ion-fab-button> | ||
</ion-fab> | ||
</form> | ||
</ion-content> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonSelect, | ||
IonSelectOption, | ||
IonTitle, | ||
IonToolbar, | ||
modalController | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { checkmarkDoneOutline, closeOutline } from "ionicons/icons"; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: "CreateRejectionReasonModal", | ||
components: { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonFab, | ||
IonFabButton, | ||
IonHeader, | ||
IonIcon, | ||
IonInput, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonSelect, | ||
IonSelectOption, | ||
IonTitle, | ||
IonToolbar | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss() | ||
} | ||
}, | ||
setup() { | ||
return { | ||
checkmarkDoneOutline, | ||
closeOutline, | ||
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
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,40 @@ | ||
<template> | ||
<ion-content> | ||
<ion-list> | ||
<ion-list-header> | ||
{{ "<enumName>" }} | ||
</ion-list-header> | ||
<ion-item button> | ||
{{ translate("Edit name and description") }} | ||
</ion-item> | ||
<ion-item button lines="none"> | ||
{{ translate("Remove reason") }} | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonContent, | ||
IonItem, | ||
IonList, | ||
IonListHeader, | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: "RejectReasonActionsPopover", | ||
components: { | ||
IonContent, | ||
IonItem, | ||
IonList, | ||
IonListHeader | ||
}, | ||
setup() { | ||
return { | ||
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,43 @@ | ||
<template> | ||
<ion-content> | ||
<ion-list> | ||
<ion-list-header> | ||
{{ translate("Variance type") }} | ||
</ion-list-header> | ||
<ion-item button> | ||
{{ translate("No variance") }} | ||
</ion-item> | ||
<ion-item button> | ||
{{ translate("Single variance") }} | ||
</ion-item> | ||
<ion-item button lines="none"> | ||
{{ translate("All variance") }} | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonContent, | ||
IonItem, | ||
IonList, | ||
IonListHeader, | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: "RejectReasonActionsPopover", | ||
components: { | ||
IonContent, | ||
IonItem, | ||
IonList, | ||
IonListHeader | ||
}, | ||
setup() { | ||
return { | ||
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
Oops, something went wrong.