Skip to content

Commit

Permalink
Update invoice metadata prompts and make date fields required closes: #…
Browse files Browse the repository at this point in the history
…156 (#213)

* Update invoice metadata prompts and make date fields required

* resolve #156 small update with layout
  • Loading branch information
Adasjo authored Nov 14, 2024
1 parent 9e13ec1 commit e18d8fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/invoices/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@
</div>
<div class="clearfix"></div>
<h2 v-if="payed && payed != 'yes-i-have' && payed != 'no-i-will'">Metadata</h2>
<p v-if="payed && payed != 'yes-i-have' && payed != 'no-i-will'">Frivilligt, men ju mer desto bättre. Förfallodatum kan hjälpa den som betalar att betala ut i tid.</p>
<div class="form" v-if="payed && payed != 'yes-i-have' && payed != 'no-i-will'">
<div class="form-entry">
<span class="description">
<label for="invoice-date" v-tooltip="{ content: 'Det datum fakturan utfärdades (står på fakturan)' }">
Fakturadatum:
</label>
<span class="desc">Obligatoriskt</span>
<span class="hint"></span>
</span>
<div class="input">
<input type="date" name="invoice-date" />
<input type="date" name="invoice-date" required/>
</div>
</div>

Expand All @@ -136,10 +136,11 @@ <h2 v-if="payed && payed != 'yes-i-have' && payed != 'no-i-will'">Metadata</h2>
<label for="invoice-due-date" v-tooltip="{ content: 'Det datum fakturan senast ska vara betald (står på fakturan)' }">
Förfallodatum:
</label>
<span class="desc">Obligatoriskt</span>
<span class="hint"></span>
</span>
<div class="input">
<input type="date" name="invoice-due-date" />
<input type="date" name="invoice-due-date" required/>
</div>
</div>
<div class="clearfix"></div>
Expand Down

0 comments on commit e18d8fa

Please sign in to comment.