Skip to content
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

Bugfix/127/personnel dropdown #133

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
</div>
<div class="d-flex gap-3 align-items-center">
<span>Status: </span>
<span
class="badge rounded-pill bg-success"
>{{ AssetDetails.selectedParentAsset.status }}</span
>
<span class="badge rounded-pill bg-success">{{
AssetDetails.selectedParentAsset.status
}}</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -144,11 +143,11 @@
aria-label="Default select example"
v-model="AssetDetails.status"
>
<option selected value="Active Deployed">Active Deployed</option>
<option
v-for="list in statusList"
:key="list.value"
:value="list.value"
:selected="list.selected"
>
{{ list.name }}
</option>
Expand All @@ -174,6 +173,7 @@ const modelList = ref(null);
const assetList = ref(null);

const statusList = ref([
{ name: "Active Deployed", value: "Active Deployed", selected: true },
{ name: "Active in Storage", value: "Active in Storage" },
{ name: "Active in Service", value: "Active in Service" },
{ name: "Storage Repairable", value: "Storage Repairable" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<Input
class="form-control"
id="locationName"
label="locationName"
label="Location"
placeholder="Enter Location"
aria-label="Default select example"
v-model="AssetLocation.locationName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
UMDNSCode: null,
},
manufactureDate: null,
status: "Active in Service",
status: "Active Deployed",
});

const AssetLocation = ref({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,24 @@
/>
</div>
<!-- Type of Personnel -->
<div class="col-lg-6">
<label for="type" class="form-label">Type of Personnel</label>
<div class="input-group">
<input
class="form-control"
list="contactTypeOptions"
id="type"
placeholder="Select Contact Type"
autocomplete="off"
v-model="contactInfo.type"
/>
</div>
<datalist id="contactTypeOptions">
<option />
Select Contact Type
</datalist>
<div class="col-lg-6 mb-3">
<label for="typeList" class="form-label">Type of Personnel</label>
<select
id="typeList"
class="form-select"
aria-label="Default select example"
v-model="contactInfo.type"
placeholder="Enter Contact Number"
>
<option
v-for="list in typeList"
:key="list.value"
:value="list.value"
:selected="list.selected"
>
{{ list.name }}
</option>
</select>
</div>

<div class="col-lg-6 mt-4">
Expand All @@ -62,11 +64,18 @@
</template>

<script setup>
import { inject } from "vue";
import { ref, inject } from "vue";
import Btn2 from "../BIOMD-UI/UI-Btn2.vue";
import Input from "../BIOMD-UI/UI-Input.vue";
import Section from "../BIOMD-UI/UI-Section.vue";

const typeList = ref([
{ name: "Biomedical Service", value: "Biomedical Service", selected: true },
{ name: "Clinical Specialist", value: "Clinical Specialist" },
{ name: "Service Call", value: "Service Call" },
{ name: "General Contact", value: "General Contact" },
]);

const contactInfo = inject("contactInfo");
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default {
number: null,
name: null,
email: null,
type: null,
type: "Biomedical Service",
},
]);

Expand Down