image required; cleaner log

This commit is contained in:
philipp 2023-11-02 18:59:33 +01:00
parent c11b73b7e6
commit 27e40783e1
2 changed files with 10 additions and 4 deletions

View File

@ -139,7 +139,10 @@ async fn new_thirty(
Log::create(
db,
format!("{created_by:?} created thirty-ergo entry: {data:?}"),
format!(
"{} created thirty-ergo entry: {data:?}",
created_by.user.name
),
)
.await;
@ -176,7 +179,10 @@ async fn new_dozen(
Log::create(
db,
format!("{created_by:?} created dozen-ergo entry: {data:?}"),
format!(
"{} created dozen-ergo entry: {data:?}",
created_by.user.name
),
)
.await;

View File

@ -20,7 +20,7 @@
{% endfor %}
</select>
{{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }}
<input type="file" name="proof" class="input">
<input type="file" name="proof" class="input" required="required">
<input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/>
</form>
</div>
@ -40,7 +40,7 @@
{% endfor %}
</select>
{{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }}
<input type="file" name="proof" class="input">
<input type="file" name="proof" class="input" required="required">
<input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/>
</form>
</div>