Added interface and methods for edit the name of a Budget::Group if the budget is still inthe drafting phase
This commit is contained in:
6
app/views/admin/budget_groups/update.js.erb
Normal file
6
app/views/admin/budget_groups/update.js.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<% if @group.errors.any? %>
|
||||
$("#group-form-<%= @group.id %>").html('<%= j render("admin/budgets/group_form", group: @group, budget: @group.budget, button_title: "admin.budgets.form.submit", id: "group-form-#{@group.id}", css_class: "group-toggle-#{@group.id}" ) %>');
|
||||
<% else %>
|
||||
$("#group-name-<%= @group.id %>").html('<%= @group.name %>')
|
||||
$(".group-toggle-<%= @group.id %>").toggle()
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user