mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Add corpus file upload
This commit is contained in:
		@@ -87,7 +87,7 @@
 | 
			
		||||
    <form method="POST" enctype="multipart/form-data">
 | 
			
		||||
      {{ add_corpus_file_form.hidden_tag() }}
 | 
			
		||||
      <div class="row">
 | 
			
		||||
        <div class="col s12 m8">
 | 
			
		||||
        <div class="col s12 m4">
 | 
			
		||||
          <div class="input-field">
 | 
			
		||||
            <i class="material-icons prefix">person</i>
 | 
			
		||||
            {{ add_corpus_file_form.author(data_length='64') }}
 | 
			
		||||
@@ -107,16 +107,26 @@
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="col s12 m4">
 | 
			
		||||
          <div class="input-field">
 | 
			
		||||
            <i class="material-icons prefix">access_time</i>
 | 
			
		||||
            {{ add_corpus_file_form.publishing_year() }}
 | 
			
		||||
            {{ add_corpus_file_form.publishing_year.label }}
 | 
			
		||||
            {% for error in add_corpus_file_form.publishing_year.errors %}
 | 
			
		||||
              <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="col s12">
 | 
			
		||||
          <div class="file-field input-field">
 | 
			
		||||
            <div class="btn">
 | 
			
		||||
              <span>{{ add_corpus_file_form.files.label.text }}</span>
 | 
			
		||||
              {{ add_corpus_file_form.files(accept='.vrt') }}
 | 
			
		||||
              <span>{{ add_corpus_file_form.file.label.text }}</span>
 | 
			
		||||
              {{ add_corpus_file_form.file(accept='.vrt') }}
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="file-path-wrapper">
 | 
			
		||||
              <input class="file-path validate" type="text">
 | 
			
		||||
            </div>
 | 
			
		||||
            {% for error in add_corpus_file_form.files.errors %}
 | 
			
		||||
            {% for error in add_corpus_file_form.file.errors %}
 | 
			
		||||
              <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user