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
e2c78385
Commit
e2c78385
authored
2 months ago
by
BOUZAZI Firas
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
6ca65205
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
+31
-14
31 additions, 14 deletions
templates/wishlist/index.html.twig
templates/wishlist/new.html.twig
+3
-2
3 additions, 2 deletions
templates/wishlist/new.html.twig
with
34 additions
and
16 deletions
templates/wishlist/index.html.twig
+
31
−
14
View file @
e2c78385
{%
extends
'base.html.twig'
%}
{%
block
title
%}
My Wishlists
{%
endblock
%}
{%
block
title
%}
My Wishlists
{%
endblock
%}
{%
block
body
%}
<style>
...
...
@@ -71,6 +71,11 @@
border-radius
:
5px
;
font-size
:
1.5em
;
}
.wishlist-footer
{
margin-top
:
10px
;
font-size
:
0.9em
;
color
:
#e0f7fa
;
}
.wishlist-actions
{
display
:
flex
;
gap
:
10px
;
...
...
@@ -106,19 +111,31 @@
<div
class=
"container"
>
{%
for
wishlist
in
wishlists
%}
<div
class=
"wishlist"
>
<h2>
{{
wishlist.name
}}
</h2>
<div
class=
"wishlist-items"
>
{%
for
item
in
wishlist.items
%}
<div
class=
"wishlist-item"
>
📷
</div>
{%
endfor
%}
</div>
<div
class=
"wishlist-actions"
>
<button
title=
"Share wishlist"
>
↗
</button>
<button
title=
"Edit title"
>
✏
</button>
<button
title=
"Delete wishlist"
>
🗑
</button>
<div
class=
"wishlist"
>
<h2>
<a
href=
"
{{
path
(
'app_wishlist_show'
,
{
'id'
:
wishlist.id
}
)
}}
"
>
{{
wishlist.name
}}
</a>
</h2>
<div
class=
"wishlist-items"
>
{%
for
item
in
wishlist.items
%}
<div
class=
"wishlist-item"
>
📷
</div>
{%
else
%}
<p
class=
"empty-state"
>
No items yet.
</p>
{%
endfor
%}
</div>
<p
class=
"wishlist-footer"
>
{{
wishlist.deadline
?
wishlist.deadline
|
date
(
'Y-m-d'
)
:
'No deadline'
}}
</p>
<div
class=
"wishlist-actions"
>
<button
title=
"Share wishlist"
>
↗
</button>
<button
title=
"Edit title"
>
✏
</button>
<button
title=
"Delete wishlist"
>
🗑
</button>
</div>
</div>
</div>
{%
else
%}
<p>
You have no wishlists yet. Start by
<a
href=
"
{{
path
(
'app_wishlist_new'
)
}}
"
>
creating one
</a>
.
</p>
{%
endfor
%}
</div>
{%
endblock
%}
{%
endblock
%}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/wishlist/new.html.twig
+
3
−
2
View file @
e2c78385
{# templates/wishlist/new.html.twig #}
{%
extends
'base.html.twig'
%}
{%
block
title
%}
Create New Wishlist
{%
endblock
%}
...
...
@@ -99,7 +100,7 @@
{%
block
body
%}
<div
class=
"container"
>
<h1
class=
"my-4"
>
Create New Wishlist
</h1>
{{
form_start
(
form
,
{
'attr'
:
{
'class'
:
'wishlist-form'
}}
) }}
<div
class=
"form-group"
>
{{
form_label
(
form.name
)
}}
...
...
@@ -128,4 +129,4 @@
</div>
{{
form_end
(
form
)
}}
</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