mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Set width property
This commit is contained in:
parent
0402d71db7
commit
1142cd99b5
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ def mark_field(mark_type: str):
|
||||||
@cache
|
@cache
|
||||||
def selection_mark_field_choices():
|
def selection_mark_field_choices():
|
||||||
choices = [(mark, str(mark)) for mark in range(MAX_MARK, MIN_MARK - 1, -1)]
|
choices = [(mark, str(mark)) for mark in range(MAX_MARK, MIN_MARK - 1, -1)]
|
||||||
choices.insert(0, (-1, "Not assigned yet"))
|
choices.insert(0, (-1, "Not set yet"))
|
||||||
|
|
||||||
return choices
|
return choices
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ def selection_mark_field(mark_type: str, default):
|
||||||
default=default,
|
default=default,
|
||||||
choices=choices,
|
choices=choices,
|
||||||
validators=[DataRequired()],
|
validators=[DataRequired()],
|
||||||
render_kw={"class": "form-control"},
|
render_kw={"class": "form-control", "style": "width:auto;"},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ from .models import Semester
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def util_processor():
|
def util_processor():
|
||||||
author_email = "mobitar@students.uni-mainz.de"
|
author_email = "mobitar@students.uni-mainz.de"
|
||||||
footer = f"<hr><p style='font-size:14px'>This website is still under development (beta release)! If you have any questions, find any bugs or want some feature, please write a formless email (german/english) to Mo Bitar: <a href='mailto:{author_email}'>{author_email}</a>. Feedback is also welcome :)</p><br>"
|
footer = f"<hr><p style='font-size:14px;'>This website is still under development (beta release)! If you have any questions, find any bugs or want some feature, please write a formless email (german/english) to Mo Bitar: <a href='mailto:{author_email}'>{author_email}</a>. Feedback is also welcome :)</p><br>"
|
||||||
return dict(active_semester_str=active_semester_str, current_user=current_user, footer=footer)
|
return dict(active_semester_str=active_semester_str, current_user=current_user, footer=footer)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue