22adb4d5fd
The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later with some specific files to be licensed under the one of two licenses: CC0-1.0 LGPL-3.0-or-later This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
26 lines
996 B
Text
26 lines
996 B
Text
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
|
<!-- partial components/tables/search -->
|
|
<!-- use components/restful_resource.js -->
|
|
<!-- use restful_resource.js to define 'resource_name' with an 'index' function-->
|
|
|
|
<% placeholder_text = 'Search' if placeholder_text.nil? %>
|
|
|
|
<form class='table-meta-search'>
|
|
<!--= on 'submit' (def '<%=scope%>.query' form_object) <%=scope%>.index -->
|
|
|
|
<input type='hidden' name='page' value=1>
|
|
|
|
<input name='search' type='text' name='search' placeholder='<%= placeholder_text %>'>
|
|
<!--= on 'keyup' (<%=scope%>.clear_search_if_deleted get_value) -->
|
|
<!--= set_value <%=scope%>.query.search -->
|
|
|
|
<button class='button--input' type='submit'>
|
|
<!--= set_attr_if loading 'disabled' 'disabled' -->
|
|
<i class='fa fa-search'><!--= hide_if loading --></i>
|
|
<i class='fa fa-spin fa-spinner' style='display:none'><!--= show_if loading --></i>
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<!-- end partial components/tables/search -->
|
|
|