@@ -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}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user