Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
fc170cfc
Commit
fc170cfc
authored
Jul 29, 2016
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unwanted templates
parent
ef17e663
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
280 deletions
+0
-280
launderette/templates/launderette/counter_click.jinja
launderette/templates/launderette/counter_click.jinja
+0
-79
launderette/templates/launderette/counter_edit.jinja
launderette/templates/launderette/counter_edit.jinja
+0
-13
launderette/templates/launderette/counter_main.jinja
launderette/templates/launderette/counter_main.jinja
+0
-55
launderette/templates/launderette/product_list.jinja
launderette/templates/launderette/product_list.jinja
+0
-23
launderette/templates/launderette/producttype_list.jinja
launderette/templates/launderette/producttype_list.jinja
+0
-24
launderette/templates/launderette/user_account.jinja
launderette/templates/launderette/user_account.jinja
+0
-86
No files found.
launderette/templates/launderette/counter_click.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/base.jinja"
%}
{%
macro
add_product
(
id
,
content
)
%}
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
class=
"inline"
style=
"display:inline"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"add_product"
>
<button
type=
"submit"
name=
"product_id"
value=
"
{{
id
}}
"
>
{{
content
}}
</button>
</form>
{%
endmacro
%}
{%
macro
del_product
(
id
,
content
)
%}
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
class=
"inline"
style=
"display:inline"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"del_product"
>
<button
type=
"submit"
name=
"product_id"
value=
"
{{
id
}}
"
>
{{
content
}}
</button>
</form>
{%
endmacro
%}
{%
block
content
%}
<h3>
{%
trans
%}
Counter
{%
endtrans
%}
</h3>
<h4>
{{
counter
}}
</h4>
<p><strong>
{%
trans
%}
Club:
{%
endtrans
%}
</strong>
{{
counter.club
}}
</p>
<div>
<h5>
{%
trans
%}
Customer
{%
endtrans
%}
</h5>
<p>
{{
customer.user.get_display_name
()
}}
,
{{
customer.amount
}}
€
</p>
</div>
{%
if
counter.type
==
'BAR'
%}
<div>
<h5>
{%
trans
%}
Refilling
{%
endtrans
%}
</h5>
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
>
{%
csrf_token
%}
{{
refill_form.as_p
()
}}
<input
type=
"hidden"
name=
"action"
value=
"refill"
>
<input
type=
"submit"
value=
"
{%
trans
%}
Go
{%
endtrans
%}
"
/>
</form>
</div>
{%
endif
%}
<div>
<h5>
{%
trans
%}
Selling
{%
endtrans
%}
</h5>
{%
if
request.session
[
'not_enough'
]
%}
<p><strong>
{%
trans
%}
Not enough money
{%
endtrans
%}
</strong></p>
{%
endif
%}
<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"
>
<input
type=
"input"
name=
"code"
value=
""
autofocus
/>
<input
type=
"submit"
value=
"
{%
trans
%}
Go
{%
endtrans
%}
"
/>
</form>
<p>
{%
trans
%}
Basket:
{%
endtrans
%}
</p>
<ul>
{%
for
id
,
infos
in
request.session
[
'basket'
]
|
dictsort
%}
{%
set
product
=
counter.products.
filter
(
id
=
id
)
.
first
()
%}
{%
set
s
=
infos
[
'qty'
]
*
infos
[
'price'
]
/
100
%}
<li>
{{
del_product
(
id
,
'-'
)
}}
{{
infos
[
'qty'
]
}}
{{
add_product
(
id
,
'+'
)
}}
{{
product.name
}}
:
{{
"%0.2f"
|
format
(
s
)
}}
€
</li>
{%
endfor
%}
</ul>
<p><strong>
{%
trans
%}
Total:
{%
endtrans
%}{{
"%0.2f"
|
format
(
basket_total
)
}}
€
</strong></p>
<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"
>
<input
type=
"submit"
value=
"
{%
trans
%}
Finish
{%
endtrans
%}
"
/>
</form>
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"cancel"
>
<input
type=
"submit"
value=
"
{%
trans
%}
Cancel
{%
endtrans
%}
"
/>
</form>
<p><strong>
{%
trans
%}
Products:
{%
endtrans
%}
</strong>
{%
for
p
in
counter.products.all
()
%}
{{
add_product
(
p.id
,
p.name
)
}}
{%
endfor
%}
</p>
</div>
{%
endblock
%}
launderette/templates/launderette/counter_edit.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/base.jinja"
%}
{%
block
content
%}
<h2>
{%
trans
%}
Edit counter
{%
endtrans
%}
</h2>
<form
action=
""
method=
"post"
>
{%
csrf_token
%}
{{
form.as_p
()
}}
<p><input
type=
"submit"
value=
"
{%
trans
%}
Save
{%
endtrans
%}
"
/></p>
</form>
{%
endblock
%}
launderette/templates/launderette/counter_main.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/base.jinja"
%}
{%
macro
barman_logout_link
(
user
)
%}
<form
method=
"post"
action=
"
{{
url
(
'counter:logout'
,
counter_id
=
counter.id
)
}}
"
class=
"inline"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"user_id"
value=
"
{{
user.id
}}
"
>
<button
type=
"submit"
name=
"submit_param"
value=
"submit_value"
class=
"link-button"
>
{{
user.get_display_name
()
}}
</button>
</form>
{%
endmacro
%}
{%
block
content
%}
<h3>
{%
trans
counter_name
=
counter
%}{{
counter_name
}}
counter
{%
endtrans
%}
</h3>
<div>
<h3>
{%
trans
%}
Sellings
{%
endtrans
%}
</h3>
{%
if
last_basket
%}
<h4>
{%
trans
%}
Last selling:
{%
endtrans
%}
</h4>
<p>
{%
trans
%}
Client:
{%
endtrans
%}{{
last_customer
}}
-
{%
trans
%}
New amount:
{%
endtrans
%}{{
new_customer_amount
}}
€.
</p>
<ul>
{%
for
s
in
last_basket
%}
<li>
{{
s
}}
</li>
{%
endfor
%}
</ul>
<p><strong>
{%
trans
%}
Total:
{%
endtrans
%}{{
last_total
}}
€
</strong></p>
{%
endif
%}
{%
if
barmen
%}
<p>
{%
trans
%}
Enter client code:
{%
endtrans
%}
</p>
<form
method=
"post"
action=
"
{{
url
(
'counter:details'
,
counter_id
=
counter.id
)
}}
"
>
{%
csrf_token
%}
{{
form.as_p
()
}}
<p><input
type=
"submit"
value=
"
{%
trans
%}
validate
{%
endtrans
%}
"
/></p>
</form>
{%
else
%}
<p>
{%
trans
%}
Please, login
{%
endtrans
%}
</p>
{%
endif
%}
</div>
{%
if
counter.type
==
'BAR'
%}
<div>
<h3>
{%
trans
%}
Barman:
{%
endtrans
%}
</h3>
<ul>
{%
for
b
in
barmen
%}
<li>
{{
barman_logout_link
(
b
)
}}
</li>
{%
endfor
%}
</ul>
<form
method=
"post"
action=
"
{{
url
(
'counter:login'
,
counter_id
=
counter.id
)
}}
"
>
{%
csrf_token
%}
{{
login_form.as_p
()
}}
<p><input
type=
"submit"
value=
"
{%
trans
%}
login
{%
endtrans
%}
"
/></p>
</form>
</div>
{%
endif
%}
{%
endblock
%}
launderette/templates/launderette/product_list.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/base.jinja"
%}
{%
block
title
%}
{%
trans
%}
Product list
{%
endtrans
%}
{%
endblock
%}
{%
block
content
%}
<p><a
href=
"
{{
url
(
'counter:new_product'
)
}}
"
>
{%
trans
%}
New product
{%
endtrans
%}
</a></p>
{%
if
product_list
%}
<h3>
{%
trans
%}
Product list
{%
endtrans
%}
</h3>
<ul>
{%
for
p
in
product_list
%}
<li><a
href=
"
{{
url
(
'counter:product_edit'
,
product_id
=
p.id
)
}}
"
>
{{
p
}}
</a></li>
{%
endfor
%}
</ul>
{%
else
%}
{%
trans
%}
There is no products in this website.
{%
endtrans
%}
{%
endif
%}
{%
endblock
%}
launderette/templates/launderette/producttype_list.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/base.jinja"
%}
{%
block
title
%}
{%
trans
%}
Product type list
{%
endtrans
%}
{%
endblock
%}
{%
block
content
%}
<p><a
href=
"
{{
url
(
'counter:new_producttype'
)
}}
"
>
{%
trans
%}
New product type
{%
endtrans
%}
</a></p>
{%
if
producttype_list
%}
<h3>
{%
trans
%}
Product type list
{%
endtrans
%}
</h3>
<ul>
{%
for
t
in
producttype_list
%}
<li><a
href=
"
{{
url
(
'counter:producttype_edit'
,
type_id
=
t.id
)
}}
"
>
{{
t
}}
</a></li>
{%
endfor
%}
</ul>
{%
else
%}
{%
trans
%}
There is no product types in this website.
{%
endtrans
%}
{%
endif
%}
{%
endblock
%}
launderette/templates/launderette/user_account.jinja
deleted
100644 → 0
View file @
ef17e663
{%
extends
"core/user_base.jinja"
%}
{%
block
title
%}
{%
trans
user_name
=
profile.get_display_name
()
%}{{
user_name
}}
's account
{%
endtrans
%}
{%
endblock
%}
{%
block
infos
%}
<h3>
{%
trans
%}
User account
{%
endtrans
%}
</h3>
<p>
{%
trans
%}
Amount:
{%
endtrans
%}{{
customer.amount
}}
€
</p>
{%
if
customer.refillings.exists
()
%}
<h4>
{%
trans
%}
Refillings
{%
endtrans
%}
</h4>
<table>
<thead>
<tr>
<td>
{%
trans
%}
Date
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Barman
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Amount
{%
endtrans
%}
</td>
</tr>
</thead>
<tbody>
{%
for
i
in
customer.refillings.all
()
%}
<tr>
<td>
{{
i.date
|
localtime
|
date
(
DATETIME_FORMAT
)
}}
-
{{
i.date
|
localtime
|
time
(
DATETIME_FORMAT
)
}}
</td>
<td>
{{
i.operator
}}
</td>
<td>
{{
i.amount
}}
€
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
{%
endif
%}
{%
if
customer.buyings.exists
()
%}
<h4>
{%
trans
%}
Buyings
{%
endtrans
%}
</h4>
<table>
<thead>
<tr>
<td>
{%
trans
%}
Date
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Barman
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Product
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Quantity
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Total
{%
endtrans
%}
</td>
</tr>
</thead>
<tbody>
{%
for
i
in
customer.buyings.all
()
%}
<tr>
<td>
{{
i.date
|
localtime
|
date
(
DATETIME_FORMAT
)
}}
-
{{
i.date
|
localtime
|
time
(
DATETIME_FORMAT
)
}}
</td>
<td>
{{
i.seller
}}
</td>
<td>
{{
i.product
}}
</td>
<td>
{{
i.quantity
}}
</td>
<td>
{{
i.quantity
*
i.unit_price
}}
€
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
{%
endif
%}
{%
if
customer.user.invoices.exists
()
%}
<h4>
{%
trans
%}
Invoices
{%
endtrans
%}
</h4>
<table>
<thead>
<tr>
<td>
{%
trans
%}
Date
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Items
{%
endtrans
%}
</td>
<td>
{%
trans
%}
Amount
{%
endtrans
%}
</td>
</tr>
</thead>
<tbody>
{%
for
i
in
customer.user.invoices.all
()
%}
<tr>
<td>
{{
i.date
|
localtime
|
date
(
DATETIME_FORMAT
)
}}
-
{{
i.date
|
localtime
|
time
(
DATETIME_FORMAT
)
}}
</td>
<td>
<ul>
{%
for
it
in
i.items.all
()
%}
<li>
{{
it.product_name
}}
-
{{
it.product_unit_price
}}
€
</li>
{%
endfor
%}
</ul>
</td>
<td>
{{
i.get_total
()
}}
€
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
{%
endif
%}
{%
endblock
%}
Write
Preview
Markdown
is supported
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