-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from drahamim/21-ability-to-create-staff-that-…
…are-outside-regular-org 21 ability to create staff that are outside regular org
- Loading branch information
Showing
5 changed files
with
191 additions
and
12 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block content %} | ||
<h1>{% block title %} Create Staff {% endblock %}</h1> | ||
<form method="POST"> | ||
<label for="title">Staff ID</label> | ||
<br> | ||
<input type="text" name="staffid" | ||
placeholder="Staff ID" | ||
value="{{ request.form['staffid'] }}"></input> | ||
<!-- <input type="checkbox" id="staffgen" name="staffgen"/> | ||
<label for="staffgen">Auto Generate Staff ID</label> --> | ||
<br> | ||
<label for="title">First Name</label> | ||
<br> | ||
<input type="text" name="firstname" | ||
placeholder="First Name" | ||
value="{{ request.form['firstname'] }}" | ||
required="required"></input> | ||
<br> | ||
<label for="title">Last Name</label> | ||
<br> | ||
<input type="text" name="lastname" | ||
placeholder="Last Name" | ||
value="{{ request.form['lastname'] }}" | ||
required="required"></input> | ||
<br> | ||
<label for="title">Title</label> | ||
<br> | ||
<input type="text" name="title" | ||
placeholder="Title" | ||
value="{{ request.form['title'] }}" | ||
required="required"></input> | ||
<br> | ||
<label for="title">Division</label> | ||
<br> | ||
<input type="text" name="division" | ||
placeholder="Division" | ||
value="{{ request.form['division'] }}"></input> | ||
<br> | ||
<label for="title">Department</label> | ||
<br> | ||
<input type="text" name="department" | ||
placeholder="Department" | ||
value="{{ request.form['department'] }}"></input> | ||
<br> | ||
<button type="submit">Submit</button> | ||
</form> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block content %} | ||
<h1>{% block title %} Edit {{ staff.id }} {% endblock %}</h1> | ||
<form method="post"> | ||
<label for="title">Staff ID</label> | ||
<br> | ||
<label for="firstname">First Name</label> | ||
<br> | ||
<input type="text" name="firstname" | ||
value="{{ staff.first_name }}"> | ||
</input> | ||
<br> | ||
<label for="title">Last Name</label> | ||
<br> | ||
<input type="text" name="lastname" | ||
value="{{ staff.last_name }}"> | ||
</input> | ||
<br> | ||
<label for="title">Title</label> | ||
<br> | ||
<input type="text" name="title" | ||
value="{{ staff.title }}"> | ||
</input> | ||
<br> | ||
<label for="title">Division</label> | ||
<br> | ||
<input type="text" name="division" | ||
value="{{ staff.division }}"> | ||
</input> | ||
<br> | ||
<label for="title">Department</label> | ||
<br> | ||
<input type="text" name="department" | ||
value="{{ staff.department }}"> | ||
</input> | ||
<button type="submit">Submit</button> | ||
</form> | ||
<hr> | ||
<form action="{{ url_for('staff_delete', id=staff.id) }}" method="POST"> | ||
<input type="submit" value="Delete Asset" | ||
onclick="return confirm('Are you sure you want to delete this asset?')"> | ||
</form> | ||
{% endblock %} |