2015-08-31 21:11:44 +02:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2017-04-09 21:59:57 +02:00
|
|
|
<input type="hidden" name="searchTerm" value="{{$searchTerm}}">
|
|
|
|
|
|
|
|
<div id="search-system">
|
2016-12-04 15:08:04 +01:00
|
|
|
<div class="faded-small toolbar">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 faded">
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
<a href="{{ baseUrl("/search/all?term={$searchTerm}") }}" class="text-button"><i class="zmdi zmdi-search"></i>{{ $searchTerm }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-31 21:11:44 +02:00
|
|
|
|
|
|
|
|
2017-04-09 21:59:57 +02:00
|
|
|
<div class="container" ng-non-bindable id="searchSystem">
|
2016-03-13 15:00:24 +01:00
|
|
|
|
2016-12-04 15:08:04 +01:00
|
|
|
<h1>{{ trans('entities.search_results') }}</h1>
|
|
|
|
|
2017-04-09 21:59:57 +02:00
|
|
|
<input type="text" v-model="termString">
|
2015-08-31 21:11:44 +02:00
|
|
|
|
2016-12-04 15:08:04 +01:00
|
|
|
<div class="row">
|
2017-04-09 21:59:57 +02:00
|
|
|
|
2015-08-31 21:11:44 +02:00
|
|
|
<div class="col-md-6">
|
2017-04-09 21:59:57 +02:00
|
|
|
@include('partials/entity-list', ['entities' => $entities])
|
2015-08-31 21:11:44 +02:00
|
|
|
</div>
|
2017-04-09 21:59:57 +02:00
|
|
|
|
2015-08-31 21:11:44 +02:00
|
|
|
<div class="col-md-5 col-md-offset-1">
|
2017-04-09 21:59:57 +02:00
|
|
|
<h3>Search Filters</h3>
|
|
|
|
|
2017-04-14 19:47:33 +02:00
|
|
|
<form v-on:submit="updateSearch" v-cloak>
|
|
|
|
<p><strong>Content Type</strong></p>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><input type="checkbox" v-on:change="typeChange" v-model="search.type.page" value="page"> Page</label>
|
|
|
|
<label><input type="checkbox" v-on:change="typeChange" v-model="search.type.chapter" value="chapter"> Chapter</label>
|
|
|
|
<label><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book"> Book</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p><strong>Exact Matches</strong></p>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="no-style">
|
|
|
|
<tr v-for="(term, i) in search.exactTerms">
|
|
|
|
<td style="padding: 0 12px 6px 0;">
|
|
|
|
<input class="exact-input" v-on:input="exactChange" type="text" v-model="search.exactTerms[i]"></td>
|
|
|
|
<td>
|
|
|
|
<button type="button" class="text-button" v-on:click="removeExact(i)">
|
|
|
|
<i class="zmdi zmdi-close-circle-o"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<button type="button" class="text-button" v-on:click="addExact">
|
|
|
|
<i class="zmdi zmdi-plus-circle-o"></i>Add exact match term
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<p><strong>Tag Searches</strong></p>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="no-style">
|
|
|
|
<tr v-for="(term, i) in search.tagTerms">
|
|
|
|
<td style="padding: 0 12px 6px 0;">
|
|
|
|
<input class="tag-input" v-on:input="tagChange" type="text" v-model="search.tagTerms[i]"></td>
|
|
|
|
<td>
|
|
|
|
<button type="button" class="text-button" v-on:click="removeTag(i)">
|
|
|
|
<i class="zmdi zmdi-close-circle-o"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<button type="button" class="text-button" v-on:click="addTag">
|
|
|
|
<i class="zmdi zmdi-plus-circle-o"></i>Add tag search
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" v-on:change="optionChange('viewed_by_me')"
|
|
|
|
v-model="search.option.viewed_by_me" value="page">
|
|
|
|
Viewed by me
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" v-on:change="optionChange('not_viewed_by_me')"
|
|
|
|
v-model="search.option.not_viewed_by_me" value="page">
|
|
|
|
Not viewed by me
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<p><strong>Date Options</strong></p>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="no-style">
|
|
|
|
<tr>
|
|
|
|
<td>Updated After</td>
|
|
|
|
<td style="padding: 0 12px 6px 0;">
|
|
|
|
<input v-if="search.dates.updated_after" class="tag-input" v-on:input="tagChange" type="date" v-model="search.dates.updated_after" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
|
|
|
|
<button type="button" class="text-button" v-if="!search.dates.updated_after" v-on:click="enableDate('updated_at')">Set Date</button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<button v-if="search.dates.updated_after" type="button" class="text-button" v-on:click="search.dates.updated_after = false">
|
|
|
|
<i class="zmdi zmdi-close-circle-o"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<button type="button" class="text-button" v-on:click="addTag">
|
|
|
|
<i class="zmdi zmdi-plus-circle-o"></i>Add tag search
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="button pos">Update Search</button>
|
|
|
|
</form>
|
2017-04-09 21:59:57 +02:00
|
|
|
|
2017-04-09 22:12:13 +02:00
|
|
|
|
|
|
|
|
2015-08-31 21:11:44 +02:00
|
|
|
</div>
|
2017-04-09 21:59:57 +02:00
|
|
|
|
2015-08-31 21:11:44 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2017-04-09 21:59:57 +02:00
|
|
|
</div>
|
|
|
|
|
2015-08-31 21:11:44 +02:00
|
|
|
@stop
|