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
d02e2cd2
Commit
d02e2cd2
authored
May 25, 2022
by
Anya Habana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added css design elements for buttons
parent
7179931b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
db.sqlite3
db.sqlite3
+0
-0
newuser.html
homepage/templates/users/newuser.html
+4
-4
users.html
homepage/templates/users/users.html
+4
-6
homepage.css
static/homepage.css
+7
-1
No files found.
db.sqlite3
View file @
d02e2cd2
No preview for this file type
homepage/templates/users/newuser.html
View file @
d02e2cd2
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
{% block content %}
{% block content %}
<h1
class=
"homepage-heading"
>
Add Widget User
</h1>
<h1
class=
"homepage-heading"
>
Add Widget User
</h1>
<form
class=
"homepage-form"
action=
"{% url 'homepage:newuser' %}"
method=
"POST"
>
<form
action=
"{% url 'homepage:newuser' %}"
method=
"POST"
>
{% csrf_token %}
{% csrf_token %}
{{ user_form }}
{{ user_form
.as_p
}}
<button
class=
"button"
type=
"submit"
>
Save New User
</button>
<button
class=
"
homepage-
button"
type=
"submit"
>
Save New User
</button>
</form>
</form>
<button
class=
"button"
type=
"submit"
><a
href=
"/homepage"
>
Back to Homepage
</a></button>
<button
class=
"
homepage-
button"
type=
"submit"
><a
href=
"/homepage"
>
Back to Homepage
</a></button>
{% endblock %}
{% endblock %}
\ No newline at end of file
homepage/templates/users/users.html
View file @
d02e2cd2
...
@@ -19,10 +19,8 @@
...
@@ -19,10 +19,8 @@
<img
src=
"{% static 'user3.jpeg' %}"
class=
"homepage-image"
alt=
"Bruno Mars"
>
<img
src=
"{% static 'user3.jpeg' %}"
class=
"homepage-image"
alt=
"Bruno Mars"
>
{% endif %}
{% endif %}
<ul>
<p>
ID: {{ widgetuser.id }}
</p>
<p>
ID: {{ widgetuser.id }}
</p>
<p>
Email: {{ widgetuser.email }}
</p>
<p>
Email: {{ widgetuser.email }}
</p>
<p>
Department Name: {{ widgetuser.department.dept_name }}
</p>
<p>
Department Name: {{ widgetuser.department.dept_name }}
</p>
<p>
Home Unit: {{ widgetuser.department.home_unit }}
</p>
<p>
Home Unit: {{ widgetuser.department.home_unit }}
</p>
</ul>
{% endblock %}
{% endblock %}
static/homepage.css
View file @
d02e2cd2
...
@@ -17,6 +17,12 @@
...
@@ -17,6 +17,12 @@
font-size
:
24px
;
font-size
:
24px
;
}
}
.
announcement
-image
{
.
homepage
-image
{
width
:
20%
;
width
:
20%
;
}
}
.homepage-button
{
padding
:
10px
16px
;
display
:
inline-block
;
text-decoration
:
none
;
}
\ 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