1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +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): def missing_formatter(view, context, model, name):
attr = deep_getattr(model, name) attr = deep_getattr(model, name)
if attr is None: if attr is None:
return Markup("<span style='color:red'>MISSING</span>") return Markup("<span style='color: red;'>MISSING</span>")
return attr return attr

View file

@ -6,7 +6,7 @@ from .model_dependent_funs import selection_mark_field
class AssistantGroupExperimentFormBase(FlaskForm): 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): def assistant_group_experiment_form_factory(current_user, group_experiment):

View file

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

View file

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