Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Indicate non editable cash state forms with message
Browse files Browse the repository at this point in the history
  • Loading branch information
casperboone committed Jun 9, 2018
1 parent 1637c9e commit 7aeb3d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/components/CashStateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<div class="cash-state-form">
<div class="px-8 py-4 bg-grey-lighter">
<div class="text-center">
<input :disabled="!cashState.editable" type="text" v-model="cashState.author" placeholder="Ingevuld door: Voornaam Achternaam" class="form-input bg-white mt-1 block w-full text-center">
<input :disabled="!cashState.editable" type="text" v-model="cashState.author" placeholder="Ingevuld door: Voornaam Achternaam" :class="'form-input mt-1 block w-full text-center ' + (cashState.editable ? 'bg-white' : 'py-0')">
</div>
</div>

<div class="p-8 bg-grey-lightest">

<div v-if="!cashState.editable" class="bg-red bg-teal text-white rounded px-4 py-2 -mt-4 mb-4"><strong>Let op:</strong> Deze informatie kan niet worden bewerkt.</div>

<div class="grid">
<div v-for="bill in cashState.bills" :key="bill.amount">
<div class="flex justify-between mb-3 items-center">
Expand Down

0 comments on commit 7aeb3d3

Please sign in to comment.