Design improvements

This commit is contained in:
2026-02-13 13:51:07 +01:00
parent f468814a2f
commit fa886aad4d
3 changed files with 75 additions and 49 deletions

View File

@@ -25,37 +25,40 @@ const emit = defineEmits(["accept", "deny", "fix", "reopen"])
<td v-else style="width: 300px;">Kostensatelle (ursprünglich)</td> <td v-else style="width: 300px;">Kostensatelle (ursprünglich)</td>
<td>{{props.data.costUnitName}}</td> <td>{{props.data.costUnitName}}</td>
<td rowspan="4"> <td rowspan="4" style="width: 250px; padding-right: 25px; text-align: right; vertical-align: top;">
<button <input type="button"
v-if="props.data.status === 'new' && modeShow" v-if="props.data.status === 'new' && modeShow"
@click="emit('accept')" @click="emit('accept')"
class="button mareike-button mareike-accept-button" class="accept-button"
> style="width: 100%; margin-bottom: 10px;"
Abrechnung annehmen value="Abrechnung annehmen"
</button> />
<button v-if="props.data.status === 'denied' && modeShow"
@click="emit('reopen')" <input type="button" v-if="props.data.status === 'denied' && modeShow"
class="button mareike-button mareike-accept-button" @click="emit('reopen')"
> class="accept-button"
Abrechnung zur Wiedervorlage öffnen style="width: 100%; margin-bottom: 10px;"
</button> value="Abrechnung zur Wiedervorlage öffnen"
/>
<br /> <br />
<button <input type="button"
v-if="props.data.status === 'new' && modeShow" v-if="props.data.status === 'new' && modeShow"
@click="emit('fix')" @click="emit('fix')"
class="button mareike-button mareike-fix-button" class="fix-button"
> style="width: 100%; margin-bottom: 10px;"
Abrechnung ablehnen und korrigieren value="Abrechnung ablehnen und korrigieren"
</button><br /> />
<br />
<button <input type="button"
v-if="props.data.status === 'new' && modeShow" v-if="props.data.status === 'new' && modeShow"
@click="emit('deny')" @click="emit('deny')"
class="button mareike-button mareike-deny-button" class="deny-button"
> style="width: 100%"
Abrechnung ablehnen value="Abrechnung ablehnen"
</button> />
</td> </td>
</tr> </tr>

View File

@@ -16,30 +16,34 @@ const emit = defineEmits(["accept", "deny", "fix", "reopen"])
<template> <template>
<span id="invoice_details_header"> <span id="invoice_details_header">
<table> <table>
<tr> <tr>
<td>Name:</td> <td>Name:</td>
<td v-if="modeShow">{{props.data.contactName}}</td> <td v-if="modeShow">{{props.data.contactName}}</td>
<td v-else style="width: 300px;">{{props.data.contactName}}</td> <td v-else style="width: 300px;">{{props.data.contactName}}</td>
<td v-if="modeShow" style="width: 250px;">Kostenstelle</td> <td v-if="modeShow" style="width: 250px;">Kostenstelle</td>
<td v-else style="width: 300px;">Kostensatelle (ursprünglich)</td> <td v-else style="width: 300px;">Kostensatelle (ursprünglich)</td>
<td>{{props.data.costUnitName}}</td> <td>{{props.data.costUnitName}}</td>
<td rowspan="4" style="vertical-align: top;"> <td
<button rowspan="4"
v-if="props.data.status === 'new' && modeShow" style="vertical-align: top;
@click="emit('reject')" padding-top: 15px;
class="button mareike-button mareike-deny-button" padding-right: 25px;
> text-align: right;"
Abrechnung zurückziehen >
</button> <input type="button"
<button v-if="props.data.status === 'denied' && modeShow" v-if="props.data.status === 'new' && modeShow"
@click="emit('delete')" @click="emit('reject')"
class="button mareike-button mareike-deny-button" class="deny-button"
> value="Abrechnung zurückziehen" />
Abrechnung Endgültig löschen
</button> <input type="button"
</td> v-if="props.data.status === 'denied' && modeShow"
@click="emit('delete')"
class="deny-button"
value="Abrechnung Endgültig löschen" />
</td>
</tr> </tr>
<!-- Rest der Tabelle bleibt unverändert --> <!-- Rest der Tabelle bleibt unverändert -->

View File

@@ -53,9 +53,13 @@ input[type="submit"] {
} }
input[type="button"]:hover, input[type="button"]:hover,
input[type="submit"]:hover { input[type="submit"]:hover,
background-color: #1d4899; .deny-button:hover,
color: #ffffff; .accept-button:hover,
.fix-button:hover
{
background-color: #1d4899 !important;
color: #ffffff !important;
} }
.error_text { .error_text {
@@ -69,3 +73,18 @@ input[type="submit"]:hover {
font-weight: bold; font-weight: bold;
color: #2a7caf; color: #2a7caf;
} }
.accept-button {
background-color: #508c4c !important;
color: #ffffff;
}
.deny-button {
background-color: #c9302c !important;
color: #ffffff;
}
.fix-button {
background-color: #d3d669 !important;
color: #000000 !important;
}