Format template

This commit is contained in:
Mo 2023-02-25 20:47:34 +01:00
parent 70dea0440a
commit 1ac042ebee
2 changed files with 42 additions and 42 deletions

View file

@ -3,4 +3,4 @@ default_job = "clippy"
[jobs.clippy] [jobs.clippy]
command = ["cargo", "clippy", "-q", "--all-targets", "--color", "always", "--workspace"] command = ["cargo", "clippy", "-q", "--all-targets", "--color", "always", "--workspace"]
need_stdout = false need_stdout = false
watch = ["tests", "benches", "examples", "crates"] watch = ["tests", "benches", "examples", "crates", "templates"]

View file

@ -63,12 +63,12 @@
{% when None %} {% when None %}
{% endmatch %} {% endmatch %}
</div> </div>
{% endfor %} {% endfor %}
<div class="mb-2 mt-4"> <div class="mb-2 mt-4">
<img src="data:image/png;base64,{{ captcha }}"> <img src="data:image/png;base64,{{ captcha }}">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="captcha_answer" class="form-label">{{ strings.captcha_field.label }}</label> <label for="captcha_answer" class="form-label">{{ strings.captcha_field.label }}</label>
<input type="text" <input type="text"
name="captcha_answer" name="captcha_answer"
@ -76,16 +76,16 @@
id="captcha_answer" id="captcha_answer"
required> required>
<div class="invalid-feedback">{{ strings.captcha_field.required_feedback }}</div> <div class="invalid-feedback">{{ strings.captcha_field.required_feedback }}</div>
</div> </div>
{% if error_message.len() > 0 %} {% if error_message.len() > 0 %}
<div class="alert alert-warning" role="alert">{{ error_message }}</div> <div class="alert alert-warning" role="alert">{{ error_message }}</div>
{% endif %} {% endif %}
<div class="d-grid"> <div class="d-grid">
<button type="submit" class="btn btn-primary">{{ strings.submit }}</button> <button type="submit" class="btn btn-primary">{{ strings.submit }}</button>
</div> </div>
</form> </form>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}