Skip to content

Commit 75f5c13

Browse files
committed
Add code to model to enable text to be written
1 parent 6f91f60 commit 75f5c13

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/models/footer_widget.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class FooterWidget < Widget
2+
attribute :text, :string
23
end

app/views/footer_widget/show.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="col-12">
2-
<div class="col-3 cover-bg-blue ">
3-
<%= scrivito_tag :h6, widget, :headline, data: {newlines: false}, class:'cover-text-white' style:'padding-top:10px; '%>
4-
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:25px; padding-top:25px;'%>
2+
<div class="col-3 cover-bg-blue">
3+
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-top:10px;' %>
4+
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:25px; padding-top:25px;' %>
55
</div>
66
</div>

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<row>
1414
<%= yield %>
1515
<%= scrivito_body_tags %>
16-
</row>>
16+
</row>
1717
</center>
1818
</body>
1919
</html>

0 commit comments

Comments
 (0)