add quick member lookup
This commit is contained in:
parent
8bf7fec1c5
commit
c58556fa8d
@ -2,19 +2,21 @@
|
||||
import { Container, Row, Col, Card, CardHeader, CardTitle, CardBody, Input, Button } from 'sveltestrap';
|
||||
import { Link, navigate } from 'svelte-navigator';
|
||||
import FaRocket from 'svelte-icons/fa/FaRocket.svelte';
|
||||
import FaStar from 'svelte-icons/fa/FaStar.svelte'
|
||||
|
||||
let sysInput: string = "";
|
||||
let memberInput: string = "";
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
<Row>
|
||||
<Col class="mx-auto" xs={12} lg={11} xl={12}>
|
||||
<Card>
|
||||
<Card class="mb-4">
|
||||
<CardHeader>
|
||||
<CardTitle style="margin-top: 8px; outline: none;">
|
||||
<div class="icon d-inline-block">
|
||||
<FaRocket />
|
||||
</div>Profile
|
||||
</div>System Profile
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
@ -33,6 +35,31 @@
|
||||
</Row>
|
||||
</CardBody>
|
||||
</Card>
|
||||
|
||||
<Card class="mb-4">
|
||||
<CardHeader>
|
||||
<CardTitle style="margin-top: 8px; outline: none;">
|
||||
<div class="icon d-inline-block">
|
||||
<FaStar />
|
||||
</div>Member Card
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
Submit a <b>member ID</b> to view that member's profile.
|
||||
<Row>
|
||||
<Col xs={12} lg={9} class="my-2">
|
||||
<Input on:keyup={(event) => {if (event.key === "Enter" && memberInput !== "") navigate(`/profile/m/${memberInput.toLowerCase().trim()}`)}} bind:value={memberInput} />
|
||||
</Col>
|
||||
<Col xs={12} lg={3} class="my-2 d-flex">
|
||||
{#if memberInput !== ""}
|
||||
<Link style="text-decoration: none; flex: 1 0 auto" to="/profile/s/{memberInput.toLowerCase().trim()}"><Button class="w-100" color="primary">View</Button></Link>
|
||||
{:else}
|
||||
<Button class="w-100" disabled color="primary">View</Button>
|
||||
{/if}
|
||||
</Col>
|
||||
</Row>
|
||||
</CardBody>
|
||||
</Card>
|
||||
</Col>
|
||||
</Row>
|
||||
</Container>
|
Loading…
Reference in New Issue
Block a user