Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
TMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
CC-IN2P3 Applications team
TMS
Commits
39fa8e17
Commit
39fa8e17
authored
3 weeks ago
by
Cyril L'Orphelin
Browse files
Options
Downloads
Patches
Plain Diff
MAJ
parent
db1b4036
Branches
develop
Branches containing commit
No related tags found
1 merge request
!17
MAJ
Pipeline
#391564
passed
3 weeks ago
Stage: validate
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tms/assets/js/tapes.js
+1
-0
1 addition, 0 deletions
tms/assets/js/tapes.js
tms/src/Controller/TapeController.php
+14
-1
14 additions, 1 deletion
tms/src/Controller/TapeController.php
tms/templates/tapes/main.html.twig
+1
-1
1 addition, 1 deletion
tms/templates/tapes/main.html.twig
with
16 additions
and
2 deletions
tms/assets/js/tapes.js
+
1
−
0
View file @
39fa8e17
...
@@ -39,6 +39,7 @@ $(document).ready(function () {
...
@@ -39,6 +39,7 @@ $(document).ready(function () {
return
'
<span class="badge bg-info text-white small">
'
+
datetime
+
'
</span>
'
;
return
'
<span class="badge bg-info text-white small">
'
+
datetime
+
'
</span>
'
;
}
}
},
},
{
{
data
:
'
tapeid
'
,
data
:
'
tapeid
'
,
orderable
:
false
,
orderable
:
false
,
...
...
This diff is collapsed.
Click to expand it.
tms/src/Controller/TapeController.php
+
14
−
1
View file @
39fa8e17
...
@@ -151,6 +151,11 @@ class TapeController extends AbstractController
...
@@ -151,6 +151,11 @@ class TapeController extends AbstractController
$countQueryBuilder
->
orWhere
(
't.label LIKE :tapeLabel'
);
$countQueryBuilder
->
orWhere
(
't.label LIKE :tapeLabel'
);
$countQueryBuilder
->
setParameter
(
'tapeLabel'
,
$search
.
'%'
);
$countQueryBuilder
->
setParameter
(
'tapeLabel'
,
$search
.
'%'
);
$mainQueryBuilder
->
orWhere
(
't.prix LIKE :tapePrix'
);
$mainQueryBuilder
->
setParameter
(
':tapePrix'
,
$search
.
'%'
);
$countQueryBuilder
->
orWhere
(
't.prix LIKE :tapePrix'
);
$countQueryBuilder
->
setParameter
(
':tapePrix'
,
$search
.
'%'
);
$mainQueryBuilder
->
orWhere
(
'm.nom LIKE :modelName'
);
$mainQueryBuilder
->
orWhere
(
'm.nom LIKE :modelName'
);
$mainQueryBuilder
->
setParameter
(
'modelName'
,
$search
.
'%'
);
$mainQueryBuilder
->
setParameter
(
'modelName'
,
$search
.
'%'
);
$countQueryBuilder
->
orWhere
(
'm.nom LIKE :modelName'
);
$countQueryBuilder
->
orWhere
(
'm.nom LIKE :modelName'
);
...
@@ -187,6 +192,8 @@ class TapeController extends AbstractController
...
@@ -187,6 +192,8 @@ class TapeController extends AbstractController
$mainQueryBuilder
->
orderBy
(
'li.nom'
,
$orderDir
);
$mainQueryBuilder
->
orderBy
(
'li.nom'
,
$orderDir
);
else
if
(
$orderColumn
==
5
)
// datecreation
else
if
(
$orderColumn
==
5
)
// datecreation
$mainQueryBuilder
->
orderBy
(
't.'
.
$colums
[
$orderColumn
][
'data'
],
$orderDir
);
$mainQueryBuilder
->
orderBy
(
't.'
.
$colums
[
$orderColumn
][
'data'
],
$orderDir
);
else
if
(
$orderColumn
==
6
)
// Prix
$mainQueryBuilder
->
orderBy
(
't.'
.
$colums
[
$orderColumn
][
'data'
],
$orderDir
);
}
}
$data
=
$mainQueryBuilder
$data
=
$mainQueryBuilder
...
@@ -362,7 +369,13 @@ class TapeController extends AbstractController
...
@@ -362,7 +369,13 @@ class TapeController extends AbstractController
$histories
=
json_decode
(
$tape
->
getHistory
(),
TRUE
);
$histories
=
json_decode
(
$tape
->
getHistory
(),
TRUE
);
$htmlhistory
=
'<ul class="timeline">'
;
$htmlhistory
=
'<ul>'
;
$htmlhistory
.
=
'<li><strong>Prix : </strong>'
.
$tape
->
getPrix
()
.
'</li>'
;
if
(
$tape
->
getCommentaire
()
!=
''
)
$htmlhistory
.
=
'<li><strong>Commentaire: </strong><em>'
.
$tape
->
getCommentaire
()
.
'</em></li>'
;
$htmlhistory
.
=
'</ul><br/><br/><h2>Historique</h2>'
;
$htmlhistory
.
=
'<ul class="timeline">'
;
$cpt
=
0
;
$cpt
=
0
;
foreach
(
$histories
as
$history
)
{
foreach
(
$histories
as
$history
)
{
...
...
This diff is collapsed.
Click to expand it.
tms/templates/tapes/main.html.twig
+
1
−
1
View file @
39fa8e17
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
MAJ Multiple
MAJ Multiple
</button>
</button>
<table
id=
"tableTapes"
class=
" table-striped m-4 table table-bordered"
>
<table
id=
"tableTapes"
class=
" table-striped m-4 table table-bordered
small
"
>
<thead>
<thead>
<tr>
<tr>
...
...
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