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>
|
||||
<% 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 %>
|
||||
|
||||
Reference in New Issue
Block a user