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
piks3l
Respect My Net
Commits
19385205
Commit
19385205
authored
Jul 04, 2011
by
stef
Browse files
[enh] added js filtering for list view
parent
8d2081e2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
media/js/picnet.table.filter.min.js
0 → 100644
View file @
19385205
This diff is collapsed.
Click to expand it.
templates/list.html
View file @
19385205
...
...
@@ -4,18 +4,20 @@
{% block styles %}
{% endblock %}
{% block scripts %}
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.1.4.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.tablesorter.min.js"
>
</script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"
#sortedlist
"
).
tablesorter
();
$
(
'
.confirm_form
'
).
submit
(
function
()
{
var
self
=
this
;
$
.
ajax
({
url
:
'
/confirm/
'
+
$
(
this
).
attr
(
'
id
'
)
+
'
/
'
+
$
(
this
).
children
(
'
input:first
'
).
attr
(
'
value
'
),
success
:
function
(
data
)
{
$
(
self
).
html
(
data
);
}});
return
false
;
});
});
</script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.1.4.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/jquery.tablesorter.min.js"
>
</script>
<script
type=
"text/javascript"
src=
"{%media_url%}/js/picnet.table.filter.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"
#sortedlist
"
).
tablesorter
();
$
(
'
#sortedlist
'
).
tableFilter
();
$
(
'
.confirm_form
'
).
submit
(
function
()
{
var
self
=
this
;
$
.
ajax
({
url
:
'
/confirm/
'
+
$
(
this
).
attr
(
'
id
'
)
+
'
/
'
+
$
(
this
).
children
(
'
input:first
'
).
attr
(
'
value
'
),
success
:
function
(
data
)
{
$
(
self
).
html
(
data
);
}});
return
false
;
});
});
</script>
{% endblock %}
{%block content%}
...
...
@@ -30,18 +32,18 @@
<table
class=
"listing tablesorter"
id=
'sortedlist'
>
<thead>
<tr>
<th>
{% trans "id" %}
</th>
<th>
{% trans "country" %}
</th>
<th>
{% trans "operator" %}
</th>
<th>
{% trans "contract" %}
</th>
<th>
{% trans "resource" %}
</th>
<th>
{% trans "type" %}
</th>
<th>
{% trans "media" %}
</th>
<th>
{% trans "temporary" %}
</th>
<th>
{% trans "contractual" %}
</th>
<th>
{% trans "contractual_excerpt" %}
</th>
<th>
{% trans "loophole" %}
</th>
<th>
{% trans "confirmations" %}
</th>
<th
filter=
'false'
>
{% trans "id" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "country" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "operator" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "contract" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "resource" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "type" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "media" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "temporary" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "contractual" %}
</th>
<th
filter=
'false'
>
{% trans "contractual_excerpt" %}
</th>
<th
filter-type=
'ddl'
>
{% trans "loophole" %}
</th>
<th
filter=
'false'
>
{% trans "confirmations" %}
</th>
</tr>
</thead>
<tbody>
...
...
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