Skip to content

Commit

Permalink
Tekstendringer notat særbidrag (#129)
Browse files Browse the repository at this point in the history
* Tekstendringer notat særbidrag

* Tekstendringer notat særbidrag
  • Loading branch information
ugur93 authored Oct 18, 2024
1 parent a9b90f8 commit ad5b2fd
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,24 @@ export const BPsBeregnedeTotalbidrag = () => {
>
<thead>
<tr>
<th className="pr-1">{"Barn"}</th>
<th className={`${colPaddingClassname}`}>{"Saksnummer"}</th>
<th className={`${colPaddingClassname} text-right`}>
<th className="pr-1 w-[100px]">{"Barn"}</th>
<th className={`${colPaddingClassname} w-[100px]`}>
{"Saksnummer"}
</th>
<th className={`${colPaddingClassname} text-right w-[100px]`}>
{"Løpende bidrag"}
</th>
<th className={`${colPaddingClassname} text-right`}>{"Samvær"}</th>
<th className={`${colPaddingClassname} text-right`}>
{"Reduksjon av underhold"}
<th className={`${colPaddingClassname} text-right w-[100px]`}>
{"Samvær"}
</th>
<th
className={`${colPaddingClassname} text-right whitespace-pre-wrap w-[120px]`}
>
{`Reduksjon av BPs andel av U*`}
</th>
<th className={`${colPaddingClassname} text-right w-[70px]`}>
{"Sum"}
</th>
<th className={`${colPaddingClassname} text-right`}>{"Sum"}</th>
</tr>
</thead>
<tbody>
Expand All @@ -44,7 +52,7 @@ export const BPsBeregnedeTotalbidrag = () => {
return (
<React.Fragment key={rowIndex}>
<tr key={rowIndex}>
<td className="pr-4">{personidentBarn}</td>
<td className="pr-1 w-[100px]">{personidentBarn}</td>
<td className={`${colPaddingClassname}`}>
{row.saksnummer}
</td>
Expand All @@ -70,13 +78,13 @@ export const BPsBeregnedeTotalbidrag = () => {
<td
colSpan={7}
className={
"table_row_details border-b-2 border-b-black border-solid border-0"
"table_row_details border-b-2 border-b-black border-solid border-0 w-full"
}
style={{ paddingTop: "8px" }}
>
<CalculationTabell
width={"200px"}
title={"Reduksjon av underhold"}
title={`Reduksjon av BPs andel av U*`}
labelColWidth={"150px"}
valueColWidth={"100px"}
className={"pb-2 "}
Expand Down Expand Up @@ -133,6 +141,9 @@ export const BPsBeregnedeTotalbidrag = () => {
)}
</td>
</tr>
<tr>
<td colSpan={7}>* U = Underholdskostnad, BP = Bidragspliktig</td>
</tr>
</tbody>
</table>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ function VedleggBeregningsDetaljerInnhold() {
label: `${tekster.begreper.bidragspliktig} har evne`,
textRight: false,
value: !resultat.bpHarEvne
? "Nei, sum løpende bidrag er høyere enn BPs bidragsevne"
: "Ja, sum løpende bidrag er lavere enn BPs bidragsevne",
? "Nei, bidragsevnen er lavere enn beregnet totalbidrag"
: "Ja, bidragsevnen er høyere enn beregnet totalbidrag",
},
{
label: "Resultat",
Expand Down
40 changes: 40 additions & 0 deletions bidrag-dokumentmal/app/style/tw_output.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,42 @@
display: inline-table
}

.w-\[120px\] {
width: 120px
}

.w-\[150px\] {
width: 150px
}

.w-\[170px\] {
width: 170px
}

.w-\[110px\] {
width: 110px
}

.w-\[100px\] {
width: 100px
}

.w-\[200px\] {
width: 200px
}

.w-\[290px\] {
width: 290px
}

.w-full {
width: 100%
}

.w-\[70px\] {
width: 70px
}

.table-auto {
table-layout: auto
}
Expand All @@ -194,6 +230,10 @@
border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y)
}

.whitespace-pre-wrap {
white-space: pre-wrap
}

.border {
border-width: 1px
}
Expand Down

0 comments on commit ad5b2fd

Please sign in to comment.