Before, users needed to navigate to the list of groups in order to add, edit or delete a group. Also, they need to navigate to the list of groups first, and then to the list of headings for that group in order to add, edit or delete a heading. Now, it's possible to do all these actions for any group or heading from the participatory budget view to bring simplicity and to reduce the number of clicks from a user perspective. Co-Authored-By: Javi Martín <javim@elretirao.net>
18 lines
272 B
Ruby
18 lines
272 B
Ruby
class Admin::BudgetHeadingsController < Admin::BaseController
|
|
include Admin::BudgetHeadingsActions
|
|
|
|
def new
|
|
@heading = @group.headings.new
|
|
end
|
|
|
|
private
|
|
|
|
def headings_index
|
|
admin_budget_path(@budget)
|
|
end
|
|
|
|
def new_action
|
|
:new
|
|
end
|
|
end
|