mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Format
This commit is contained in:
parent
65213ec0e3
commit
6a40098922
1 changed files with 41 additions and 61 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% for error in form.file.errors %}
|
{% for error in form.file.errors %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger" role="alert">
|
||||||
<strong>Error!</strong> {{ error }}
|
<strong>Error!</strong> {{ error }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -22,42 +22,24 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
You can take a look at the file
|
You can take a look at the file
|
||||||
<a
|
<a href="{{ url_for('static', filename='example_database_import.txt') }}"
|
||||||
href="{{ url_for('static', filename='example_database_import.txt') }}"
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer">
|
||||||
>
|
|
||||||
example_database_import.txt
|
example_database_import.txt
|
||||||
</a>
|
</a>
|
||||||
for an example.
|
for an example.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>Required manipulation using the web interface</h4>
|
<h4>Required manipulation using the web interface</h4>
|
||||||
<p>
|
<p>The following tables can not be imported from a file and have to be manipulated using the web interface.</p>
|
||||||
The following tables can not be imported from a file and have to be manipulated using the web interface.
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>Semester</li>
|
||||||
Semester
|
<li>Program</li>
|
||||||
</li>
|
<li>Part</li>
|
||||||
<li>
|
<li>User</li>
|
||||||
Program
|
<li>Assistant</li>
|
||||||
</li>
|
<li>Experiment</li>
|
||||||
<li>
|
<li>Semester Experiment</li>
|
||||||
Part
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
User
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Assistant
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Experiment
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Semester Experiment
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4>Optional values</h4>
|
<h4>Optional values</h4>
|
||||||
|
@ -71,9 +53,7 @@
|
||||||
None of the mentioned ids in the import file is meant as a database id. The ids here only refer to the imported instances. The id in the database is assigned automatically.
|
None of the mentioned ids in the import file is meant as a database id. The ids here only refer to the imported instances. The id in the database is assigned automatically.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>Here is the format of a table in the "Tables" section:</p>
|
||||||
Here is the format of a table in the "Tables" section:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h5>Table</h5>
|
<h5>Table</h5>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -81,41 +61,29 @@
|
||||||
id → 0 / 1 / 2 / ... (starts with 0 and has step
|
id → 0 / 1 / 2 / ... (starts with 0 and has step
|
||||||
1)
|
1)
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>attribute → example1 / example2 / ... (explanation)</li>
|
||||||
attribute → example1 / example2 / ... (explanation)
|
<li>...</li>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
...
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
The type of attributes can be seen in the drawio file
|
The type of attributes can be seen in the drawio file
|
||||||
<a
|
<a href="{{ url_for('static', filename='DB.drawio') }}">DB.drawio</a> which can be opened using
|
||||||
href="{{ url_for('static', filename='DB.drawio') }}"
|
<a href="https://www.diagrams.net/"
|
||||||
>
|
|
||||||
DB.drawio
|
|
||||||
</a> which can be opened using
|
|
||||||
<a
|
|
||||||
href="https://www.diagrams.net/"
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer">diagrams.net</a>. Some attributes have constraints marked also in the drawio file.
|
||||||
>
|
|
||||||
diagrams.net
|
|
||||||
</a>. Some attributes have constraints marked also in the drawio file.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>Tables</h4>
|
<h4>Tables</h4>
|
||||||
<h5>Semester (only one!)</h5>
|
<h5>Semester (only one!)</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>label → WS / SS</li>
|
||||||
label → WS / SS
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
year → 22 / 23 / ...
|
year → 22 / 23 / ...
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Part</h5>
|
<h5>
|
||||||
|
Part
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
id
|
id
|
||||||
|
@ -128,7 +96,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Student</h5>
|
<h5>
|
||||||
|
Student
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>student_number</code>
|
<code>student_number</code>
|
||||||
|
@ -171,7 +141,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h5>Group</h5>
|
<h5>
|
||||||
|
Group
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>id</code>
|
<code>id</code>
|
||||||
|
@ -184,7 +156,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>PartStudent</h5>
|
<h5>
|
||||||
|
PartStudent
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>student_number</code>
|
<code>student_number</code>
|
||||||
|
@ -197,7 +171,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Experiment</h5>
|
<h5>
|
||||||
|
Experiment
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>id</code>
|
<code>id</code>
|
||||||
|
@ -210,7 +186,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>GroupExperiment</h5>
|
<h5>
|
||||||
|
GroupExperiment
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>id</code>
|
<code>id</code>
|
||||||
|
@ -223,7 +201,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Appointment</h5>
|
<h5>
|
||||||
|
Appointment
|
||||||
|
</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<code>date</code> → 12.09.2022
|
<code>date</code> → 12.09.2022
|
||||||
|
|
Loading…
Reference in a new issue