-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
133 additions
and
4 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,39 @@ | ||
{% extends 'page.jinja2' %} | ||
{% import 'macros/form.jinja2' as form %} | ||
|
||
{% block breadcrums %} | ||
{% include 'ontology/snippets/breadcrums_add.jinja2' %} | ||
{% endblock breadcrums %} | ||
|
||
{% block main_container %} | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title m-0">{{ _('Information for the new ontology') }}</h5> | ||
</div> | ||
{{ form.display_errors(errors) }} | ||
<form role="form" method="post" action="{{ request.url }}"> | ||
{{ form.secure_form(request) }} | ||
<div class="card-body"> | ||
<div class="form-group"> | ||
<label for="exampleInputEmail1">{{ _('ID') }}</label> | ||
<input type="text" class="form-control" name="ontology_id" value="{{ form_data.ontology_id }}" placeholder="{{ _('Enter ontology ID') }}"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="exampleInputEmail1">{{ _('Name') }}</label> | ||
<input type="text" class="form-control" name="ontology_name" value="{{ form_data.ontology_name }}" placeholder="{{ _('Enter a description') }}"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="exampleInputEmail1">{{ _('Description') }}</label> | ||
<textarea class="form-control" name="ontology_desc">{{ form_data.ontology_desc }}</textarea> | ||
</div> | ||
</div> | ||
<div class="card-footer"> | ||
<button type="submit" class="btn btn-primary">{{ _('Add ontology') }}</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock main_container %} |
13 changes: 13 additions & 0 deletions
13
cropontology/templates/ontology/snippets/breadcrums_add.jinja2
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,13 @@ | ||
<div class="container"> | ||
<div class="row mb-2"> | ||
<div class="col-sm-6"> | ||
<h1 class="m-0 text-dark"> {{ _('Ontologies') }} <br><small>{{ _('Add new ontology') }}</small></h1> | ||
</div> | ||
<div class="col-sm-6"> | ||
<ol class="breadcrumb float-sm-right"> | ||
<li class="breadcrumb-item"><a href="{{ request.route_url('home') }}">{{ _('Home') }}</a></li> | ||
<li class="breadcrumb-item active">{{ _('Add new ontology') }}</li> | ||
</ol> | ||
</div> | ||
</div> | ||
</div> |
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
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
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