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>
|
||||
<h1>Faculty Login</h1>
|
||||
<h1>Faculty Admin Panel</h1>
|
||||
</header>
|
||||
<main>
|
||||
<section class="login">
|
||||
{#if st == "login"}
|
||||
<form action="#">
|
||||
<label for="email">Email:</label>
|
||||
<input name="email" type="email" id="username" required>
|
||||
<label for="password">Password:</label>
|
||||
<input name="password" type="password" id="password" required>
|
||||
<button type="submit">Login</button>
|
||||
<button on:click={() => checkSt(st)}>Sign Up</button>
|
||||
</form>
|
||||
{: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 class="admin-options">
|
||||
<h2>Welcome, [Faculty Name]!</h2>
|
||||
<ul>
|
||||
<li><a href="/faculty/schedule">View Class Schedule</a></li>
|
||||
<li><a href="/faculty/attendance">Take Attendance</a></li>
|
||||
<li><a href="#">Record Grades</a></li>
|
||||
<li><a href="#">View Student Information</a></li>
|
||||
<li><a href="#">Send Announcements</a></li>
|
||||
<li><a href="#">Logout</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
Reference in New Issue
Block a user