Skip to content

Commit

Permalink
Fix import layout, cancel redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Dec 5, 2024
1 parent 7d89967 commit b8eaf1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import * as m from '$lib/paraglide/messages';
import { superForm } from 'sveltekit-superforms';
import type { PageData } from './$types';
import { importJSONSchema } from '$lib/projects/common';
import { onMount } from 'svelte';
import { superForm } from 'sveltekit-superforms';
import { safeParse } from 'valibot';
import { importJSONSchema } from '$lib/projects/common';
import type { PageData } from './$types';
export let data: PageData;
Expand Down Expand Up @@ -49,7 +49,7 @@

<div class="w-full max-w-6xl mx-auto relative p-2">
<form action="" method="post" use:enhance>
<h1>{m.project_importProjects()}</h1>
<h1 class="pl-4">{m.project_importProjects()}</h1>
<a
href="https://sil-prd-scriptoria-resources.s3.amazonaws.com/Project+Import.pdf"
target="_blank"
Expand Down Expand Up @@ -99,9 +99,9 @@
/>
</label>
</div>
<div class="flex place-content-center space-x-2">
<a href="/projects/{$page.params.id}" class="btn">{m.common_cancel()}</a>
<button class="btn btn-primary" type="submit" disabled={!canSubmit}>{m.common_save()}</button>
<div class="flex flex-wrap place-content-center gap-4 p-4">
<a href="/projects/own/{$page.params.id}" class="btn w-full max-w-xs">{m.common_cancel()}</a>
<button class="btn btn-primary w-full max-w-xs" type="submit">{m.common_save()}</button>
</div>
</form>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
</div>
<div class="flex flex-wrap place-content-center gap-4 p-4">
<a href="/projects/{$page.params.id}" class="btn w-full max-w-xs">{m.common_cancel()}</a>
<a href="/projects/own/{$page.params.id}" class="btn w-full max-w-xs">{m.common_cancel()}</a>
<button class="btn btn-primary w-full max-w-xs" type="submit">{m.common_save()}</button>
</div>
</form>
Expand Down

0 comments on commit b8eaf1d

Please sign in to comment.