mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Soem clean up and restructure
This commit is contained in:
		
							
								
								
									
										12
									
								
								web/app/templates/modals/analysis_init.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								web/app/templates/modals/analysis_init.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
<!-- Analysis init modal. User feedback showing that the analysis session is
 | 
			
		||||
loading. -->
 | 
			
		||||
 | 
			
		||||
<div class="modal no-autoinit" id="init-display">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Initializing your corpus analysis session...</h4>
 | 
			
		||||
    <div class="error-container hide show-on-error"></div>
 | 
			
		||||
    <div class="hide progress show-while-waiting">
 | 
			
		||||
      <div class="indeterminate"></div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										77
									
								
								web/app/templates/modals/context_modal.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								web/app/templates/modals/context_modal.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,77 @@
 | 
			
		||||
<!-- Modal showing detailed context info for one match. -->
 | 
			
		||||
 | 
			
		||||
<div id="context-modal" class="modal modal-fixed-footer">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <form>
 | 
			
		||||
      <div class="row" style="margin-bottom: 0px; margin-top: -20px;">
 | 
			
		||||
        <div class="col s12 m6 l6">
 | 
			
		||||
          <div class="section">
 | 
			
		||||
            <h6 style="margin-top: 0px;">Display</h6>
 | 
			
		||||
            <div class="divider" style="margin-bottom: 10px;"></div>
 | 
			
		||||
            <div class="col s12" style="margin-bottom: 10px;" id="display-inspect">
 | 
			
		||||
              {{ inspect_display_options_form.expert_mode_inspect.label.text }}
 | 
			
		||||
              <div class="switch right">
 | 
			
		||||
                <label>
 | 
			
		||||
                  {{ inspect_display_options_form.expert_mode_inspect() }}
 | 
			
		||||
                  <span class="lever"></span>
 | 
			
		||||
                </label>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="col s12" style="margin-bottom: 10px;" id="create-inspect">
 | 
			
		||||
              {{ inspect_display_options_form.highlight_sentences.label.text }}
 | 
			
		||||
              <div class="switch right">
 | 
			
		||||
                <label>
 | 
			
		||||
                  {{ inspect_display_options_form.highlight_sentences() }}
 | 
			
		||||
                  <span class="lever"></span>
 | 
			
		||||
                </label>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="col s12" style="margin-bottom: 10px;">
 | 
			
		||||
              Sentences around match
 | 
			
		||||
              <div class="input-field right" style="margin-top: -2rem;
 | 
			
		||||
                                                    margin-bottom: -2rem;
 | 
			
		||||
                                                    height: 0px;">
 | 
			
		||||
                <p class="range-field">
 | 
			
		||||
                  <input type="range"
 | 
			
		||||
                         id="context-sentences"
 | 
			
		||||
                         min="1"
 | 
			
		||||
                         max="10"
 | 
			
		||||
                         value="3" />
 | 
			
		||||
                </p>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        {% if not imported %}
 | 
			
		||||
        <div class="col s12 m6 l6">
 | 
			
		||||
          <div class="section">
 | 
			
		||||
            <h6 style="margin-top: 0px;">Create</h6>
 | 
			
		||||
            <div class="divider" style="margin-bottom: 10px;"></div>
 | 
			
		||||
            <div class="col s12">
 | 
			
		||||
              Add to Sub Results
 | 
			
		||||
              <div class="secondary-content right" id="add-to-sub-results-from-inspect">
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
      </div>
 | 
			
		||||
    </form>
 | 
			
		||||
    <div class="row section">
 | 
			
		||||
      <h5 style="margin-top: 0px;">Context for match:
 | 
			
		||||
        <span id="context-match-nr"></span></h5>
 | 
			
		||||
      <div class="divider" style="margin-bottom: 10px;"></div>
 | 
			
		||||
      <div class="col s12" >
 | 
			
		||||
        <div id="context-results">
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="modal-footer">
 | 
			
		||||
    <a id="inspect-download-context" class="left waves-effect waves-light btn">
 | 
			
		||||
      Export Single Context
 | 
			
		||||
      <i class="material-icons right">file_download</i>
 | 
			
		||||
    </a>
 | 
			
		||||
    <a href="#!" class="modal-close waves-effect waves-light red btn">Close</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										54
									
								
								web/app/templates/modals/export_query_results.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								web/app/templates/modals/export_query_results.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
			
		||||
