Lines 50-64
Link Here
|
50 |
<li><label for="shipment_budget_id">Shipping fund:</label> |
50 |
<li><label for="shipment_budget_id">Shipping fund:</label> |
51 |
<select id="shipment_budget_id" name="shipment_budget_id"> |
51 |
<select id="shipment_budget_id" name="shipment_budget_id"> |
52 |
<option value="">No fund</option> |
52 |
<option value="">No fund</option> |
53 |
[% FOREACH budget IN budgets_loop %] |
53 |
<optgroup label="Active budgets"> |
54 |
[% IF ( budget.selected ) %] |
54 |
[% FOREACH fund IN active_funds_loop %] |
55 |
<option selected="selected" value="[% budget.budget_id %]"> |
55 |
[% IF ( fund.selected ) %] |
56 |
[% ELSE %] |
56 |
<option selected="selected" value="[% fund.budget_id %]"> |
57 |
<option value="[% budget.budget_id %]"> |
57 |
[% ELSE %] |
58 |
[% END %] |
58 |
<option value="[% fund.budget_id %]"> |
59 |
[% budget.budget_name %] |
59 |
[% END %] |
60 |
</option> |
60 |
[% fund.budget_name %] |
61 |
[% END %] |
61 |
</option> |
|
|
62 |
[% END %] |
63 |
</optgroup> |
64 |
<optgroup label="Inactive budgets"> |
65 |
[% FOREACH fund IN inactive_funds_loop %] |
66 |
[% IF ( fund.selected ) %] |
67 |
<option selected="selected" value="[% fund.budget_id %]"> |
68 |
[% ELSE %] |
69 |
<option value="[% fund.budget_id %]"> |
70 |
[% END %] |
71 |
[% fund.budget_name %] |
72 |
</option> |
73 |
[% END %] |
74 |
</optgroup> |
62 |
</select></li> |
75 |
</select></li> |
63 |
|
76 |
|
64 |
[% IF ( invoiceclosedate ) %] |
77 |
[% IF ( invoiceclosedate ) %] |
Lines 132-147
Link Here
|
132 |
<td><input type="text" name="note" id="note_new" value="[% adjustment.note %]"/></td> |
145 |
<td><input type="text" name="note" id="note_new" value="[% adjustment.note %]"/></td> |
133 |
<td> |
146 |
<td> |
134 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
147 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
135 |
<option value="">No fund</option> |
148 |
<option value="">No fund</option> |
136 |
[% FOREACH budget IN budgets_loop %] |
149 |
<optgroup label="Active budgets"> |
137 |
[% IF ( budget.budget_id == adjustment.budget_id ) %] |
150 |
[% FOREACH fund IN active_funds_loop %] |
138 |
<option selected="selected" value="[% budget.budget_id %]"> |
151 |
[% IF ( fund.selected ) %] |
139 |
[% ELSE %] |
152 |
<option selected="selected" value="[% fund.budget_id %]"> |
140 |
<option value="[% budget.budget_id %]"> |
153 |
[% ELSE %] |
141 |
[% END %] |
154 |
<option value="[% fund.budget_id %]"> |
142 |
[% budget.budget_name %] |
155 |
[% END %] |
143 |
</option> |
156 |
[% fund.budget_name %] |
|
|
157 |
</option> |
158 |
[% END %] |
159 |
</optgroup> |
160 |
<optgroup label="Inactive budgets"> |
161 |
[% FOREACH fund IN inactive_funds_loop %] |
162 |
[% IF ( fund.selected ) %] |
163 |
<option selected="selected" value="[% fund.budget_id %]"> |
164 |
[% ELSE %] |
165 |
<option value="[% fund.budget_id %]"> |
166 |
[% END %] |
167 |
[% fund.budget_name %] |
168 |
</option> |
144 |
[% END %] |
169 |
[% END %] |
|
|
170 |
</optgroup> |
145 |
</select> |
171 |
</select> |
146 |
</td> |
172 |
</td> |
147 |
[% IF adjustment.encumber_open %] |
173 |
[% IF adjustment.encumber_open %] |
Lines 201-211
Link Here
|
201 |
<label for="budget_id_new">Fund: </label> |
227 |
<label for="budget_id_new">Fund: </label> |
202 |
<select id="budget_id_new" name="budget_id"> |
228 |
<select id="budget_id_new" name="budget_id"> |
203 |
<option selected="selected" value="">No fund</option> |
229 |
<option selected="selected" value="">No fund</option> |
204 |
[% FOREACH budget IN budgets_loop %] |
230 |
<optgroup label="Active budgets"> |
205 |
<option value="[% budget.budget_id %]"> |
231 |
[% FOREACH fund IN active_funds_loop %] |
206 |
[% budget.budget_name %] |
232 |
[% IF ( fund.selected ) %] |
207 |
</option> |
233 |
<option selected="selected" value="[% fund.budget_id %]"> |
|
|
234 |
[% ELSE %] |
235 |
<option value="[% fund.budget_id %]"> |
236 |
[% END %] |
237 |
[% fund.budget_name %] |
238 |
</option> |
239 |
[% END %] |
240 |
</optgroup> |
241 |
<optgroup label="Inactive budgets"> |
242 |
[% FOREACH fund IN inactive_funds_loop %] |
243 |
[% IF ( fund.selected ) %] |
244 |
<option selected="selected" value="[% fund.budget_id %]"> |
245 |
[% ELSE %] |
246 |
<option value="[% fund.budget_id %]"> |
247 |
[% END %] |
248 |
[% fund.budget_name %] |
249 |
</option> |
208 |
[% END %] |
250 |
[% END %] |
|
|
251 |
</optgroup> |
209 |
</select> |
252 |
</select> |
210 |
</li> |
253 |
</li> |
211 |
<li> |
254 |
<li> |