Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_someone here is possessed by an owl
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
Laetitia de Castro
widget_someone here is possessed by an owl
Commits
653d6958
Commit
653d6958
authored
May 25, 2022
by
Titia de Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added styles to announcement form
parent
7bf84245
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
6 deletions
+24
-6
new_announcement.html
announcements/templates/announcements/new_announcement.html
+3
-4
index.html
announcements/templates/index.html
+1
-1
db.sqlite3
db.sqlite3
+0
-0
announcements.css
static/announcements.css
+20
-1
No files found.
announcements/templates/announcements/new_announcement.html
View file @
653d6958
...
@@ -9,12 +9,11 @@
...
@@ -9,12 +9,11 @@
{% block content %}
{% block content %}
<h1
class=
"announcement-heading"
>
New Announcement
</h1>
<h1
class=
"announcement-heading"
>
New Announcement
</h1>
<form
action=
"{% url 'announcements:new-announcement' %}"
method=
"POST"
>
<form
action=
"{% url 'announcements:new-announcement' %}"
method=
"POST"
class=
"announcement-form"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<button
class=
"announcement-button"
type=
"submit"
>
Save Announcement
</button>
<button
class=
"announcement-button save-button"
type=
"submit"
>
Save Announcement
</button>
<button
class=
"announcement-button back-button"
type=
"button"
><a
href=
"/announcements"
>
Back to Announcements
</a></button>
</form>
</form>
<button
class=
"announcement-button"
type=
"submit"
><a
href=
"/announcements"
>
Back to Announcements
</a></button>
{% endblock %}
{% endblock %}
\ No newline at end of file
announcements/templates/index.html
View file @
653d6958
...
@@ -20,5 +20,5 @@
...
@@ -20,5 +20,5 @@
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
<a
href=
"/announcements/add"
class=
"
new-announcement
"
>
New Announcement
</a>
<a
href=
"/announcements/add"
class=
"
announcement-button
"
>
New Announcement
</a>
{% endblock %}
{% endblock %}
\ No newline at end of file
db.sqlite3
View file @
653d6958
No preview for this file type
static/announcements.css
View file @
653d6958
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
margin-bottom
:
24px
;
margin-bottom
:
24px
;
}
}
.new-announcement
{
.announcement-button
{
background-color
:
transparent
;
text-decoration
:
none
;
text-decoration
:
none
;
color
:
black
;
color
:
black
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -35,6 +36,20 @@
...
@@ -35,6 +36,20 @@
padding
:
8px
24px
;
padding
:
8px
24px
;
}
}
.announcement-button
a
{
text-decoration
:
none
;
color
:
black
;
}
.save-button
{
margin-top
:
32px
;
}
.back-button
{
margin-top
:
32px
;
margin-left
:
24px
;
}
.announcement-image
{
.announcement-image
{
width
:
20%
;
width
:
20%
;
}
}
...
@@ -66,3 +81,7 @@
...
@@ -66,3 +81,7 @@
.announcement-reactions
p
:last-child
{
.announcement-reactions
p
:last-child
{
color
:
#B72A3F
;
color
:
#B72A3F
;
}
}
.announcement-form
{
text-align
:
center
;
}
\ 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