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