clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
704 B

<div {{ attributes }}>
<label class="search">
<input type="search"
placeholder="{{ 'text.search'|trans }}"
data-model="norender|query"
/>
<button type="submit" data-action="live#$render"><twig:ux:icon name="iconoir:search" class="icon" /></button>
</label>
<!-- Loading Indicator -->
<div style="text-align: center">
<span data-loading>{{ 'text.searching'|trans }}</span>
</div>
<!-- Results -->
{% if this.results is not empty %}
<twig:Organisms:CardList :list="this.results" />
{% elseif this.query is not empty %}
<p><small>{{ 'text.noResults'|trans }}</small></p>
{% endif %}
</div>