add types to the input fields

This commit is contained in:
Felix Van der Jeugt 2015-09-09 20:18:30 +02:00
parent c1d4b1c649
commit 6f7da1dd5b

View file

@ -8,19 +8,19 @@
%th Issuer %th Issuer
%th Message %th Message
%tr %tr
%td.bound.input-listen %td.bound.input-listen{ 'data-input-type': 'date-range' }
%input.lower-bound{type: 'date', placeholder: 'after'} %input.lower-bound{type: 'date', placeholder: 'after'}
= "<= Time <=" = "<= Time <="
%input.upper-bound{type: 'date', placeholder: 'before'} %input.upper-bound{type: 'date', placeholder: 'before'}
%td.bound.input-listen %td.bound.input-listen{ 'data-input-type': 'number-range' }
%input.lower-bound{type: 'number', placeholder: 'lower', class: 'pure-u-1-5'} %input.lower-bound{type: 'number', placeholder: 'lower', class: 'pure-u-1-5'}
= "<= Amount <=" = "<= Amount <="
%input.upper-bound{type: 'number', placeholder: 'upper', class: 'pure-u-1-5'} %input.upper-bound{type: 'number', placeholder: 'upper', class: 'pure-u-1-5'}
%td.input-listen %td.input-listen{ 'data-input-type': 'text' }
%input{type: 'text', placeholder: 'Filter on Peer'}
%td.input-listen
%input{type: 'text', placeholder: 'Filter on Issuer'} %input{type: 'text', placeholder: 'Filter on Issuer'}
%td.input-listen %td.input-listen{ 'data-input-type': 'text' }
%input{type: 'text', placeholder: 'Filter on Peer'}
%td.input-listen{ 'data-input-type': 'text' }
%input{type: 'text', placeholder: 'Filter on Message'} %input{type: 'text', placeholder: 'Filter on Message'}
%tbody %tbody
@ -55,6 +55,7 @@
} else { } else {
value = $(this).val() value = $(this).val()
} }
value = td.attr('data-input-type') + ':' + value
if(column.search() !== value) { if(column.search() !== value) {
column.search(value).draw(); column.search(value).draw();
} }