1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Change Submit to save

This commit is contained in:
Mo 2022-06-28 03:53:17 +02:00
parent 856c394aeb
commit e92c7fe127
4 changed files with 7 additions and 6 deletions

View file

@ -30,7 +30,7 @@ def deep_getattr(object, composed_name):
def missing_formatter(view, context, model, name):
attr = deep_getattr(model, name)
if attr is None:
return Markup("<span style='color:red'>MISSING</span>")
return Markup("<span style='color: red;'>MISSING</span>")
return attr

View file

@ -6,7 +6,7 @@ from .model_dependent_funs import selection_mark_field
class AssistantGroupExperimentFormBase(FlaskForm):
submit = SubmitField(label="Submit", render_kw={"class": "btn btn-success"})
submit = SubmitField(label="Save", render_kw={"class": "btn btn-primary btn-block"})
def assistant_group_experiment_form_factory(current_user, group_experiment):

View file

@ -102,7 +102,7 @@
</td>
<td>
{% if final_experiment_mark is none %}
<span style='color:red'><strong>None</strong></span>
<span style='color: red;'><strong>None</strong></span>
{% else %}
{{ final_experiment_mark }}
{% endif %}
@ -128,6 +128,8 @@
</div>
</div>
<br>
{{ form.submit }}
</form>
@ -140,5 +142,6 @@
It is for information related to the experiment and group.
Examples: Protocol received, submission until ..., etc.</p>
</font>
{{ footer|safe }}
{% endblock body %}

View file

@ -1,3 +1 @@
<div class="paragraph">
<p>Coming soon&#8230;&#8203;</p>
</div>
<p>Coming soon...</p>