58 lines
1.6 KiB
Plaintext
58 lines
1.6 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>
|
|
<style>
|
|
|
|
@media(min-width:500px){
|
|
[data-list="headers"] th:first-child {
|
|
width: 5em;
|
|
max-width: 5em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
[data-list="journal_papers"] td:first-child {
|
|
width: 5em;
|
|
max-width: 5em;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
.breadcrumb{
|
|
padding-left: 0;
|
|
}
|
|
</style>
|
|
<h3 class="journal-title">{{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 personal_journal-index">
|
|
<thead>
|
|
<tr data-level="0" data-list="headers">
|
|
<th class="col-md-{{col}}">{{head-title}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody data-level="0" data-list="journal_papers">
|
|
<tr data-level="1" data-list="jps">
|
|
<td>{{value}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{{pagination_goes_here}} |