Class: ContentBlockTools::Presenters::BlockPresenters::Contact::ContactFormPresenter
- Inherits:
-
BasePresenter
- Object
- BasePresenter
- ContentBlockTools::Presenters::BlockPresenters::Contact::ContactFormPresenter
- Defined in:
- lib/content_block_tools/presenters/block_presenters/contact/contact_form_presenter.rb
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
Methods inherited from BasePresenter
Constructor Details
This class inherits a constructor from ContentBlockTools::Presenters::BlockPresenters::BasePresenter
Instance Method Details
#render ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/content_block_tools/presenters/block_presenters/contact/contact_form_presenter.rb', line 6 def render content_tag(:p, class: "govuk-body govuk-!-margin-bottom-4") do concat content_tag(:span, title_content) concat content_tag(:a, item[:url], class: "govuk-link", href: item[:url]) end end |