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
mathieu
potage
Commits
9afc46d5
Commit
9afc46d5
authored
Jul 01, 2018
by
Mat
Browse files
logique: on garde "En préparation" => couleur 'warning'
parent
365482be
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/Lettre/ajaxDisplay.html.twig
View file @
9afc46d5
...
...
@@ -106,7 +106,7 @@
<tbody>
</tbody>
</table>
<table
id=
"maintab-current"
class=
"table lettres table-striped border-
warning
"
>
<table
id=
"maintab-current"
class=
"table lettres table-striped border-
info
"
>
<thead
style=
"display: none;"
>
<tr>
<th
scope=
"col"
>
#
</th>
...
...
src/PotageBundle/Resources/views/Lettre/ajaxDisplay.js
View file @
9afc46d5
...
...
@@ -136,7 +136,7 @@ function buildEditStatusForm(status)
selectForm
.
classList
.
add
(
'
form-control
'
,
'
form-control-sm
'
,
'
lettre_status
'
);
let
optionValue
=
{
'
draft
'
:
'
En préparation
'
,
'
current
'
:
'
Pour Relecture
'
,
'
sent
'
:
'
Envoyer
'
};
let
colorValue
=
{
'
draft
'
:
'
light
'
,
'
current
'
:
'
warning
'
,
'
sent
'
:
'
success
'
};
let
colorValue
=
{
'
draft
'
:
'
warning
'
,
'
current
'
:
'
info
'
,
'
sent
'
:
'
success
'
};
for
(
let
value
in
optionValue
)
{
let
optionForm
=
document
.
createElement
(
'
option
'
);
...
...
src/PotageBundle/Resources/views/LettreInfos/ajaxDisplay.js
View file @
9afc46d5
...
...
@@ -74,7 +74,7 @@ if (sortForm)
{
list
[
i
]
=
items
[
i
].
dataset
.
infoId
;
}
console
.
log
(
list
);
//
console.log(list);
let
input
=
sortForm
.
querySelector
(
'
input#lettre_sorted_sorted
'
);
input
.
value
=
list
;
...
...
@@ -119,7 +119,7 @@ function reloadBlocLettre()
let
json
=
JSON
.
parse
(
request
.
responseText
);
let
listStatus
=
{
'
draft
'
:
'
En préparation
'
,
'
current
'
:
'
Pour relecture
'
,
'
sent
'
:
'
Envoyée
'
,
'
closed
'
:
'
Archivée
'
,
'
trash
'
:
'
Poubelle
'
};
let
colors
=
{
'
draft
'
:
'
secondary
'
,
'
current
'
:
'
warning
'
,
'
sent
'
:
'
success
'
,
'
closed
'
:
'
secondary
'
,
'
trash
'
:
'
danger
'
};
let
colors
=
{
'
draft
'
:
'
warning
'
,
'
current
'
:
'
info
'
,
'
sent
'
:
'
success
'
,
'
closed
'
:
'
secondary
'
,
'
trash
'
:
'
danger
'
};
fieldsLettre
[
0
].
textContent
=
formatStringDateTime
(
json
.
created_at
,
true
,
true
,
false
,
false
);
fieldsLettre
[
1
].
textContent
=
json
.
updated_at
?
formatStringDateTime
(
json
.
updated_at
,
true
,
true
,
false
,
false
)
:
null
;
fieldsLettre
[
2
].
textContent
=
'
Groupe
'
+
json
.
groupe
.
nom
;
...
...
web/css/style.css
View file @
9afc46d5
...
...
@@ -254,6 +254,11 @@ table span.details { /*
width
:
100%
;
height
:
unset
;
min-height
:
50px
;
padding
:
0
1em
;
/*
margin-top: -1em; */
background-color
:
white
;
}
#sortable
div
.info
:hover
{
background-color
:
#e8e8e8
;
}
#sortable
div
.ui-state-default
{
...
...
web/css/tables.css
View file @
9afc46d5
...
...
@@ -45,7 +45,7 @@ table.groupes tr th:nth-child(3) { /* width variable */ }
table
.groupes
tr
th
:nth-child
(
4
)
{
/* width variable */
}
table
.groupes
tr
th
:nth-child
(
5
)
{
/* width variable */
}
table
#maintab-current
.lettres.border-
warning
{
table
#maintab-current
.lettres.border-
info
{
border-width
:
5px
!important
;
border-style
:
solid
;
}
\ No newline at end of file
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