|
|
@ -12,8 +12,8 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do
|
|
|
|
~H"""
|
|
|
|
~H"""
|
|
|
|
<div class="relative bg-white shadow-md dark:bg-gray-800 sm:rounded-lg">
|
|
|
|
<div class="relative bg-white shadow-md dark:bg-gray-800 sm:rounded-lg">
|
|
|
|
<div class="flex flex-col items-center justify-between p-4 space-y-3 md:flex-row md:space-y-0 md:space-x-4">
|
|
|
|
<div class="flex flex-col items-center justify-between p-4 space-y-3 md:flex-row md:space-y-0 md:space-x-4">
|
|
|
|
<div class="w-full md:w-1/2">
|
|
|
|
<div class="w-full grow">
|
|
|
|
<form class="flex items-center">
|
|
|
|
<form class="flex items-center" phx-submit="search">
|
|
|
|
<label for="simple-search" class="sr-only">Search</label>
|
|
|
|
<label for="simple-search" class="sr-only">Search</label>
|
|
|
|
<div class="relative w-full">
|
|
|
|
<div class="relative w-full">
|
|
|
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
|
|
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
|
|
@ -61,7 +61,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<!-- Dropdown menu -->
|
|
|
|
<!-- Dropdown menu -->
|
|
|
|
<div id="dropdownSearchBook" class="z-10 hidden text-base list-none bg-white divide-y divide-gray-100 rounded-lg shadow-sm w-44 dark:bg-gray-700">
|
|
|
|
<div id="dropdownSearchBook" class="z-10 hidden text-base list-none bg-white rounded-lg shadow-sm w-64 dark:bg-gray-700 p-2 flex flex-col gap-2">
|
|
|
|
<div class="flex items-center w-full space-x-3 md:w-auto">
|
|
|
|
<div class="flex items-center w-full space-x-3 md:w-auto">
|
|
|
|
<form phx-change="change-search-mode">
|
|
|
|
<form phx-change="change-search-mode">
|
|
|
|
<select name="search_mode" id="search_mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
|
|
|
<select name="search_mode" id="search_mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
|
|
|