@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
import Editor from './Editor.svelte';
|
import Editor from './Editor.svelte';
|
||||||
import LineEditor from '../../Components/LineEditor.svelte';
|
import LineEditor from '../../Components/LineEditor.svelte';
|
||||||
|
import Notes from '../notes/List.svelte';
|
||||||
|
|
||||||
let error = $state(null);
|
let error = $state(null);
|
||||||
let companies = $state(null);
|
let companies = $state(null);
|
||||||
@@ -117,8 +118,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{#if selected==cid}
|
{#if selected==cid}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="4" class="edit">
|
||||||
<Editor {company} />
|
<Editor {company} />
|
||||||
|
<div class="notes">
|
||||||
|
<Notes module="company" entity_id={cid} />
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -87,18 +87,6 @@
|
|||||||
onMount(load)
|
onMount(load)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
fieldset{
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
legend.time{
|
|
||||||
position : absolute;
|
|
||||||
top : -19px;
|
|
||||||
right : 20px;
|
|
||||||
background : black;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{#if error}
|
{#if error}
|
||||||
<span class="error">{error}</span>
|
<span class="error">{error}</span>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -122,5 +110,5 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<Editor simple={true} bind:value={note} onSet={saveNote} />
|
<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>
|
</div>
|
||||||
@@ -18,6 +18,7 @@ body {
|
|||||||
fieldset {
|
fieldset {
|
||||||
border: 1px solid orange;
|
border: 1px solid orange;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
input{
|
input{
|
||||||
@@ -259,13 +260,26 @@ fieldset.bookmark{
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset.bookmark legend.date{
|
legend.date,
|
||||||
|
legend.time{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 10px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
legend.date{
|
||||||
top: -17px;
|
top: -17px;
|
||||||
background: black;
|
}
|
||||||
|
legend.time{
|
||||||
|
top: -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend{
|
legend{
|
||||||
max-width: 75vw;
|
max-width: 75vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.companies .edit > * {
|
||||||
|
display: inline-block;
|
||||||
|
width: 46vw;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ body {
|
|||||||
fieldset {
|
fieldset {
|
||||||
border: 1px solid blue;
|
border: 1px solid blue;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
input{
|
input{
|
||||||
@@ -144,8 +145,8 @@ li.task:hover > button{
|
|||||||
display: initial;
|
display: initial;
|
||||||
}
|
}
|
||||||
textarea{
|
textarea{
|
||||||
color: white;
|
color: blue;
|
||||||
background: #333;
|
background: lightcyan;;
|
||||||
font-weight: black;
|
font-weight: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,13 +260,26 @@ fieldset.bookmark{
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset.bookmark legend.date{
|
legend.date,
|
||||||
|
legend.time{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 10px;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
legend.date{
|
||||||
top: -17px;
|
top: -17px;
|
||||||
background: black;
|
}
|
||||||
|
legend.time{
|
||||||
|
top: -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend{
|
legend{
|
||||||
max-width: 75vw;
|
max-width: 75vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.companies .edit > * {
|
||||||
|
display: inline-block;
|
||||||
|
width: 46vw;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user