added the views funcionality and other things
This commit is contained in:
@@ -85,7 +85,9 @@
|
||||
Expr: {item.expr}
|
||||
</div>
|
||||
<div class="flex-grow"></div>
|
||||
<button class="btn-danger" onclick={preventDefault(() => remove(item.id))}> Remove </button>
|
||||
<button class="btn-danger" onclick={preventDefault(() => remove(item.id))}>
|
||||
Remove
|
||||
</button>
|
||||
</div>
|
||||
{#if item.id == edit?.id}
|
||||
<form onsubmit={preventDefault(update)} class="shadow-inner p-2 rounded-xl">
|
||||
@@ -103,7 +105,11 @@
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label class="flabel" for="description">Description</label>
|
||||
<textarea required id="description" class="finput w-full" bind:value={edit.description}
|
||||
<textarea
|
||||
required
|
||||
id="description"
|
||||
class="finput w-full"
|
||||
bind:value={edit.description}
|
||||
></textarea>
|
||||
</fieldset>
|
||||
<div class="btns w-full">
|
||||
|
||||
Reference in New Issue
Block a user