Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Add the names of the surfaces and detection technics in the mark search page
· ec5de5d5
Marco De Donno
authored
Feb 10, 2020
ec5de5d5
Hide whitespace changes
Inline
Side-by-side
views/trainer/templates/trainer/search.html
View file @
ec5de5d5
...
@@ -64,6 +64,16 @@
...
@@ -64,6 +64,16 @@
"
surface
"
:
"
{{ mark[ 'surface' ] }}
"
.
split
(
"
,
"
)
"
surface
"
:
"
{{ mark[ 'surface' ] }}
"
.
split
(
"
,
"
)
};
};
{
%
endfor
%
}
{
%
endfor
%
}
var
surfaces
=
{};
{
%
for
s
in
surfaces
%
}
surfaces
[
"
{{ s[ 'id' ] }}
"
]
=
"
{{ s[ 'name' ] }}
"
;
{
%
endfor
%
}
var
all_detection_technics
=
{};
{
%
for
dt
in
all_detection_technics
%
}
all_detection_technics
[
"
{{ dt[ 'id' ] }}
"
]
=
"
{{ dt[ 'name' ] }}
"
;
{
%
endfor
%
}
</script>
</script>
</head>
</head>
<body
class=
"icnml_main_layout"
>
<body
class=
"icnml_main_layout"
>
...
@@ -102,10 +112,23 @@
...
@@ -102,10 +112,23 @@
{
%
for
mark
in
marks
%
}
{
%
for
mark
in
marks
%
}
$
(
"
#mark_{{ mark[ 'uuid' ] }}_pfsp
"
)
$
(
"
#mark_{{ mark[ 'uuid' ] }}_pfsp
"
)
.
text
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
pfsp
"
].
join
(
"
,
"
)
);
.
text
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
pfsp
"
].
join
(
"
,
"
)
);
var
surface
=
[];
_
.
forEach
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
surface
"
],
function
(
s
)
{
surface
.
push
(
surfaces
[
s
]
);
}
);
$
(
"
#mark_{{ mark[ 'uuid' ] }}_surface
"
)
$
(
"
#mark_{{ mark[ 'uuid' ] }}_surface
"
)
.
text
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
surface
"
].
join
(
"
,
"
)
);
.
text
(
surface
.
join
(
"
,
"
)
);
var
dt
=
[];
_
.
forEach
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
dt
"
],
function
(
s
)
{
dt
.
push
(
all_detection_technics
[
s
]
);
}
);
$
(
"
#mark_{{ mark[ 'uuid' ] }}_dt
"
)
$
(
"
#mark_{{ mark[ 'uuid' ] }}_dt
"
)
.
text
(
marks
[
"
{{ mark[ 'uuid' ] }}
"
][
"
dt
"
].
join
(
"
,
"
)
);
.
html
(
dt
.
join
(
"
<br>
"
)
);
{
%
endfor
%
}
{
%
endfor
%
}
$
(
"
#icnml_navigation_trainersearch
"
)
$
(
"
#icnml_navigation_trainersearch
"
)
...
...