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
8692e38a
Commit
8692e38a
authored
Jul 01, 2018
by
Mat
Browse files
LettreInfos: met sortable dans un body, avec une intro
parent
840b8780
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/LettreInfos/ajaxDisplay.html.twig
View file @
8692e38a
...
...
@@ -97,8 +97,12 @@
<div
id=
"maingrid"
class=
"grid lettre-infos
{{
lettre.status
}}
"
>
<div
id=
"lettre-header"
class=
"border-bottom mb-4"
></div>
<div
id=
"sortable"
></div>
<div
class=
"clearfix"
></div>
<div
id=
"lettre-body"
>
<div
class=
"intro"
></div>
<div
id=
"sortable"
>
</div>
<div
class=
"clearfix"
></div>
</div>
</div>
</section>
...
...
src/PotageBundle/Resources/views/LettreInfos/ajaxDisplay.js
View file @
8692e38a
...
...
@@ -114,6 +114,7 @@ function reloadBlocLettre()
{
let
fieldsLettre
=
document
.
querySelectorAll
(
'
.field-lettre
'
);
let
headerLettre
=
document
.
querySelector
(
'
#lettre-header
'
);
let
introLettre
=
document
.
querySelector
(
'
#lettre-body div.intro
'
);
AJAX
(
'
GET
'
,
Routing
.
generate
(
'
api_lettre_read_one
'
,
{
'
id
'
:
id_lettre
}),
...
...
@@ -128,6 +129,9 @@ function reloadBlocLettre()
fieldsLettre
[
3
].
innerHTML
=
buildColorSquare
(
json
.
status
,
colors
)
+
listStatus
[
json
.
status
];
headerLettre
.
innerHTML
=
displayHeaderLettre
(
json
,
true
);
introLettre
.
innerHTML
=
`Semaine du <strong>
${
formatStringDate
(
json
.
started_at
,
true
,
true
,
false
,
false
)}
</strong><br>
au <strong>
${
formatStringDate
(
json
.
ended_at
,
true
,
true
,
false
,
false
)}
</strong>`
;
}
);
}
...
...
web/css/style.css
View file @
8692e38a
...
...
@@ -317,3 +317,6 @@ span.posted:first-letter {
text-transform
:
uppercase
;
}
.intro
{
text-align
:
center
;
}
\ No newline at end of file
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