|
Lines 177-187
Link Here
|
| 177 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]"> |
177 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]"> |
| 178 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> |
178 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> |
| 179 |
[% IF budget.budget_has_children %] |
179 |
[% IF budget.budget_has_children %] |
| 180 |
<li class="disabled"><a href="#" class="deletefund-disabled" data-toggle="tooltip" data-placement="left" title="This fund has children"><i class="fa fa-trash"></i> Delete</a></li> |
180 |
<li class="disabled"><a href="#" class="deletefund-disabled" data-toggle="tooltip" data-placement="left" title="This fund has sub funds."><i class="fa fa-trash"></i> Delete</a></li> |
| 181 |
[% ELSE %] |
181 |
[% ELSE %] |
| 182 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash"></i> Delete</a></li> |
182 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash"></i> Delete</a></li> |
| 183 |
[% END %] |
183 |
[% END %] |
| 184 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_parent_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add child fund</a></li> |
184 |
<li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_parent_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add sub fund</a></li> |
| 185 |
</ul> |
185 |
</ul> |
| 186 |
</div> |
186 |
</div> |
| 187 |
</td> |
187 |
</td> |
|
Lines 268-274
Link Here
|
| 268 |
<li class="radio"> |
268 |
<li class="radio"> |
| 269 |
<label> |
269 |
<label> |
| 270 |
<input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" /> |
270 |
<input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" /> |
| 271 |
Update all child funds with this owner |
271 |
Update all sub funds with this owner |
| 272 |
</label> |
272 |
</label> |
| 273 |
<span class="hint">Selecting this option will overwrite existing fund owners, if any</span> |
273 |
<span class="hint">Selecting this option will overwrite existing fund owners, if any</span> |
| 274 |
</li> |
274 |
</li> |
|
Lines 694-700
Link Here
|
| 694 |
|
694 |
|
| 695 |
$(".deletefund-disabled").tooltip().on("click", function(e){ |
695 |
$(".deletefund-disabled").tooltip().on("click", function(e){ |
| 696 |
e.preventDefault(); |
696 |
e.preventDefault(); |
| 697 |
alert(_("This fund has children. It cannot be deleted.")); |
697 |
alert(_("This fund has sub funds. It cannot be deleted.")); |
| 698 |
}); |
698 |
}); |
| 699 |
}); |
699 |
}); |
| 700 |
//]]> |
700 |
//]]> |
| 701 |
- |
|
|