Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
festa_dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Festa
festa_dashboard
Commits
967666ac
Commit
967666ac
authored
1 year ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[UPD] overview view
parent
11f1a638
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/src/scss/contract_planning.scss
+7
-0
7 additions, 0 deletions
static/src/scss/contract_planning.scss
templates/hall_contract_overview.xml
+41
-16
41 additions, 16 deletions
templates/hall_contract_overview.xml
with
48 additions
and
16 deletions
static/src/scss/contract_planning.scss
+
7
−
0
View file @
967666ac
...
@@ -22,6 +22,13 @@
...
@@ -22,6 +22,13 @@
color
:
#495057
;
color
:
#495057
;
}
}
/* Overview */
.tr-detail-header
td
{
.tr-detail-header
td
{
padding-top
:
0
;
padding-top
:
0
;
}
}
.td-overview-border-left
{
border-left
:
1px
solid
#aaa
;
}
.td-overview-border-right
{
border-right
:
1px
solid
#aaa
;
}
This diff is collapsed.
Click to expand it.
templates/hall_contract_overview.xml
+
41
−
16
View file @
967666ac
...
@@ -313,26 +313,49 @@
...
@@ -313,26 +313,49 @@
<tr>
<tr>
<th>
Stand
</th>
<th>
Stand
</th>
<th>
Enseigne
</th>
<th>
Enseigne
</th>
<th>
Hier
<small
<th
class=
"td-overview-border-left"
>
Hier
<small
class=
"test-muted"
class=
"test-muted"
><t
><t
t-out=
"values['sales']['day']"
t-out=
"values['sales']['day']"
t-options=
"{'widget': 'date', 'format': 'dd/MM/yyyy'}"
t-options=
"{'widget': 'date', 'format': 'dd/MM/yyyy'}"
/></small></th>
/></small></th>
<th
colspan=
"4"
>
Ce mois-ci
</th>
<th
<th
colspan=
"4"
>
Cette année
</th>
colspan=
"4"
class=
"td-overview-border-left td-overview-border-right"
>
Ce mois-ci
</th>
<th
colspan=
"4"
>
Cette année
</th>
</tr>
</tr>
<tr
class=
"tr-detail-header"
>
<tr
class=
"tr-detail-header"
>
<td
/>
<td
/>
<td
/>
<td
/>
<td
/>
<td
<td
class=
"text-muted"
>
CA
</td>
class=
"td-overview-border-left"
<td
class=
"text-muted"
>
Panier moyen
</td>
/>
<td
class=
"text-muted"
>
Objectif
</td>
<td
<td
/>
class=
"text-muted td-overview-border-left"
<td
class=
"text-muted"
>
CA
</td>
>
CA
</td>
<td
class=
"text-muted"
>
Panier moyen
</td>
<td
<td
class=
"text-muted"
>
Objectif
</td>
class=
"text-muted"
>
Panier moyen
</td>
<td
class=
"text-muted"
>
Objectif
</td>
<td
class=
"td-overview-border-right"
/>
<td
class=
"text-muted"
>
CA
</td>
<td
class=
"text-muted"
>
Panier moyen
</td>
<td
class=
"text-muted"
>
Objectif
</td>
<td
/>
<td
/>
</tr>
</tr>
</thead>
</thead>
...
@@ -364,12 +387,12 @@
...
@@ -364,12 +387,12 @@
t-out=
"contract.commercial_name"
t-out=
"contract.commercial_name"
/>
/>
<td
<td
class=
"text-end"
class=
"text-end
td-overview-border-left
"
t-out=
"data['yesterday']['total_sales']"
t-out=
"data['yesterday']['total_sales']"
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/>
/>
<td
<td
class=
"text-end"
class=
"text-end
td-overview-border-left
"
t-out=
"data['this_month']['total_sales']"
t-out=
"data['this_month']['total_sales']"
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/>
/>
...
@@ -384,7 +407,7 @@
...
@@ -384,7 +407,7 @@
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/>
/>
<td
<td
t-att-class=
"'text-end text-success' if month_delta >= 1 else 'text-end t
ext-danger
'"
t-att-class=
"'text-end text-success
td-overview-border-right
' if month_delta >= 1
00
else 'text-end t
d-overview-border-right text-warning
'"
>
>
<t
<t
t-out=
"month_delta"
t-out=
"month_delta"
...
@@ -407,7 +430,7 @@
...
@@ -407,7 +430,7 @@
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
t-options=
'{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/>
/>
<td
<td
t-att-class=
"'text-end text-success' if year_delta >= 1 else 'text-end text-
danger
'"
t-att-class=
"'text-end text-success' if year_delta >= 1
00
else 'text-end text-
warning
'"
>
>
<t
<t
t-out=
"year_delta"
t-out=
"year_delta"
...
@@ -451,7 +474,9 @@
...
@@ -451,7 +474,9 @@
<!-- Pourcentage -->
<!-- Pourcentage -->
<t
t-if=
"target and target > 0"
>
<t
t-if=
"target and target > 0"
>
<t
t-set=
"delta"
t-value=
"amount / target * 100"
/>
<t
t-set=
"delta"
t-value=
"amount / target * 100"
/>
<p
t-att-class=
"'text-success h3' if delta >= 1 else 'text-danger h3'"
>
<p
t-att-class=
"'text-success h3' if delta >= 100 else 'text-warning h3'"
>
<t
t-if=
"arrow"
>
<t
t-if=
"arrow"
>
<i
<i
t-att-class=
"'fa fa-arrow-up' if delta >= 1 else 'fa fa-arrow-down'"
t-att-class=
"'fa fa-arrow-up' if delta >= 1 else 'fa fa-arrow-down'"
...
...
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