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
6ca65205
Commit
6ca65205
authored
2 months ago
by
BOUZAZI Firas
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
679276f5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/wishlist/new.html.twig
+87
-55
87 additions, 55 deletions
templates/wishlist/new.html.twig
with
87 additions
and
55 deletions
templates/wishlist/new.html.twig
+
87
−
55
View file @
6ca65205
{%
extends
'base.html.twig'
%}
{%
extends
'base.html.twig'
%}
{%
block
title
%}
Item
{%
endblock
%}
{%
block
title
%}
Create New Wishlist
{%
endblock
%}
{%
block
stylesheets
%}
{%
block
stylesheets
%}
{{
parent
()
}}
{{
parent
()
}}
...
@@ -16,43 +16,81 @@
...
@@ -16,43 +16,81 @@
max-width
:
800px
;
max-width
:
800px
;
margin
:
auto
;
margin
:
auto
;
}
}
table
{
.wishlist-form
{
width
:
1
00
%
;
max-
width
:
6
00
px
;
background
:
rgba
(
255
,
255
,
255
,
0.15
)
;
margin
:
0
auto
;
border-collapse
:
collapse
;
padding
:
20px
;
margin-top
:
20px
;
background
:
rgba
(
255
,
255
,
255
,
0.2
)
;
border-radius
:
10px
;
border-radius
:
10px
;
overflow
:
hidden
;
border
:
2px
solid
#99CC33
;
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0.2
);
backdrop-filter
:
blur
(
10px
);
backdrop-filter
:
blur
(
10px
);
}
}
th
,
td
{
.form-group
{
padding
:
12px
;
margin-bottom
:
1.5rem
;
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0.3
);
text-align
:
left
;
color
:
white
;
}
}
th
{
.form-label
{
background-color
:
rgba
(
153
,
204
,
51
,
0.7
);
display
:
block
;
margin-bottom
:
0.5rem
;
font-weight
:
bold
;
}
}
a
.button-link
{
.form-control
{
display
:
inline-block
;
width
:
100%
;
margin
:
10px
;
padding
:
0.5rem
;
padding
:
10px
20px
;
text-decoration
:
none
;
border-radius
:
6px
;
border
:
2px
solid
#99CC33
;
border
:
2px
solid
#99CC33
;
border-radius
:
4px
;
font-size
:
1rem
;
}
.form-check
{
display
:
flex
;
align-items
:
center
;
margin-top
:
1rem
;
}
.form-check-input
{
margin-right
:
0.5rem
;
}
.btn
{
padding
:
0.5rem
1rem
;
border-radius
:
4px
;
cursor
:
pointer
;
font-size
:
1rem
;
}
.btn-primary
{
background-color
:
white
;
color
:
#00B8DE
;
border
:
2px
solid
#00B8DE
;
transition
:
0.3s
;
}
.btn-primary
:hover
{
background-color
:
#99CC33
;
color
:
white
;
border-color
:
#99CC33
;
}
.btn-secondary
{
background-color
:
white
;
background-color
:
white
;
color
:
#99CC33
;
color
:
#99CC33
;
transition
:
all
0.3s
;
border
:
2px
solid
#99CC33
;
transition
:
0.3s
;
}
}
a
.b
utton-link
:hover
{
.b
tn-secondary
:hover
{
background-color
:
#00B8DE
;
background-color
:
#00B8DE
;
color
:
white
;
color
:
white
;
border-color
:
#00B8DE
;
border-color
:
#00B8DE
;
}
}
.form-help
{
font-size
:
0.8rem
;
color
:
#e0e0e0
;
margin-top
:
0.25rem
;
}
.error-message
{
color
:
#dc3545
;
font-size
:
0.875rem
;
margin-top
:
0.25rem
;
}
@media
(
max-width
:
768px
)
{
@media
(
max-width
:
768px
)
{
table
,
th
,
td
{
.wishlist-form
{
font-size
:
0.9rem
;
width
:
90%
;
}
}
}
}
</style>
</style>
...
@@ -60,40 +98,34 @@
...
@@ -60,40 +98,34 @@
{%
block
body
%}
{%
block
body
%}
<div
class=
"container"
>
<div
class=
"container"
>
<h1>
Item Details
</h1>
<h1
class=
"my-4"
>
Create New Wishlist
</h1>
{{
form_start
(
form
,
{
'attr'
:
{
'class'
:
'wishlist-form'
}}
) }}
<div
class=
"form-group"
>
{{
form_label
(
form.name
)
}}
{{
form_widget
(
form.name
,
{
'attr'
:
{
'class'
:
'form-control'
}}
) }}
{{
form_errors
(
form.name
)
}}
<small
class=
"form-help"
>
Give your wishlist a descriptive name
</small>
</div>
<table>
<div
class=
"form-group"
>
<tbody>
{{
form_label
(
form.deadline
)
}}
<tr>
{{
form_widget
(
form.deadline
,
{
'attr'
:
{
'class'
:
'form-control'
}}
) }}
<th>
Id
</th>
{{
form_errors
(
form.deadline
)
}}
<td>
{{
item.id
}}
</td>
<small
class=
"form-help"
>
Optional - set a deadline for this wishlist
</small>
</tr>
</div>
<tr>
<th>
Title
</th>
<td>
{{
item.title
}}
</td>
</tr>
<tr>
<th>
Description
</th>
<td>
{{
item.description
}}
</td>
</tr>
<tr>
<th>
Url
</th>
<td>
{{
item.url
}}
</td>
</tr>
<tr>
<th>
Image
</th>
<td><img
src=
"
{{
asset
(
'uploads/'
~
item.image
)
}}
"
alt=
"
{{
item.title
}}
"
style=
"max-width: 100px; border-radius: 8px;"
></td>
</tr>
<tr>
<th>
Price
</th>
<td>
{{
item.price
}}
€
</td>
</tr>
</tbody>
</table>
<a
href=
"
{{
path
(
'app_item_index'
)
}}
"
class=
"button-link"
>
Back to list
</a>
<div
class=
"form-check"
>
<a
href=
"
{{
path
(
'app_item_edit'
,
{
'id'
:
item.id
}
)
}}
"
class=
"button-link"
>
Edit
</a>
{{
form_widget
(
form.isDisabled
,
{
'attr'
:
{
'class'
:
'form-check-input'
}}
) }}
{{
form_label
(
form.isDisabled
)
}}
{{
form_errors
(
form.isDisabled
)
}}
</div>
<small
class=
"form-help"
>
Disabled wishlists won't be visible to others
</small>
{{
include
(
'item/_delete_form.html.twig'
)
}}
<div
class=
"form-group mt-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Wishlist
</button>
<a
href=
"
{{
path
(
'app_wishlist_index'
)
}}
"
class=
"btn btn-secondary ml-2"
>
Cancel
</a>
</div>
{{
form_end
(
form
)
}}
</div>
</div>
{%
endblock
%}
{%
endblock
%}
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