* Added scratchpad dir * Installed Alpine * [WIP] began integrating Tailwind and accompanying theme * [WIP] Set up basic views for sources * Adds new UI to media profiles page * Removes unneeded view
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
<div class="mb-6 flex gap-3 flex-row items-center justify-between">
|
|
<div class="flex gap-3 items-center">
|
|
<.link navigate={~p"/sources"}>
|
|
<.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" />
|
|
</.link>
|
|
<h2 class="text-title-md2 font-bold text-black dark:text-white ml-4">
|
|
Source #<%= @source.id %>
|
|
</h2>
|
|
</div>
|
|
|
|
<nav>
|
|
<.link navigate={~p"/sources/#{@source}/edit"}>
|
|
<.button color="bg-primary" rounding="rounded-full">
|
|
<.icon name="hero-pencil-square" class="mr-2" /> Edit Source
|
|
</.button>
|
|
</.link>
|
|
</nav>
|
|
</div>
|
|
<div class="rounded-sm border border-stroke bg-white px-5 pb-2.5 pt-6 shadow-default dark:border-strokedark dark:bg-boxdark sm:px-7.5 xl:pb-1">
|
|
<div class="max-w-full overflow-x-auto">
|
|
<div class="flex flex-col gap-10 dark:text-white">
|
|
<h3 class="mt-14 font-bold text-xl">Relationships</h3>
|
|
<.list>
|
|
<:item title="media_profile">
|
|
<.link
|
|
navigate={~p"/media_profiles/#{@source.media_profile_id}"}
|
|
class="hover:text-secondary duration-200 ease-in-out"
|
|
>
|
|
<%= @source.media_profile.name %>
|
|
</.link>
|
|
</:item>
|
|
</.list>
|
|
|
|
<h3 class="font-bold text-xl">Attributes</h3>
|
|
<.list_items_from_map map={Map.from_struct(@source)} />
|
|
</div>
|
|
</div>
|
|
</div>
|