Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
5931351c
Commit
5931351c
authored
Oct 12, 2016
by
Skia
🤘
Browse files
Another tiny template improvement
parent
0d8bebcd
Pipeline
#292
failed with stage
in 3 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/static/core/style.css
View file @
5931351c
...
...
@@ -154,6 +154,11 @@ code {
display
:
inline-block
;
margin
:
4px
;
}
.important
{
font-size
:
1.2em
;
font-weight
:
bold
;
color
:
red
;
}
table
{
width
:
100%
;
font-size
:
0.90em
;
...
...
counter/templates/counter/counter_click.jinja
View file @
5931351c
...
...
@@ -34,18 +34,20 @@
<div
id=
"bar_ui"
>
<h5>
{%
trans
%}
Selling
{%
endtrans
%}
</h5>
<div>
{%
if
request.session
[
'too_young'
]
%}
<p><strong>
{%
trans
%}
Too young for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_allowed'
]
%}
<p><strong>
{%
trans
%}
Not allowed for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'no_age'
]
%}
<p><strong>
{%
trans
%}
No date of birth provided
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_enough'
]
%}
<p><strong>
{%
trans
%}
Not enough money
{%
endtrans
%}
</strong></p>
{%
endif
%}
<div
class=
"important"
>
{%
if
request.session
[
'too_young'
]
%}
<p><strong>
{%
trans
%}
Too young for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_allowed'
]
%}
<p><strong>
{%
trans
%}
Not allowed for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'no_age'
]
%}
<p><strong>
{%
trans
%}
No date of birth provided
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_enough'
]
%}
<p><strong>
{%
trans
%}
Not enough money
{%
endtrans
%}
</strong></p>
{%
endif
%}
</div>
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"code"
>
...
...
@@ -66,6 +68,20 @@
{%
endfor
%}
</ul>
<p><strong>
{%
trans
%}
Total:
{%
endtrans
%}{{
"%0.2f"
|
format
(
basket_total
)
}}
€
</strong></p>
<div
class=
"important"
>
{%
if
request.session
[
'too_young'
]
%}
<p><strong>
{%
trans
%}
Too young for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_allowed'
]
%}
<p><strong>
{%
trans
%}
Not allowed for that product
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'no_age'
]
%}
<p><strong>
{%
trans
%}
No date of birth provided
{%
endtrans
%}
</strong></p>
{%
endif
%}
{%
if
request.session
[
'not_enough'
]
%}
<p><strong>
{%
trans
%}
Not enough money
{%
endtrans
%}
</strong></p>
{%
endif
%}
</div>
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"finish"
>
...
...
Write
Preview
Supports
Markdown
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