Files

22 lines
494 B
Svelte
Raw Permalink Normal View History

2024-08-15 18:52:53 +03:00
<script>
2026-05-06 21:43:13 +03:00
import { getContext } from "svelte";
2024-08-15 18:52:53 +03:00
const channel = getContext("channel");
export let schema;
export let record;
export let isCreateMode;
</script>
<div class="record-header">
2026-05-06 21:43:13 +03:00
<a class="schema-name" href="{channel.lucentUrl}/content/{schema.name}"
>{schema.label.toUpperCase()}</a
2024-08-16 16:00:48 +03:00
>
2024-08-15 18:52:53 +03:00
<span class="record-title">
{#if !isCreateMode}
2026-05-06 21:43:13 +03:00
{record.data.name}
2024-08-15 18:52:53 +03:00
{:else}
New Record
{/if}
</span>
2026-05-06 21:43:13 +03:00
</div>