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