Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-09 23:56:16 +02:00
parent ee366520a3
commit 71c2fdc7f1
4 changed files with 44 additions and 24 deletions

View File

@@ -5,6 +5,7 @@
import Editor from './Editor.svelte';
import LineEditor from '../../Components/LineEditor.svelte';
import Notes from '../notes/List.svelte';
let error = $state(null);
let companies = $state(null);
@@ -117,8 +118,11 @@
</tr>
{#if selected==cid}
<tr>
<td colspan="3">
<td colspan="4" class="edit">
<Editor {company} />
<div class="notes">
<Notes module="company" entity_id={cid} />
</div>
</td>
</tr>
{/if}

View File

@@ -87,18 +87,6 @@
onMount(load)
</script>
<style>
fieldset{
position: relative;
}
legend.time{
position : absolute;
top : -19px;
right : 20px;
background : black;
}
</style>
{#if error}
<span class="error">{error}</span>
{/if}
@@ -122,5 +110,5 @@
{/if}
<div class="editor">
<Editor simple={true} bind:value={note} onSet={saveNote} />
<button onclick={saveNote}>{t('save_note')}</button>
<button onclick={saveNote}>{t('save_object',{object:t('note')})}</button>
</div>