diff --git a/advlabdb/forms.py b/advlabdb/forms.py index fc54069..148741c 100644 --- a/advlabdb/forms.py +++ b/advlabdb/forms.py @@ -6,7 +6,7 @@ from .model_dependent_funs import selection_mark_field class AssistantGroupExperimentFormBase(FlaskForm): - submit = SubmitField(label="Save", render_kw={"class": "btn btn-primary btn-block"}) + submit = SubmitField(label="Save") def assistant_group_experiment_form_factory(current_user, group_experiment): @@ -15,7 +15,6 @@ def assistant_group_experiment_form_factory(current_user, group_experiment): "Note", default=group_experiment.note, validators=[Optional()], - render_kw={"class": "form-control"}, ) appointments = group_experiment.appointments @@ -35,7 +34,6 @@ def assistant_group_experiment_form_factory(current_user, group_experiment): default=appointment.date, validators=[DataRequired()], description=description, - render_kw={"class": "form-control"}, ), ) appointment_num += 1 diff --git a/advlabdb/model_dependent_funs.py b/advlabdb/model_dependent_funs.py index 7a33582..061d97d 100644 --- a/advlabdb/model_dependent_funs.py +++ b/advlabdb/model_dependent_funs.py @@ -54,7 +54,6 @@ def selection_mark_field(mark_type: str, default): default=default, choices=choices, validators=[DataRequired()], - render_kw={"class": "form-control", "style": "width:auto;"}, ) diff --git a/advlabdb/templates/assistant_group_experiment_form.jinja.html b/advlabdb/templates/assistant_group_experiment_form.jinja.html index bafae44..d30d3d5 100644 --- a/advlabdb/templates/assistant_group_experiment_form.jinja.html +++ b/advlabdb/templates/assistant_group_experiment_form.jinja.html @@ -83,7 +83,7 @@ {% for appointment_field in appointment_fields %}