Rename some templates and convert remaining js to hyperscript
This commit is contained in:
@@ -17,14 +17,14 @@
|
||||
<div class="relative ml-0">
|
||||
<select
|
||||
class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
|
||||
id="new-bike-select" data-te-select-init data-te-select-size="lg" name="bike_id" required>
|
||||
data-te-select-init data-te-select-size="lg" name="bike_id" required _="init js(me)
|
||||
te.Select.getOrCreateInstance(me)
|
||||
end">
|
||||
{% for b in bikes %}
|
||||
<option value="{{ b.id }}">{{ b.display_name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<script>
|
||||
te.Select.getOrCreateInstance(document.querySelector("#new-bike-select"));
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user