Expand usage of structured_modal/1
This commit is contained in:
@@ -217,12 +217,9 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :import}
|
:if={@live_action == :import}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/artists/#{@artist.musicbrainz_id}")}
|
on_close={JS.patch(~p"/artists/#{@artist.musicbrainz_id}")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -234,14 +231,11 @@
|
|||||||
initial_query={"arid:#{@artist.musicbrainz_id}"}
|
initial_query={"arid:#{@artist.musicbrainz_id}"}
|
||||||
icon_name="hero-plus"
|
icon_name="hero-plus"
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :edit}
|
:if={@live_action == :edit}
|
||||||
id="artist-info-modal"
|
id="artist-info-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/artists/#{@artist.musicbrainz_id}")}
|
on_close={JS.patch(~p"/artists/#{@artist.musicbrainz_id}")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -252,4 +246,4 @@
|
|||||||
artist={@artist}
|
artist={@artist}
|
||||||
patch={~p"/artists/#{@artist.musicbrainz_id}"}
|
patch={~p"/artists/#{@artist.musicbrainz_id}"}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
@@ -75,12 +75,9 @@
|
|||||||
/>
|
/>
|
||||||
</.structured_modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :import}
|
:if={@live_action == :import}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(back_path(@record_list_params))}
|
on_close={JS.patch(back_path(@record_list_params))}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -93,14 +90,11 @@
|
|||||||
initial_query=""
|
initial_query=""
|
||||||
icon_name="hero-plus"
|
icon_name="hero-plus"
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :barcode_scan}
|
:if={@live_action == :barcode_scan}
|
||||||
id="barcode-scanner-modal"
|
id="barcode-scanner-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(back_path(@record_list_params))}
|
on_close={JS.patch(back_path(@record_list_params))}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -110,6 +104,6 @@
|
|||||||
action={@live_action}
|
action={@live_action}
|
||||||
patch={back_path(@record_list_params)}
|
patch={back_path(@record_list_params)}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.pagination id={:bottom_pagination} pagination_params={@record_list_params} />
|
<.pagination id={:bottom_pagination} pagination_params={@record_list_params} />
|
||||||
|
|||||||
@@ -321,12 +321,9 @@
|
|||||||
record={@record}
|
record={@record}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :edit}
|
:if={@live_action == :edit}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/collection/#{@record}")}
|
on_close={JS.patch(~p"/collection/#{@record}")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -337,4 +334,4 @@
|
|||||||
record={@record}
|
record={@record}
|
||||||
patch={~p"/collection/#{@record}"}
|
patch={~p"/collection/#{@record}"}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
@@ -91,12 +91,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
id="template-modal"
|
id="template-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/online-store-templates")}
|
on_close={JS.patch(~p"/online-store-templates")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -107,4 +104,4 @@
|
|||||||
template={@template}
|
template={@template}
|
||||||
patch={~p"/online-store-templates"}
|
patch={~p"/online-store-templates"}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
@@ -99,12 +99,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
id="scrobble_rule-modal"
|
id="scrobble_rule-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/scrobble-rules")}
|
on_close={JS.patch(~p"/scrobble-rules")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -115,4 +112,4 @@
|
|||||||
scrobble_rule={@scrobble_rule}
|
scrobble_rule={@scrobble_rule}
|
||||||
patch={~p"/scrobble-rules"}
|
patch={~p"/scrobble-rules"}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
<.modal
|
<.structured_modal
|
||||||
:if={@show_modal}
|
:if={@show_modal}
|
||||||
id="universal-search-root"
|
id="universal-search-root"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open={@show_modal}
|
open={@show_modal}
|
||||||
on_close={JS.push("close_modal", value: %{})}
|
on_close={JS.push("close_modal", value: %{})}
|
||||||
>
|
>
|
||||||
@@ -103,4 +101,4 @@
|
|||||||
|
|
||||||
<!-- Footer with keyboard shortcuts -->
|
<!-- Footer with keyboard shortcuts -->
|
||||||
<.keyboard_shortcuts total_results={@total_results} />
|
<.keyboard_shortcuts total_results={@total_results} />
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
@@ -48,12 +48,9 @@
|
|||||||
record_edit_path={fn record -> ~p"/wishlist/#{record}/edit" end}
|
record_edit_path={fn record -> ~p"/wishlist/#{record}/edit" end}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :edit}
|
:if={@live_action == :edit}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(back_path(@record_list_params))}
|
on_close={JS.patch(back_path(@record_list_params))}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -64,14 +61,11 @@
|
|||||||
record={@record}
|
record={@record}
|
||||||
patch={back_path(@record_list_params)}
|
patch={back_path(@record_list_params)}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :import}
|
:if={@live_action == :import}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(back_path(@record_list_params))}
|
on_close={JS.patch(back_path(@record_list_params))}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -84,6 +78,6 @@
|
|||||||
initial_query=""
|
initial_query=""
|
||||||
icon_name="hero-plus"
|
icon_name="hero-plus"
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|
||||||
<.pagination id={:bottom_pagination} pagination_params={@record_list_params} />
|
<.pagination id={:bottom_pagination} pagination_params={@record_list_params} />
|
||||||
|
|||||||
@@ -302,12 +302,9 @@
|
|||||||
|
|
||||||
<.json_viewer title={gettext("MusicBrainz data")} data={@record.musicbrainz_data} />
|
<.json_viewer title={gettext("MusicBrainz data")} data={@record.musicbrainz_data} />
|
||||||
|
|
||||||
<.modal
|
<.structured_modal
|
||||||
:if={@live_action == :edit}
|
:if={@live_action == :edit}
|
||||||
id="record-modal"
|
id="record-modal"
|
||||||
class="md:min-w-2xl max-w-sm md:max-w-3xl mt-8"
|
|
||||||
placement="top"
|
|
||||||
open
|
|
||||||
on_close={JS.patch(~p"/wishlist/#{@record}")}
|
on_close={JS.patch(~p"/wishlist/#{@record}")}
|
||||||
>
|
>
|
||||||
<.live_component
|
<.live_component
|
||||||
@@ -318,4 +315,4 @@
|
|||||||
record={@record}
|
record={@record}
|
||||||
patch={~p"/wishlist/#{@record}"}
|
patch={~p"/wishlist/#{@record}"}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.structured_modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user