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
60cc93a806
@ -86,7 +86,7 @@ class DisplayOptionsForm(FlaskForm):
|
||||
|
||||
class InspectDisplayOptionsForm(FlaskForm):
|
||||
expert_mode_inspect = BooleanField('Expert mode')
|
||||
highlight_sentences = BooleanField('Highlight sentences')
|
||||
highlight_sentences = BooleanField('Split sentences')
|
||||
context_sentences = IntegerField('Context sentences',
|
||||
validators=[NumberRange(min=0, max=10)],
|
||||
default=3)
|
||||
|
@ -59,6 +59,6 @@ function queryRenderResults(payload) {
|
||||
}
|
||||
// inital expert mode check and activation
|
||||
if (expertModeSwitchElement.checked) {
|
||||
results.resultsList.expertModeOn();
|
||||
results.resultsList.expertModeOn("query-display");
|
||||
}
|
||||
}
|
@ -183,16 +183,15 @@
|
||||
<!-- Context modal used for detailed information about one match -->
|
||||
<div id="context-modal" class="modal modal-fixed-footer">
|
||||
<div class="modal-content">
|
||||
<h4>Match context</h4>
|
||||
<div class="divider"></div>
|
||||
<div class="section" id="inspect-display-options">
|
||||
<h4>Match Inspect</h4>
|
||||
<div id="inspect-display-options">
|
||||
<form>
|
||||
<h5>Display options</h5>
|
||||
<div class="row">
|
||||
<div class="col s9">
|
||||
<p>{{ inspect_display_options_form.expert_mode_inspect.label.text }}</p>
|
||||
</div>
|
||||
<div class="col s3 right-align">
|
||||
<ul class="collection with-header">
|
||||
<li class="collection-header"><h5>Display options</h5></li>
|
||||
<li class="collection-item">
|
||||
{{ inspect_display_options_form.expert_mode_inspect.label.text }}
|
||||
<div class="secondary-content">
|
||||
<div class="switch">
|
||||
<label>
|
||||
{{ inspect_display_options_form.expert_mode_inspect() }}
|
||||
@ -200,10 +199,10 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s9">
|
||||
<p>{{ inspect_display_options_form.highlight_sentences.label.text }}</p>
|
||||
</div>
|
||||
<div class="col s3 right-align">
|
||||
</li>
|
||||
<li class="collection-item">
|
||||
{{ inspect_display_options_form.highlight_sentences.label.text }}
|
||||
<div class="secondary-content">
|
||||
<div class="switch">
|
||||
<label>
|
||||
{{ inspect_display_options_form.highlight_sentences() }}
|
||||
@ -211,26 +210,36 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6">
|
||||
<p>Nr. of sentences around the match</p>
|
||||
</div>
|
||||
<div class="col s6 right-align">
|
||||
</li>
|
||||
<li class="collection-item">
|
||||
Sentences around match
|
||||
<div class="secondary-content"
|
||||
style="margin-top: -35px;
|
||||
border-top-width: 0px;
|
||||
margin-bottom: -20px;">
|
||||
<div class="input-field">
|
||||
<p class="range-field">
|
||||
<input type="range" id="context-sentences"
|
||||
<input type="range"
|
||||
id="context-sentences"
|
||||
style="margin-top: 20px;
|
||||
margin-bottom: 10px;"
|
||||
min="1"
|
||||
max="10"
|
||||
value="3" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="section">
|
||||
<div>
|
||||
<h5>Context</h5>
|
||||
<div class="row" id="context-results" style="overflow-wrap: break-word;"></div>
|
||||
<div class="row">
|
||||
<div class="clo s12" id="context-results" style="overflow-wrap: break-word;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
Loading…
Reference in New Issue
Block a user