Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e3a25fe6
authored
Dec 17, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: display form errors
parent
2b196549
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
circle/dashboard/templates/dashboard/lease-edit.html
+3
-0
circle/dashboard/templates/dashboard/template-edit.html
+3
-0
circle/dashboard/templates/display-form-errors.html
+9
-0
No files found.
circle/dashboard/templates/dashboard/lease-edit.html
View file @
e3a25fe6
...
...
@@ -11,6 +11,9 @@
<h3
class=
"no-margin"
><i
class=
"icon-desktop"
></i>
Edit lease
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
{% include "display-form-errors.html" %}
{% endwith %}
{% crispy form %}
</div>
</div>
...
...
circle/dashboard/templates/dashboard/template-edit.html
View file @
e3a25fe6
...
...
@@ -11,6 +11,9 @@
<h3
class=
"no-margin"
><i
class=
"icon-desktop"
></i>
Edit template
</h3>
</div>
<div
class=
"panel-body"
>
{% with form=form %}
{% include "display-form-errors.html" %}
{% endwith %}
{% crispy form %}
</div>
</div>
...
...
circle/dashboard/templates/display-form-errors.html
0 → 100644
View file @
e3a25fe6
{% if form.errors %}
<div
class=
"alert alert-danger"
>
{% for field in form %}
{% if field.errors %}
<div><strong>
{{ field.label }}
</strong>
: {{ field.errors|striptags }}
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment