Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_quintupoltrobol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matthew Karl David P. Arpas
final_quintupoltrobol
Commits
b6995a3c
Commit
b6995a3c
authored
May 14, 2023
by
Michael Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the edit announcement button, created and edited the announcement-edit.html
parent
109e1fb8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
urls.cpython-39.pyc
...tupoltrobol/announcements/__pycache__/urls.cpython-39.pyc
+0
-0
announcement-detail.html
...ncements/templates/announcements/announcement-detail.html
+2
-2
announcement-edit.html
...ouncements/templates/announcements/announcement-edit.html
+15
-0
urls.py
widget_quintupoltrobol/announcements/urls.py
+1
-1
No files found.
widget_quintupoltrobol/announcements/__pycache__/urls.cpython-39.pyc
View file @
b6995a3c
No preview for this file type
widget_quintupoltrobol/announcements/templates/announcements/announcement-detail.html
View file @
b6995a3c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
Love: {{love_count}}
<br><br>
Love: {{love_count}}
<br><br>
Angry: {{angry_count}}
</p>
Angry: {{angry_count}}
</p>
<br>
<br>
<form
action=
'edit'
>
<form
method=
"get"
action=
"{% url 'announcements:announcement_edit' pk=object.pk %}"
>
<
input
type=
"submit"
value=
"Edit Announcement"
/
>
<
button
type=
"submit"
>
Edit Announcement
</button
>
</form>
</form>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_quintupoltrobol/announcements/templates/announcements/announcement-edit.html
0 → 100644
View file @
b6995a3c
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Announcement {% endblock %}
{% block content %}
<h2>
Edit announcement:
</h2>
<p>
<form
action=
''
method=
"POST"
>
{% csrf_token %}
<p>
Title: {{form.title}}
</p><br>
<p>
Body:
<br>
{{form.body}}
</p><br>
<p>
Author: {{form.author}}
</p><br>
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
</form>
</p>
{% endblock %}
\ No newline at end of file
widget_quintupoltrobol/announcements/urls.py
View file @
b6995a3c
...
@@ -5,7 +5,7 @@ urlpatterns = [
...
@@ -5,7 +5,7 @@ urlpatterns = [
path
(
''
,
pageview
,
name
=
'pageview'
),
path
(
''
,
pageview
,
name
=
'pageview'
),
path
(
'<int:pk>/details/'
,
AnnouncementDetailView
.
as_view
(),
name
=
"announcement_details"
),
path
(
'<int:pk>/details/'
,
AnnouncementDetailView
.
as_view
(),
name
=
"announcement_details"
),
path
(
'add/'
,
AnnouncementCreateView
.
as_view
(),
name
=
'announcement_add'
),
path
(
'add/'
,
AnnouncementCreateView
.
as_view
(),
name
=
'announcement_add'
),
path
(
'<int:pk>/edit'
,
AnnouncementEditView
.
as_view
(),
name
=
'announcement_edit'
),
path
(
'<int:pk>/edit
/
'
,
AnnouncementEditView
.
as_view
(),
name
=
'announcement_edit'
),
]
]
app_name
=
"announcements"
app_name
=
"announcements"
\ No newline at end of file
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