Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
m3_webInterface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
m3
m3_webInterface
Commits
0d0dc5c9
Commit
0d0dc5c9
authored
Dec 11, 2024
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data tables
parent
838bdc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
newsList.html
catalog/templates/new/newsList.html
+18
-18
No files found.
catalog/templates/new/newsList.html
View file @
0d0dc5c9
...
@@ -13,21 +13,21 @@
...
@@ -13,21 +13,21 @@
{% block dash-title %}
{% block dash-title %}
<b>
{{form.text.value|default:"Noticias"|capfirst}}
</b>
<b>
{{form.text.value|default:"Noticias"|capfirst}}
</b>
[{{form.startDate.value}}, {{form.endDate.value}}]
[{{form.startDate.value}}, {{form.endDate.value}}]
{% endblock %}
{% endblock %}
{% block dash %}
{% block dash %}
<!-- /.row -->
<!-- /.row -->
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
Noticias
Noticias
</div>
</div>
<!-- /.panel-heading -->
<!-- /.panel-heading -->
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
...
@@ -68,24 +68,24 @@
...
@@ -68,24 +68,24 @@
{% block scripts %}
{% block scripts %}
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"
></script>
<script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'#dataTables-news'
).
DataTable
({
$
(
'#dataTables-news'
).
DataTable
({
"order"
:
[[
2
,
"desc"
]],
"order"
:
[[
2
,
"desc"
]],
"responsive"
:
true
,
"responsive"
:
true
,
"processing"
:
tru
e
,
"processing"
:
fals
e
,
"serverSide"
:
tru
e
,
"serverSide"
:
fals
e
,
"language"
:
{
"url"
:
"/static/languages/Spanish.json"
},
"language"
:
{
"url"
:
"/static/languages/Spanish.json"
},
"ajax"
:
{
"ajax"
:
{
"url"
:
"/catalog/ws/news/"
,
"url"
:
"/catalog/ws/news/"
,
"data"
:{
"startDate"
:
"{{form.startDate.value}}"
,
"endDate"
:
"{{form.endDate.value}}"
,
"ajaxPublishers"
:[{
%
for
p
in
form
.
publishers
.
value
%
}{{
p
}}{
%
if
not
forloop
.
last
%
},{
%
endif
%
}{
%
endfor
%
}],
"text"
:
"{{form.text.value}}"
}
"data"
:{
"startDate"
:
"{{form.startDate.value}}"
,
"endDate"
:
"{{form.endDate.value}}"
,
"ajaxPublishers"
:[{
%
for
p
in
form
.
publishers
.
value
%
}{{
p
}}{
%
if
not
forloop
.
last
%
},{
%
endif
%
}{
%
endfor
%
}],
"text"
:
"{{form.text.value}}"
}
}
}
});
});
});
});
console
.
log
(
" {{form.publishers.data|safe}} "
);
console
.
log
(
" {{form.publishers.data|safe}} "
);
</script>
</script>
{% endblock %}
{% endblock %}
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