Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
67650bec
Unverified
Commit
67650bec
authored
Mar 26, 2017
by
David Haynes
Browse files
Fix: Render the form again correctly on error
- forgot to update the template name
parent
ed835333
Pipeline
#1147
passed with stage
in 1 minute and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/templates/core/index.html
View file @
67650bec
...
...
@@ -23,7 +23,7 @@ SRCT Go • My Links
</div>
</div>
<div
class=
"newlink"
style=
"text-align: right;"
>
<a
href=
"{% url '
index
' %}"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
Add new link
</a>
<a
href=
"{% url '
new_link
' %}"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
Add new link
</a>
</div>
</div>
...
...
go/go/views.py
View file @
67650bec
...
...
@@ -93,7 +93,7 @@ def new_link(request):
# Else, there is an error, redisplay the form with the validation errors
else
:
# Render index.html passing the form to the template
return
render
(
request
,
'core/
index
.html'
,
{
return
render
(
request
,
'core/
new_link
.html'
,
{
'form'
:
url_form
,
})
...
...
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