Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add another partial as an override point to avoid having to override …

…the entire _form.html.erb partial inside pages when all I want to do is add another text field below the page title.
  • Loading branch information...
commit 2ebea3038275e2abea719b2c0ea54f6533f92abf 1 parent 3cec44c
Philip Arndt parndt authored
6 vendor/refinerycms/pages/app/views/admin/pages/_form.html.erb
@@ -11,6 +11,12 @@
11 11 <%= f.label :title %>
12 12 <%= f.text_field :title, :class => "larger widest" %>
13 13 </div>
  14 +
  15 + <%= render :partial => "form_fields_after_title",
  16 + :locals => {
  17 + :f => f
  18 + } %>
  19 +
14 20 <div class='field'>
15 21 <%= render :partial => "form_page_parts",
16 22 :locals => {
1  vendor/refinerycms/pages/app/views/admin/pages/_form_fields_after_title.html.erb
... ... @@ -0,0 +1 @@
  1 +<%# Intentionally empty, useful override point to add extra fields. %>

0 comments on commit 2ebea30

Please sign in to comment.
Something went wrong with that request. Please try again.