-
Notifications
You must be signed in to change notification settings - Fork 16
/
create_nonhuman_source.jinja2
26 lines (26 loc) · 1.33 KB
/
create_nonhuman_source.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "sitebase.jinja2" %}
{% set page_title = _("Create Non-human Source") %}
{% set show_breadcrumbs = True %}
{% block head %}
<script>
$(document).ready(function(){
preventImplicitSubmission("new_source_form");
disableInputOnSubmit("#new_source_form", "#submit_button", "{{ _('Creating Source...') }}")
});
</script>
{% endblock %}
{% block content %}
<div class="container">
<form method="post" id="new_source_form" name="new_source_form" action="/accounts/{{account_id}}/create_nonhuman_source/">
<div class="form-group">
<label for="source_name" name="source_name_label">{{ _('Environment name (e.g., microwave)') }}:</label>
<input id="source_name" name="source_name" class="form-control" type="text" required/>
<input id="source_type" name="source_type" type="hidden" value="environmental" />
<br />
<label for="source_description" name="source_description_label">{{ _('Environment description (optional)') }}:</label>
<input id="source_description" name="source_description" class="form-control" type="text"/>
</div>
<input id="submit_button" type="submit" class="btn btn-primary" value="{{ _('Create Source') }}"/>
</form>
</div>
{% endblock %}