When user not found, redirect to users page and show flash message

This commit is contained in:
leigh-mil
2019-08-09 10:36:04 -04:00
parent 43855c5495
commit fa83dfe6bd
5 changed files with 10 additions and 15 deletions

View File

@@ -30,15 +30,5 @@
</a>
</div>
</form>
{% else %}
<h3>{{ 'ccpo.form.user_not_found_title' | translate }}</h3>
<p>
{{ "ccpo.form.user_not_found_text" | translate }}
</p>
<div class='action-group'>
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.users') }}">
{{ "ccpo.form.return_link" | translate }}
</a>
</div>
{% endif %}
{% endblock %}