<!-- Export query results modal. Allos the user to download the results in
 | 
			
		||||
different file formats. WIP -->
 | 
			
		||||
 | 
			
		||||
<div id="query-results-download-modal"
 | 
			
		||||
     class="modal modal-fixed-footer no-autoinit">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Download your results</h4>
 | 
			
		||||
    <p>Download your results or sub results in different file formats like JSON
 | 
			
		||||
       or CSV, so you can reuse them in Excel or other software.
 | 
			
		||||
       You can also simply publish your results as raw data using one of these
 | 
			
		||||
       formats. We recommend JSON!
 | 
			
		||||
    </p>
 | 
			
		||||
    <table>
 | 
			
		||||
      <tr>
 | 
			
		||||
        <td>JSON</td>
 | 
			
		||||
        <td>
 | 
			
		||||
          <a class="btn waves-effect waves-light" id="download-results-json">
 | 
			
		||||
             Download
 | 
			
		||||
            <i class="material-icons right">file_download</i>
 | 
			
		||||
          </a>
 | 
			
		||||
        </td>
 | 
			
		||||
      </tr>
 | 
			
		||||
      <tr>
 | 
			
		||||
        <td>CSV</td>
 | 
			
		||||
        <td>
 | 
			
		||||
          <a class="btn waves-effect waves-light disabled"
 | 
			
		||||
             id="download-results-csv">
 | 
			
		||||
             Download
 | 
			
		||||
            <i class="material-icons right">file_download</i>
 | 
			
		||||
          </a>
 | 
			
		||||
        </td>
 | 
			
		||||
      </tr>
 | 
			
		||||
      <tr>
 | 
			
		||||
        <td>EXCEL</td>
 | 
			
		||||
        <td>
 | 
			
		||||
          <a class="btn waves-effect waves-light disabled">Download
 | 
			
		||||
            <i class="material-icons right">file_download</i>
 | 
			
		||||
          </a>
 | 
			
		||||
        </td>
 | 
			
		||||
      </tr>
 | 
			
		||||
      <tr>
 | 
			
		||||
        <td>HTML</td>
 | 
			
		||||
        <td>
 | 
			
		||||
          <a class="btn waves-effect waves-light disabled">Download
 | 
			
		||||
            <i class="material-icons right">file_download</i>
 | 
			
		||||
          </a>
 | 
			
		||||
        </td>
 | 
			
		||||
      </tr>
 | 
			
		||||
    </table>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="modal-footer">
 | 
			
		||||
    <a href="#!" class="modal-close waves-effect waves-light red btn">Close</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										22
									
								
								web/app/templates/modals/show_metadata.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								web/app/templates/modals/show_metadata.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<!-- Modal showing the meta data for the current query results or the imported
 | 
			
		||||
results -->
 | 
			
		||||
 | 
			
		||||
{% import "macros/query_result_macro.html.j2" as metadata %}
 | 
			
		||||
<div id="meta-data-modal" class="modal bottom-sheet">
 | 
			
		||||
  <div class="section">
 | 
			
		||||
    <div class="col s12 right-align">
 | 
			
		||||
      <a href="#!" class="modal-close waves-effect waves-green btn red">Close</a>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  {% if query_metadata is defined %}
 | 
			
		||||
    <div class="modal-content">
 | 
			
		||||
      {{ metadata.show_metadata(query_metadata) }}
 | 
			
		||||
    </div>
 | 
			
		||||
  {% else %}
 | 
			
		||||
    <div class="modal-content" id="meta-data-modal-content">
 | 
			
		||||
    </div>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
  <div class="modal-footer">
 | 
			
		||||
    <a href="#!" class="modal-close waves-effect waves-green btn red">Close</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										12
									
								
								web/app/templates/modals/show_text_details.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								web/app/templates/modals/show_text_details.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
<!-- Modal to show all metadata of one text/corpus file. Used in conjunction
 | 
			
		||||
with the show_meta_data.html.j2 template.-->
 | 
			
		||||
 | 
			
		||||
<div id="modal-text-details" class="modal modal-fixed-footer">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Bibliographic data</h4>
 | 
			
		||||
    <p id="bibliographic-data"></p>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="modal-footer">
 | 
			
		||||
    <a href="#!" class="modal-close waves-effect waves-green red btn">Close</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user