mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-04 22:40:30 +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 %}
|
||||
{% for error in form.file.errors %}
|
||||
<div class="alert alert-danger">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<strong>Error!</strong> {{ error }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -22,42 +22,24 @@
|
|||
</p>
|
||||
<p>
|
||||
You can take a look at the file
|
||||
<a
|
||||
href="{{ url_for('static', filename='example_database_import.txt') }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<a href="{{ url_for('static', filename='example_database_import.txt') }}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
example_database_import.txt
|
||||
</a>
|
||||
for an example.
|
||||
</p>
|
||||
|
||||
<h4>Required manipulation using the web interface</h4>
|
||||
<p>
|
||||
The following tables can not be imported from a file and have to be manipulated using the web interface.
|
||||
</p>
|
||||
<p>The following tables can not be imported from a file and have to be manipulated using the web interface.</p>
|
||||
<ul>
|
||||
<li>
|
||||
Semester
|
||||
</li>
|
||||
<li>
|
||||
Program
|
||||
</li>
|
||||
<li>
|
||||
Part
|
||||
</li>
|
||||
<li>
|
||||
User
|
||||
</li>
|
||||
<li>
|
||||
Assistant
|
||||
</li>
|
||||
<li>
|
||||
Experiment
|
||||
</li>
|
||||
<li>
|
||||
Semester Experiment
|
||||
</li>
|
||||
<li>Semester</li>
|
||||
<li>Program</li>
|
||||
<li>Part</li>
|
||||
<li>User</li>
|
||||
<li>Assistant</li>
|
||||
<li>Experiment</li>
|
||||
<li>Semester Experiment</li>
|
||||
</ul>
|
||||
|
||||
<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.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Here is the format of a table in the "Tables" section:
|
||||
</p>
|
||||
<p>Here is the format of a table in the "Tables" section:</p>
|
||||
|
||||
<h5>Table</h5>
|
||||
<ul>
|
||||
|
@ -81,41 +61,29 @@
|
|||
id → 0 / 1 / 2 / ... (starts with 0 and has step
|
||||
1)
|
||||
</li>
|
||||
<li>
|
||||
attribute → example1 / example2 / ... (explanation)
|
||||
</li>
|
||||
<li>
|
||||
...
|
||||
</li>
|
||||
<li>attribute → example1 / example2 / ... (explanation)</li>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
<p>
|
||||
The type of attributes can be seen in the drawio file
|
||||
<a
|
||||
href="{{ url_for('static', filename='DB.drawio') }}"
|
||||
>
|
||||
DB.drawio
|
||||
</a> which can be opened using
|
||||
<a
|
||||
href="https://www.diagrams.net/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
diagrams.net
|
||||
</a>. Some attributes have constraints marked also in the drawio file.
|
||||
<a href="{{ url_for('static', filename='DB.drawio') }}">DB.drawio</a> which can be opened using
|
||||
<a href="https://www.diagrams.net/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">diagrams.net</a>. Some attributes have constraints marked also in the drawio file.
|
||||
</p>
|
||||
|
||||
<h4>Tables</h4>
|
||||
<h5>Semester (only one!)</h5>
|
||||
<ul>
|
||||
<li>
|
||||
label → WS / SS
|
||||
</li>
|
||||
<li>label → WS / SS</li>
|
||||
<li>
|
||||
year → 22 / 23 / ...
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>Part</h5>
|
||||
<h5>
|
||||
Part
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
id
|
||||
|
@ -128,7 +96,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>Student</h5>
|
||||
<h5>
|
||||
Student
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>student_number</code>
|
||||
|
@ -171,7 +141,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<h5>Group</h5>
|
||||
<h5>
|
||||
Group
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id</code>
|
||||
|
@ -184,7 +156,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>PartStudent</h5>
|
||||
<h5>
|
||||
PartStudent
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>student_number</code>
|
||||
|
@ -197,7 +171,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>Experiment</h5>
|
||||
<h5>
|
||||
Experiment
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id</code>
|
||||
|
@ -210,7 +186,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>GroupExperiment</h5>
|
||||
<h5>
|
||||
GroupExperiment
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>id</code>
|
||||
|
@ -223,7 +201,9 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<h5>Appointment</h5>
|
||||
<h5>
|
||||
Appointment
|
||||
</h5>
|
||||
<ul>
|
||||
<li>
|
||||
<code>date</code> → 12.09.2022
|
||||
|
|
Loading…
Reference in a new issue