Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wishlist-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZAHDI Mohcine
Wishlist-application
Commits
56a18783
Commit
56a18783
authored
2 months ago
by
BOUZAZI Firas
Browse files
Options
Downloads
Patches
Plain Diff
view changed
parent
0bfd13c4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/wishlist/index.html.twig
+117
-27
117 additions, 27 deletions
templates/wishlist/index.html.twig
templates/wishlist/new.html.twig
+44
-12
44 additions, 12 deletions
templates/wishlist/new.html.twig
with
161 additions
and
39 deletions
templates/wishlist/index.html.twig
+
117
−
27
View file @
56a18783
{%
extends
'base.html.twig'
%}
{%
extends
'base.html.twig'
%}
{%
block
title
%}
My Wishlists
{%
endblock
%}
{%
block
title
%}
My Wishlists
{%
endblock
%}
{%
block
body
%}
<style>
body
{
font-family
:
Arial
,
sans-serif
;
background
:
linear-gradient
(
135deg
,
#00B8DE
,
#99CC33
)
fixed
;
color
:
white
;
text-align
:
center
;
padding
:
20px
;
}
.container
{
max-width
:
800px
;
margin
:
auto
;
display
:
flex
;
flex-direction
:
column
;
gap
:
15px
;
}
header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
10px
;
}
.search-bar
{
padding
:
8px
;
border-radius
:
8px
;
border
:
2px
solid
#99CC33
;
}
.add-wishlist-btn
{
background
:
white
;
color
:
#00B8DE
;
padding
:
10px
15px
;
text-decoration
:
none
;
border-radius
:
8px
;
font-weight
:
bold
;
transition
:
0.3s
;
display
:
inline-block
;
margin
:
15px
0
;
}
.add-wishlist-btn
:hover
{
background
:
#99CC33
;
color
:
white
;
transform
:
scale
(
1.1
);
}
.wishlist
{
background
:
rgba
(
255
,
255
,
255
,
0.2
);
padding
:
15px
;
border-radius
:
10px
;
border
:
2px
solid
#99CC33
;
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0.2
);
width
:
100%
;
max-width
:
600px
;
margin
:
auto
;
}
.wishlist
h2
{
margin
:
10px
0
;
}
.wishlist-items
{
display
:
flex
;
gap
:
10px
;
justify-content
:
center
;
flex-wrap
:
wrap
;
}
.wishlist-item
{
background
:
white
;
color
:
#00B8DE
;
padding
:
10px
;
border-radius
:
5px
;
font-size
:
1.5em
;
}
.wishlist-actions
{
display
:
flex
;
gap
:
10px
;
justify-content
:
center
;
margin-top
:
10px
;
}
.wishlist-actions
button
{
background
:
white
;
border
:
none
;
padding
:
10px
;
border-radius
:
5px
;
cursor
:
pointer
;
transition
:
0.3s
;
}
.wishlist-actions
button
:hover
{
background
:
#99CC33
;
color
:
white
;
}
@media
(
max-width
:
768px
)
{
.wishlist
{
width
:
90%
;
}
}
</style>
{%
block
body
%}
<header>
<header>
<div
class=
"user-icon"
></div>
<div
class=
"user-icon"
></div>
<h1>
My Wishlists
</h1>
<h1>
My Wishlists
</h1>
<input
type=
"text"
class=
"search-bar"
placeholder=
"Search..."
>
<input
type=
"text"
class=
"search-bar"
placeholder=
"Search..."
>
</header>
</header>
<a
href=
"
{{
path
(
'app_wishlist_new'
)
}}
"
class=
"add-wishlist-btn"
>
Add wishlist
</a>
<a
href=
"
{{
path
(
'app_wishlist_new'
)
}}
"
class=
"add-wishlist-btn"
>
Add wishlist
</a>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
{%
for
wishlist
in
wishlists
%}
{%
for
wishlist
in
wishlists
%}
<div
class=
"wishlist"
>
<div
class=
"wishlist"
>
<h2>
{{
wishlist.name
}}
</h2>
<h2>
{{
wishlist.name
}}
</h2>
<div
class=
"wishlist-items"
>
<div
class=
"wishlist-items"
>
{%
for
item
in
wishlist.items
%}
{%
for
item
in
wishlist.items
%}
<div
class=
"wishlist-item"
>
📷
</div>
<div
class=
"wishlist-item"
>
📷
</div>
{%
endfor
%}
</div>
<p
class=
"wishlist-footer"
>
{{
wishlist.deadline
}}
</p>
<div
class=
"wishlist-actions"
>
<button
title=
"Share wishlist"
>
↗
</button>
<button
title=
"Edit title"
>
✏
</button>
<button
title=
"Delete wishlist"
>
🗑
</button>
</div>
</div>
{%
endfor
%}
{%
endfor
%}
</div>
<div
class=
"wishlist-actions"
>
<button
title=
"Share wishlist"
>
↗
</button>
<button
title=
"Edit title"
>
✏
</button>
<button
title=
"Delete wishlist"
>
🗑
</button>
</div>
</div>
</div>
{%
endblock
%}
{%
endfor
%}
</div>
{%
endblock
%}
This diff is collapsed.
Click to expand it.
templates/wishlist/new.html.twig
+
44
−
12
View file @
56a18783
{# templates/wishlist/new.html.twig #}
{%
extends
'base.html.twig'
%}
{%
extends
'base.html.twig'
%}
{%
block
title
%}
Create New Wishlist
{%
endblock
%}
{%
block
title
%}
Create New Wishlist
{%
endblock
%}
...
@@ -6,16 +5,30 @@
...
@@ -6,16 +5,30 @@
{%
block
stylesheets
%}
{%
block
stylesheets
%}
{{
parent
()
}}
{{
parent
()
}}
<style>
<style>
body
{
font-family
:
Arial
,
sans-serif
;
background
:
linear-gradient
(
135deg
,
#00B8DE
,
#99CC33
)
fixed
;
color
:
white
;
text-align
:
center
;
padding
:
20px
;
}
.container
{
max-width
:
800px
;
margin
:
auto
;
}
.wishlist-form
{
.wishlist-form
{
max-width
:
600px
;
max-width
:
600px
;
margin
:
0
auto
;
margin
:
0
auto
;
padding
:
20px
;
padding
:
20px
;
background-color
:
#f8f9fa
;
background
:
rgba
(
255
,
255
,
255
,
0.2
);
border-radius
:
8px
;
border-radius
:
10px
;
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
0.1
);
border
:
2px
solid
#99CC33
;
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0.2
);
backdrop-filter
:
blur
(
10px
);
}
}
.form-group
{
.form-group
{
margin-bottom
:
1.5rem
;
margin-bottom
:
1.5rem
;
text-align
:
left
;
}
}
.form-label
{
.form-label
{
display
:
block
;
display
:
block
;
...
@@ -25,7 +38,7 @@
...
@@ -25,7 +38,7 @@
.form-control
{
.form-control
{
width
:
100%
;
width
:
100%
;
padding
:
0.5rem
;
padding
:
0.5rem
;
border
:
1
px
solid
#
ced4da
;
border
:
2
px
solid
#
99CC33
;
border-radius
:
4px
;
border-radius
:
4px
;
font-size
:
1rem
;
font-size
:
1rem
;
}
}
...
@@ -44,16 +57,30 @@
...
@@ -44,16 +57,30 @@
font-size
:
1rem
;
font-size
:
1rem
;
}
}
.btn-primary
{
.btn-primary
{
background-color
:
#007bff
;
background-color
:
white
;
color
:
white
;
color
:
#00B8DE
;
border
:
none
;
border
:
2px
solid
#00B8DE
;
transition
:
0.3s
;
}
}
.btn-primary
:hover
{
.btn-primary
:hover
{
background-color
:
#0069d9
;
background-color
:
#99CC33
;
color
:
white
;
border-color
:
#99CC33
;
}
.btn-secondary
{
background-color
:
white
;
color
:
#99CC33
;
border
:
2px
solid
#99CC33
;
transition
:
0.3s
;
}
.btn-secondary
:hover
{
background-color
:
#00B8DE
;
color
:
white
;
border-color
:
#00B8DE
;
}
}
.form-help
{
.form-help
{
font-size
:
0.8rem
;
font-size
:
0.8rem
;
color
:
#
6c757d
;
color
:
#
e0e0e0
;
margin-top
:
0.25rem
;
margin-top
:
0.25rem
;
}
}
.error-message
{
.error-message
{
...
@@ -61,6 +88,11 @@
...
@@ -61,6 +88,11 @@
font-size
:
0.875rem
;
font-size
:
0.875rem
;
margin-top
:
0.25rem
;
margin-top
:
0.25rem
;
}
}
@media
(
max-width
:
768px
)
{
.wishlist-form
{
width
:
90%
;
}
}
</style>
</style>
{%
endblock
%}
{%
endblock
%}
...
@@ -92,8 +124,8 @@
...
@@ -92,8 +124,8 @@
<div
class=
"form-group mt-4"
>
<div
class=
"form-group mt-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Wishlist
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Wishlist
</button>
<a
href=
"
{{
path
(
'wishlist_index'
)
}}
"
class=
"btn btn-secondary ml-2"
>
Cancel
</a>
<a
href=
"
{{
path
(
'
app_
wishlist_index'
)
}}
"
class=
"btn btn-secondary ml-2"
>
Cancel
</a>
</div>
</div>
{{
form_end
(
form
)
}}
{{
form_end
(
form
)
}}
</div>
</div>
{%
endblock
%}
{%
endblock
%}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment