Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
235b79f5
Commit
235b79f5
authored
May 15, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twig, construit le tableau d'affichage, en javascript
parent
007a8205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
src/TechnoBundle/Resources/views/Api/Owner/mainDisplay.html.twig
...hnoBundle/Resources/views/Api/Owner/mainDisplay.html.twig
+19
-2
No files found.
src/TechnoBundle/Resources/views/Api/Owner/mainDisplay.html.twig
View file @
235b79f5
...
...
@@ -11,8 +11,6 @@
</tr>
</thead>
<tbody>
</tbody>
</table>
{%
endblock
%}
...
...
@@ -34,7 +32,26 @@
console
.
log
(
this
);
if
(
this
.
readyState
===
4
&&
(
this
.
status
===
200
||
this
.
status
===
0
))
{
let
json
=
JSON
.
parse
(
this
.
responseText
);
for
(
let
i
=
0
;
i
<
json
.
length
;
i
++
)
{
let
tr
=
document
.
createElement
(
'
tr
'
);
let
td1
=
document
.
createElement
(
'
td
'
);
td1
.
textContent
=
json
[
i
].
firstname
;
tr
.
appendChild
(
td1
);
let
td2
=
document
.
createElement
(
'
td
'
);
td2
.
textContent
=
json
[
i
].
lastname
;
tr
.
appendChild
(
td2
);
let
td3
=
document
.
createElement
(
'
td
'
);
td3
.
textContent
=
json
[
i
].
created_at
;
tr
.
appendChild
(
td3
);
let
td4
=
document
.
createElement
(
'
td
'
);
td4
.
textContent
=
json
[
i
].
modify_at
;
tr
.
appendChild
(
td4
);
}
console
.
log
(
json
);
}
};
...
...
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