Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uca-l2_web-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rin BAUDELET
uca-l2_web-server
Commits
35c514ea
Verified
Commit
35c514ea
authored
May 26, 2022
by
Rin BAUDELET
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug that make user unable to update the type of sticker
parent
48bce4c7
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/htmlPages/part/listSticker.ftl
+3
-3
3 additions, 3 deletions
src/main/resources/htmlPages/part/listSticker.ftl
with
3 additions
and
3 deletions
src/main/resources/htmlPages/part/listSticker.ftl
+
3
−
3
View file @
35c514ea
...
@@ -19,12 +19,12 @@
...
@@ -19,12 +19,12 @@
<#if is_login == true>
<#if is_login == true>
<form class="component-edit" onsubmit="return updateComponent(this, $
{
sticker
.id
}
, '/students/$
{
student
.id
}
/stickers');">
<form class="component-edit" onsubmit="return updateComponent(this, $
{
sticker
.id
}
, '/students/$
{
student
.id
}
/stickers');">
<label class="component-edit-selector">
<label class="component-edit-selector">
<select name="
color
">
<select name="
type
">
<#list sticker_types as type>
<#list sticker_types as type>
<#if type.id == sticker.type.id>
<#if type.id == sticker.type.id>
<option selected value="$
{
type
.
color
}
">$
{
type
.description
}
</option>
<option selected value="$
{
type
.
id
}
">$
{
type
.description
}
</option>
<#else>
<#else>
<option value="$
{
type
.
color
}
">$
{
type
.description
}
</option>
<option value="$
{
type
.
id
}
">$
{
type
.description
}
</option>
</#if>
</#if>
</#list>
</#list>
</select>
</select>
...
...
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