Extract footer for budgets to a component
This commit is contained in:
committed by
Javi Martín
parent
bbb4e04c7c
commit
f936c992e2
10
app/components/budgets/footer_component.html.erb
Normal file
10
app/components/budgets/footer_component.html.erb
Normal 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>
|
||||||
2
app/components/budgets/footer_component.rb
Normal file
2
app/components/budgets/footer_component.rb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class Budgets::FooterComponent < ApplicationComponent
|
||||||
|
end
|
||||||
@@ -60,13 +60,4 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="row">
|
<%= render Budgets::FooterComponent.new %>
|
||||||
<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>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user