-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are also some new generic templates, `shelf/accession_entry.htm` and `includes/form_errors.htm`, that can be reused in other places if required.
- Loading branch information
1 parent
e6683c6
commit 9722944
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% if error or form.errors%} | ||
<ul style="color: red"> | ||
<li>{{error}}</li> | ||
{% for field_name, field_errors in form.errors|dictsort if field_errors %} | ||
{% for error in field_errors %} | ||
<li>{{error}}</li> | ||
{% endfor %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'base.htm' %} | ||
{% block content %} | ||
<form action="{{url_for('user_return', borrowid=borrowing.id)}}" method="POST"> | ||
{% include 'includes/form_errors.htm' %} | ||
{{form.csrf_token}} | ||
<p>{{message}}</p> | ||
{{form.accession}} | ||
<a href="{{ return_url if return_url else url_for('user_shelf') }}">Back</a> | ||
<input type="submit" value="{{ submit_button_text if submit_button_text else 'OK' }}" /> | ||
</form> | ||
{% endblock %} |