Extract footer for budgets to a component

This commit is contained in:
Julian Herrero
2020-04-30 10:53:11 +07:00
committed by Javi Martín
parent bbb4e04c7c
commit f936c992e2
3 changed files with 13 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
<div class="row">
<div class="small-12 column">
<div id="section_help" class="margin" data-magellan-target="section_help">
<p class="lead">
<strong><%= t("budgets.index.section_footer.title") %></strong>
</p>
<p><%= t("budgets.index.section_footer.description") %></p>
</div>
</div>
</div>

View File

@@ -0,0 +1,2 @@
class Budgets::FooterComponent < ApplicationComponent
end

View File

@@ -60,13 +60,4 @@
</div>
<% end %>
<div class="row">
<div class="small-12 column">
<div id="section_help" class="margin" data-magellan-target="section_help">
<p class="lead">
<strong><%= t("budgets.index.section_footer.title") %></strong>
</p>
<p><%= t("budgets.index.section_footer.description") %></p>
</div>
</div>
</div>
<%= render Budgets::FooterComponent.new %>