mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add edit corpus file form
This commit is contained in:
		@@ -53,7 +53,7 @@
 | 
			
		||||
            <td>{{ file.title }}</td>
 | 
			
		||||
            <td>{{ file.publishing_year }}</td>
 | 
			
		||||
            <td class="right-align">
 | 
			
		||||
              <a class="waves-effect waves-light btn-small"><i class="material-icons">edit</i></a>
 | 
			
		||||
              <a class="waves-effect waves-light btn-small" href="{{ url_for('corpora.edit_corpus_file', corpus_file_id=file.id, corpus_id=corpus.id) }}"><i class="material-icons">edit</i></a>
 | 
			
		||||
              <a class="waves-effect waves-light btn-small" href="{{ url_for('corpora.download_corpus_file', corpus_file_id=file.id, corpus_id=corpus.id) }}"><i class="material-icons">file_download</i></a>
 | 
			
		||||
              <a class="waves-effect waves-light btn-small red" href="{{ url_for('corpora.delete_corpus_file', corpus_file_id=file.id, corpus_id=corpus.id) }}"><i class="material-icons">delete</i></a>
 | 
			
		||||
            </td>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										53
									
								
								app/templates/corpora/edit_corpus_file.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								app/templates/corpora/edit_corpus_file.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
{% extends "limited_width.html.j2" %}
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="col s12 m4">
 | 
			
		||||
  <h3 id="title">...</h3>
 | 
			
		||||
  <p id="description">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</p>
 | 
			
		||||
  <a class="waves-effect waves-light btn" href="{{ url_for('corpora.corpus', corpus_id=corpus_file.corpus.id) }}"><i class="material-icons left">arrow_back</i>Back to corpus</a>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="col s12 m8">
 | 
			
		||||
  <div class="card">
 | 
			
		||||
    <form method="POST">
 | 
			
		||||
      <div class="card-content">
 | 
			
		||||
        {{ edit_corpus_file_form.hidden_tag() }}
 | 
			
		||||
        <div class="row">
 | 
			
		||||
          <div class="col s12 m4">
 | 
			
		||||
            <div class="input-field">
 | 
			
		||||
              <i class="material-icons prefix">person</i>
 | 
			
		||||
              {{ edit_corpus_file_form.author(data_length='64', value=corpus_file.author) }}
 | 
			
		||||
              {{ edit_corpus_file_form.author.label }}
 | 
			
		||||
              {% for error in edit_corpus_file_form.author.errors %}
 | 
			
		||||
                <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
              {% endfor %}
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="col s12 m4">
 | 
			
		||||
            <div class="input-field">
 | 
			
		||||
              <i class="material-icons prefix">title</i>
 | 
			
		||||
              {{ edit_corpus_file_form.title(data_length='64', value=corpus_file.title) }}
 | 
			
		||||
              {{ edit_corpus_file_form.title.label }}
 | 
			
		||||
              {% for error in edit_corpus_file_form.title.errors %}
 | 
			
		||||
                <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
              {% endfor %}
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="col s12 m4">
 | 
			
		||||
            <div class="input-field">
 | 
			
		||||
              <i class="material-icons prefix">access_time</i>
 | 
			
		||||
              {{ edit_corpus_file_form.publishing_year(value=corpus_file.publishing_year) }}
 | 
			
		||||
              {{ edit_corpus_file_form.publishing_year.label }}
 | 
			
		||||
              {% for error in edit_corpus_file_form.publishing_year.errors %}
 | 
			
		||||
                <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
              {% endfor %}
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="card-action right-align">
 | 
			
		||||
        <button class="btn waves-effect waves-light" id="submit" name="submit" type="submit">Submit<i class="material-icons right">send</i></button>
 | 
			
		||||
      </div>
 | 
			
		||||
    </form>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user