Skip to content

Commit

Permalink
fix: create belongs_to from associations with buttons on form footers (
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Nov 13, 2023
1 parent 36fd9c4 commit 4c497ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/components/avo/views/resource_edit_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@
<% if Avo.configuration.buttons_on_form_footers %>
<% c.with_footer_tools do %>
<div class="mt-4">
<%= a_link back_path,
style: :text,
icon: 'arrow-left' do %>
<%= t('avo.cancel').capitalize %>
<% if back_path.present? %>
<%= a_link back_path,
style: :text,
icon: 'arrow-left' do %>
<%= t('avo.cancel').capitalize %>
<% end %>
<% end %>
<% if can_see_the_save_button? %>
<%= a_button color: :primary,
Expand Down

0 comments on commit 4c497ce

Please sign in to comment.