AsiaV2/modules/personal_tec_transfer/index_search1.html.erb

68 lines
1.8 KiB
Plaintext

<script type="text/javascript">
$( ".selectbox" ).ready(function() {
var option_len = $(".search-widget option").length
for (var i=0;i<option_len;i++){
if($(".search-widget option").eq(i).data('selected')=="selected"){
$(".search-widget option").eq(i).attr('selected','selected')
}
}
});
</script>
<h3>{{widget-title}}</h3>
<div class="search-widget">
<form action="{{url}}" method="get">
<input type="hidden" name="authenticity_token" value="{{csrf_value}}">
{{select_text}}
<select class="selectbox" name="selectbox" data-level="0" data-list="choice">
<option value={{choice_value}} data-selected='{{choice_select}}' >
{{choice_show}}</option>
</select>
{{search_text}}
<input name="keywords" placeholder="Keywords" type="text" value="{{search_value}}">
<button>Go</button>
<a id="filter" style="" href="{{url}}">Clear</a>
</form>
</div>
<table class="table table-hover table-striped projects-index tec_transfers-index dt-responsive nowrap">
<caption><h3>{{widget-title}}</h3></caption>
<thead>
<tr>
<th class="col-md-1">{{th-trans_name}}</th>
<th class="col-md-1">{{th-patent_number}}</th>
<th class="col-md-1">{{th-trans_unit}}</th>
<th class="col-md-1">{{th-period}}</th>
<th class="col-md-1">{{th-member_profile}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="tec_transfers">
<tr>
<td>{{trans_name}}</td>
<td>{{patent_number}}</td>
<td>{{trans_unit}}</td>
<td>{{period}}</td>
<td>{{member_profile}}</td>
</tr>
</tbody>
</table>
{{pagination_goes_here}}
<script>
$('table.tec_transfers-index').DataTable({
searching: false,
paging: false,
ordering: false,
info: false
});
</script>