mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
fe26c56344
@ -36,7 +36,8 @@ class RessourceList extends List {
|
|||||||
item = this.get("id", pathArray[0])[0];
|
item = this.get("id", pathArray[0])[0];
|
||||||
switch(pathArray[1]) {
|
switch(pathArray[1]) {
|
||||||
case "status":
|
case "status":
|
||||||
item.values({status: operation.value});
|
item.values({status: operation.value,
|
||||||
|
"analyse-link": ["analysing", "prepared", "start analysis"].includes(operation.value) ? `/corpora/${pathArray[0]}/analyse` : ""});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-action right-align">
|
<div class="card-action right-align">
|
||||||
<a href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="analyze"><i class="material-icons left">search</i>Analyze</a>
|
<a href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="analyze"><i class="material-icons left">search</i>Analyze</a>
|
||||||
<a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="compile"><i class="material-icons left">merge_type</i>Compile</a>
|
<a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="build"><i class="material-icons left">build</i>Build</a>
|
||||||
<a data-target="delete-corpus-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
|
<a data-target="delete-corpus-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -163,7 +163,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStatus(status) {
|
setStatus(status) {
|
||||||
let analyzeElement, compileElement, numFiles, progressIndicatorElement, statusElement;
|
let analyzeElement, buildElement, numFiles, progressIndicatorElement, statusElement;
|
||||||
|
|
||||||
numFiles = (this.foreignCorpusFlag ? nopaque.foreignCorpora[this.corpusId] : nopaque.corpora[this.corpusId]).files.length;
|
numFiles = (this.foreignCorpusFlag ? nopaque.foreignCorpora[this.corpusId] : nopaque.corpora[this.corpusId]).files.length;
|
||||||
|
|
||||||
@ -185,11 +185,11 @@
|
|||||||
analyzeElement.classList.add("disabled", "hide");
|
analyzeElement.classList.add("disabled", "hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
compileElement = document.getElementById("compile");
|
buildElement = document.getElementById("build");
|
||||||
if (status === "unprepared" && numFiles > 0) {
|
if (status === "unprepared" && numFiles > 0) {
|
||||||
compileElement.classList.remove("disabled", "hide");
|
buildElement.classList.remove("disabled", "hide");
|
||||||
} else {
|
} else {
|
||||||
compileElement.classList.add("disabled", "hide");
|
buildElement.classList.add("disabled", "hide");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,31 +1,30 @@
|
|||||||
{% macro render_field(field) %}
|
{% macro render_field(field) %}
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<i class="prefix">{{ field.name[0:1]|upper }}</i>
|
<i class="prefix">{{ field.label.text[0:1]|upper }}</i>
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
{{ field(data_length='255')|safe }}
|
{{ field(data_length='255')|safe }}
|
||||||
</div>
|
{% for error in field.errors %}
|
||||||
{% if field.errors %}
|
<span class="helper-text red-text">{{ error }}</span>
|
||||||
{% for error in field.errors %}
|
{% endfor %}
|
||||||
<span class="helper-text red-text">{{ error }}</span>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
{% macro render_field_with_value(field, corpus_file) %}
|
{% macro render_field_with_value(field, corpus_file) %}
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<i class="prefix">{{ field.name[0:1]|upper }}</i>
|
<i class="prefix">{{ field.label.text[0:1]|upper }}</i>
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
{{ field(value=corpus_file[field.name], data_length='255')| safe }}
|
{{ field(value=corpus_file[field.name], data_length='255')| safe }}
|
||||||
</div>
|
{% for error in field.errors %}
|
||||||
{% if field.errors %}
|
<span class="helper-text red-text">{{ error }}</span>
|
||||||
{% for error in field.errors %}
|
{% endfor %}
|
||||||
<span class="helper-text red-text">{{ error }}</span>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
{% macro submit_button(input) %}
|
{% macro submit_button(input) %}
|
||||||
<button class="btn waves-effect waves-light" id="{{ input.id }}" name="{{ input.name }}" type="submit" value="{{ input.label.text }}">{{ input.label.text }}<i class="material-icons right">send</i></button>
|
<button class="btn waves-effect waves-light" id="{{ input.id }}" name="{{ input.name }}" type="submit" value="{{ input.label.text }}">
|
||||||
|
{{ input.label.text }}
|
||||||
|
<i class="material-icons right">send</i>
|
||||||
|
</button>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<ul class="table-of-contents" id="roadmap">
|
<ul class="table-of-contents" id="roadmap">
|
||||||
<li><b>Roadmap</b></li>
|
<li><b>Roadmap</b></li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('services.service', service='setup-files') }}">File setup</a>
|
<a href="{{ url_for('services.service', service='file-setup') }}">File setup</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('services.service', service='ocr') }}">Optical Character Recognition</a>
|
<a href="{{ url_for('services.service', service='ocr') }}">Optical Character Recognition</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user