Having links in the middle of a form distracts users from the task of filling in the form, and following a link before submitting the form will mean whatever has been filled in is lost. And the budgets form is already very long and hard to fill in. Having the phases table in the middle of it made it even harder. And, since we're planning to add the option to manage groups and headings from the same page, it's better to have a dedicated page for the form.
19 lines
619 B
Plaintext
19 lines
619 B
Plaintext
<main class="admin-budgets-show">
|
|
<%= back_link_to admin_budgets_path %>
|
|
|
|
<%= header %>
|
|
|
|
<%= render Admin::Budgets::DraftingComponent.new(budget) %>
|
|
<%= render Admin::Budgets::LinksComponent.new(budget) %>
|
|
|
|
<section aria-labelledby="phases_header">
|
|
<h3 id="phases_header"><%= t("admin.budgets.edit.phases_caption") %></h3>
|
|
<%= render Admin::BudgetPhases::PhasesComponent.new(budget) %>
|
|
</section>
|
|
|
|
<section aria-labelledby="actions_header">
|
|
<h3 id="actions_header"><%= t("admin.budgets.edit.actions") %></h3>
|
|
<%= render Admin::Budgets::ActionsComponent.new(budget) %>
|
|
</section>
|
|
</main>
|