Child: [c9d94b] (diff)

Download this file

import_file.html    44 lines (39 with data), 2.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "base.html" %}
{% load staticfiles %}
{% block content %}
<h2>Import Methodology and/or Analysis</h2>
<p>You have uploaded <strong>{{ file }}</strong></p>
<h3>The file you have uploaded contains:</h3>
<p>Methodology "{{ analysis_on_file.methodology_version.methodology.name }}" (ID {{ analysis_on_file.methodology_version.id }}) - Version: {{ analysis_on_file.methodology_version.number }}</p>
<p>Analysis "{{ analysis_on_file.name }}" (ID {{ analysis_on_file.id }}) created on the {{ analysis_on_file.created }} by {{ analysis_on_file.user_login }}</p>
<h3>I searched on the database and this is what I have found with the same IDs:</h3>
<p>Methodology "{{ analysis_on_db.methodology_version.methodology.name }}" (ID {{ analysis_on_db.methodology_version.id }}) - Version: {{ analysis_on_db.methodology_version.number }}</p>
<p>Analysis "{{ analysis_on_db.name }}" (ID {{ analysis_on_db.id }}) created on the {{ analysis_on_db.created }} by {{ analysis_on_db.user_login }}</p>
<hr>
<form action="{% url 'perform_import' %}" method="post">{% csrf_token %}
{{ import_choice_form.as_p }}
<p>
<input type="submit" value="Import file now">
</p>
</form> <PRE>
file {{ file }}
new_uploaded_file.id {{ new_uploaded_file.id }}
new_uploaded_file.docfile.url {{ new_uploaded_file.docfile.url }}
new_uploaded_file.docfile.name {{ new_uploaded_file.docfile.name }}
{{ methodology_version_on_file.id }}
{{ analysis_on_file.id }}
{{ analysis_on_file.name }}
{{ prettyxml }}
</PRE>
{% endblock %}
{% block left_menu %}
<div class="magic_bar_osp">
<div id="top_nav" class="">
<a href="{% url 'analysis_list' %}" class="">All analyses</a>
<a href="{% url 'analysis_new' %}" class="">New</a>
<a href="{% url 'upload_page' %}" class="active">Import</a>
</div>
<div id="sidebar">
</div>
</div>
{% endblock %}