mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
130 lines
4.9 KiB
Django/Jinja
130 lines
4.9 KiB
Django/Jinja
{% extends "limited_width.html.j2" %}
|
|
|
|
{% block page_content %}
|
|
<div class="col s12 m4">
|
|
<h3>My Corpora</h3>
|
|
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
|
|
</div>
|
|
|
|
<div class="col s12 m8">
|
|
<div id="corpus-list">
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div class="row">
|
|
<div class="col s12 m8">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">search</i>
|
|
<input id="search-corpus" class="search" type="text"></input>
|
|
<label for="search-corpus">Search corpus</label>
|
|
</div>
|
|
</div>
|
|
<div class="col s12 m4">
|
|
<p><a data-target="new-corpus-modal" class="waves-effect waves-light btn modal-trigger right"><i class="material-icons left">add</i>New corpus</a></p>
|
|
</div>
|
|
<div class="col s12">
|
|
<ul class="pagination"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="collection list"></div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
var corpusList = new CorpusList("corpus-list", corporaSubscribers, {
|
|
item: '<div><span class="title"></span><span class="description"></span></div>',
|
|
page: 4,
|
|
pagination: true,
|
|
valueNames: ["description", "title", {data: ["id"]}]
|
|
});
|
|
corpusList.on("filterComplete", List.updatePagination);
|
|
corpusList.on("searchComplete", List.updatePagination);
|
|
</script>
|
|
|
|
<div class="col s12">
|
|
<p> </p>
|
|
</div>
|
|
|
|
<div class="col s12 m4">
|
|
<h3>My Jobs</h3>
|
|
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
|
|
</div>
|
|
|
|
<div class="col s12 m8">
|
|
<div id="job-list">
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div class="row">
|
|
<div class="col s12 m8">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">search</i>
|
|
<input id="search-job" class="search" type="text"></input>
|
|
<label for="search-job">Search job</label>
|
|
</div>
|
|
</div>
|
|
<div class="col s12 m4">
|
|
<p><a id="new-job" class="dropdown-trigger waves-effect waves-light btn right no-autoinit" href="#" data-target="new-job-dropdown"><i class="material-icons left">add</i>New job</a></p>
|
|
</div>
|
|
<div class="col s12">
|
|
<ul class="pagination"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="collection list"></div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
var jobList = new JobList("job-list", jobsSubscribers, {
|
|
item: '<div><span class="title"></span><span class="description"></span></div>',
|
|
page: 4,
|
|
pagination: true,
|
|
valueNames: ["description", "title", {data: ["id"]}]
|
|
});
|
|
jobList.on("filterComplete", List.updatePagination);
|
|
jobList.on("searchComplete", List.updatePagination);
|
|
</script>
|
|
|
|
<div id="new-corpus-modal" class="modal">
|
|
<div class="modal-content">
|
|
<h4>New corpus</h4>
|
|
<form action="{{ url_for('main.corpus_new') }}" method="POST">
|
|
{{ create_corpus_form.hidden_tag() }}
|
|
<div class="row">
|
|
<div class="col s12 m4">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">title</i>
|
|
{{ create_corpus_form.title(data_length='32') }}
|
|
{{ create_corpus_form.title.label }}
|
|
{% for error in create_corpus_form.title.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="col s12 m8">
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">description</i>
|
|
{{ create_corpus_form.description(data_length='255') }}
|
|
{{ create_corpus_form.description.label }}
|
|
{% for error in create_corpus_form.description.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="col s12">
|
|
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
{{ create_corpus_form.submit(class='btn') }}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<ul id='new-job-dropdown' class='dropdown-content'>
|
|
<li><a href="{{ url_for('services.service', service_handle='nlp') }}"><i class="material-icons">format_textdirection_l_to_r</i>NLP</a></li>
|
|
<li><a href="{{ url_for('services.service', service_handle='ocr') }}"><i class="material-icons">find_in_page</i>OCR</a></li>
|
|
</ul>
|
|
{% endblock %}
|