16
This commit is contained in:
@@ -1,43 +1,16 @@
|
|||||||
<script lang="ts">
|
|
||||||
let st = "login";
|
|
||||||
|
|
||||||
function checkSt(st2: string) {
|
|
||||||
let st1 = st2;
|
|
||||||
if (st1 == "login") {
|
|
||||||
st = "signup";
|
|
||||||
} else {
|
|
||||||
st = "login";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<h1>Faculty Login</h1>
|
<h1>Faculty Admin Panel</h1>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<section class="login">
|
<section class="admin-options">
|
||||||
{#if st == "login"}
|
<h2>Welcome, [Faculty Name]!</h2>
|
||||||
<form action="#">
|
<ul>
|
||||||
<label for="email">Email:</label>
|
<li><a href="/faculty/schedule">View Class Schedule</a></li>
|
||||||
<input name="email" type="email" id="username" required>
|
<li><a href="/faculty/attendance">Take Attendance</a></li>
|
||||||
<label for="password">Password:</label>
|
<li><a href="#">Record Grades</a></li>
|
||||||
<input name="password" type="password" id="password" required>
|
<li><a href="#">View Student Information</a></li>
|
||||||
<button type="submit">Login</button>
|
<li><a href="#">Send Announcements</a></li>
|
||||||
<button on:click={() => checkSt(st)}>Sign Up</button>
|
<li><a href="#">Logout</a></li>
|
||||||
</form>
|
</ul>
|
||||||
{:else}
|
|
||||||
<form action="/controller/faculty/create" method="post">
|
|
||||||
<label for="firstname">First Name:</label>
|
|
||||||
<input name="firstname" type="text" id="firstname" required>
|
|
||||||
<label for="lastname">Last Name:</label>
|
|
||||||
<input name="lastname" type="text" id="lastname" required>
|
|
||||||
<label for="email">Email:</label>
|
|
||||||
<input name="email" type="email" id="email" required>
|
|
||||||
<label for="password">Password:</label>
|
|
||||||
<input name="password" type="password" id="password" required>
|
|
||||||
<button type="submit">Sign Up</button>
|
|
||||||
<button on:click={() => checkSt(st)}>Login</button>
|
|
||||||
</form>
|
|
||||||
{/if}
|
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
Reference in New Issue
Block a user