Make budget ID mandatory for reimbursements

This commit is contained in:
Yingtong Li 2022-01-26 21:44:35 +11:00
parent 7d337c92d1
commit 5c8c4750a5
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -2,7 +2,7 @@
{# {#
Society Self-Service Society Self-Service
Copyright © 2018-2019 Yingtong Li (RunasSudo) Copyright © 2018-2022 Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by
@ -43,8 +43,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="ui inline grid field"> <div class="ui required grid field">
<label class="three wide column">Budget ID (if known)</label> <label class="three wide column">Budget ID</label>
<input class="eleven wide column" type="text" name="budget_id" value="{{ claim.budget_id }}"> <input class="eleven wide column" type="text" name="budget_id" value="{{ claim.budget_id }}">
</div> </div>
<div class="ui required inline grid field"> <div class="ui required inline grid field">
@ -156,7 +156,8 @@
keyboardShortcuts: false, keyboardShortcuts: false,
fields: { fields: {
purpose: 'empty', purpose: 'empty',
date: 'empty' date: 'empty',
budget_id: 'empty'
}, },
onSuccess: function(event, fields) { onSuccess: function(event, fields) {
var items_data = []; var items_data = [];