-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,063 additions
and
848 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
.env | ||
/certs/* |
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
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 |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
<h3 class="font-bold">Personal Details</h3> | ||
</div> | ||
<div class="m-5"> | ||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-5 gap-y-10"> | ||
<div v-if="!!editableUser" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-5 gap-y-10"> | ||
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">First name</p> | ||
<input | ||
v-model="user.first_name" | ||
v-model="editableUser.first_name" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="John" | ||
disabled | ||
|
@@ -16,7 +16,7 @@ | |
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Last name</p> | ||
<input | ||
v-model="user.last_name" | ||
v-model="editableUser.last_name" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="Doe" | ||
disabled | ||
|
@@ -25,7 +25,7 @@ | |
<div class="col-span-1 md:col-span-2 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Email</p> | ||
<input | ||
v-model="user.email" | ||
v-model="editableUser.email" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="[email protected]" | ||
disabled | ||
|
@@ -34,23 +34,23 @@ | |
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Preferred Name</p> | ||
<input | ||
v-model="user.preferred_name" | ||
v-model="editableUser.preferred_name" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="Johnny" | ||
/> | ||
</div> | ||
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Preferred OIs</p> | ||
<input | ||
v-model="user.preferred_ois" | ||
v-model="editableUser.preferred_ois" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="JD" | ||
/> | ||
</div> | ||
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Pilot Rating</p> | ||
<input | ||
v-model="user.pilot_rating" | ||
v-model="editableUser.pilot_rating_string" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="1" | ||
disabled | ||
|
@@ -59,7 +59,7 @@ | |
<div class="col-span-1 flex flex-col"> | ||
<p class="font-bold text-gray-600 text-sm">Controller Rating</p> | ||
<input | ||
v-model="user.controller_rating" | ||
v-model="editableUser.controller_rating_string" | ||
class="my-1 py-1 border-b hover:border-b-usa-blue outline-0 focus:border-transparent focus:ring-0 bg-transparent" | ||
placeholder="S1" | ||
disabled | ||
|
@@ -70,15 +70,15 @@ | |
<div class="mt-20 border-b"> | ||
<h3 class="font-bold">Facility Details</h3> | ||
</div> | ||
<div class="m-5"> | ||
<div v-if="!!rosters" class="m-5"> | ||
<div class="grid grid-cols-4 gap-x-5 border-b font-semibold"> | ||
<div class="col-span-1 flex">Facility</div> | ||
<div class="col-span-1 flex">Type</div> | ||
<div class="col-span-1 flex">Join Date</div> | ||
<div class="col-span-1 flex">Exit Date</div> | ||
</div> | ||
<div | ||
v-for="(roster, idx) in user.rosters" | ||
v-for="(roster, idx) in rosters" | ||
:key="idx" | ||
class="grid grid-cols-4 gap-x-5 gap-y-10" | ||
:class="idx % 2 == 0 ? 'bg-usa-white' : 'bg-white'" | ||
|
@@ -102,53 +102,14 @@ | |
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
import { User } from "@/types"; | ||
import { User, Roster } from "@/types"; | ||
const props = defineProps<{ | ||
user: User | null; | ||
rosters: Roster[] | null; | ||
}>(); | ||
const user = ref<User>({ | ||
cid: 1, | ||
first_name: "John", | ||
last_name: "Doe", | ||
preferred_name: "Johnny", | ||
email: "[email protected]", | ||
preferred_ois: "JD", | ||
pilot_rating: 1, | ||
controller_rating: 1, | ||
discord_id: "1234567890", | ||
rosters: [ | ||
{ | ||
id: 1, | ||
cid: 1, | ||
facility: "ZAB", | ||
operating_initials: "ZZ", | ||
home: true, | ||
visiting: false, | ||
status: "active", | ||
created_at: "2021-08-01T00:00:00.000Z", | ||
deleted_at: "2021-08-01T00:00:00.000Z", | ||
}, | ||
{ | ||
id: 2, | ||
cid: 1, | ||
facility: "ZDV", | ||
operating_initials: "ZZ", | ||
home: false, | ||
visiting: true, | ||
status: "active", | ||
created_at: "2021-08-01T00:00:00.000Z", | ||
deleted_at: "2021-08-01T00:00:00.000Z", | ||
}, | ||
{ | ||
id: 3, | ||
cid: 1, | ||
facility: "ZLC", | ||
operating_initials: "ZZ", | ||
home: true, | ||
visiting: false, | ||
status: "active", | ||
created_at: "2021-08-01T00:00:00.000Z", | ||
}, | ||
], | ||
} as User); | ||
const editableUser = ref<User | null>(props.user); | ||
</script> | ||
|
||
<style scoped></style> |
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
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.