-
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.
git push
- Loading branch information
John Major
committed
Jul 11, 2024
1 parent
30bbb39
commit 3297241
Showing
3 changed files
with
137 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Create New Instance</title> | ||
</head> | ||
<body> | ||
<h1>Create New Instance</h1> | ||
<form method="post" action="/create_instance"> | ||
{% for field in fields %} | ||
<div> | ||
<label for="{{ field.name }}">{{ field.label }}</label> | ||
{% if field.type == "select" %} | ||
<select name="{{ field.name }}"> | ||
{% for option in field.options %} | ||
<option value="{{ option }}">{{ option }}</option> | ||
{% endfor %} | ||
</select> | ||
{% else %} | ||
<input type="{{ field.type }}" name="{{ field.name }}" /> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
<button type="submit">Submit</button> | ||
</form> | ||
</body> | ||
</html> |
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