1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Set width property

This commit is contained in:
Mo 2022-06-27 22:09:17 +02:00
parent 0402d71db7
commit 1142cd99b5
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ def mark_field(mark_type: str):
@cache
def selection_mark_field_choices():
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
@ -73,7 +73,7 @@ def selection_mark_field(mark_type: str, default):
default=default,
choices=choices,
validators=[DataRequired()],
render_kw={"class": "form-control"},
render_kw={"class": "form-control", "style": "width:auto;"},
)

View file

@ -9,7 +9,7 @@ from .models import Semester
@app.context_processor
def util_processor():
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)