summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-02 20:29:25 +0100
committerhukl <contact@smyck.org>2009-03-03 19:47:18 +0100
commit82f16e71d49350c1ad4aa48773db5d0f45a55c6c (patch)
tree72a341b68e2b1f35772e11add0bef7208e9b90b6 /app/views/nodes
parentc9183349c2fbacf24fca5cd7767190d069ce8873 (diff)
introducing page templates - need to add edit capabilities
renamed the custom template folder forgot one fix for the new custom template path page templates refined renamed page attribute template to template_name as i suspected it to be a reserved word. it still didn't work until i discovered that simon defined the accessible attributes! That costed me 40 minutes of lifetime. But he apologized ;) tests for public and custom page templates
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/edit.html.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index 64d4756..929bbf6 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -13,7 +13,10 @@
13 <%= f.error_messages %> 13 <%= f.error_messages %>
14 14
15 <% fields_for @draft do |d| %> 15 <% fields_for @draft do |d| %>
16 <p></p> 16 <p>
17 <%= d.label :template_name %>
18 <%= d.select :template_name, custom_page_templates %>
19 </p>
17 <p> 20 <p>
18 <%= d.label :title %><br /> 21 <%= d.label :title %><br />
19 <%= d.text_field :title %> 22 <%= d.text_field :title %>