From 864d60999912ff2ee0641c80286937934988c960 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 24 Sep 2007 19:46:59 +0000 Subject: [PATCH] ActionItem70: adding missing files --- app/views/categories/_form.rhtml | 10 ++++++++++ app/views/categories/edit.rhtml | 2 ++ app/views/categories/new.rhtml | 3 +++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 app/views/categories/_form.rhtml create mode 100644 app/views/categories/edit.rhtml create mode 100644 app/views/categories/new.rhtml diff --git a/app/views/categories/_form.rhtml b/app/views/categories/_form.rhtml new file mode 100644 index 0000000..c99f7de --- /dev/null +++ b/app/views/categories/_form.rhtml @@ -0,0 +1,10 @@ +<%= error_messages_for 'category' %> + +<% labelled_form_for 'category' do |f| %> + <% if @category.new_record? && @category.parent %> + <%= hidden_field_tag('parent_id', @category.parent.id) %> + <% end %> + + <%= f.text_field 'name' %> + <%= submit_tag _('Save') %> +<% end %> diff --git a/app/views/categories/edit.rhtml b/app/views/categories/edit.rhtml new file mode 100644 index 0000000..385b44d --- /dev/null +++ b/app/views/categories/edit.rhtml @@ -0,0 +1,2 @@ +

<%= _('Editing %s') % @category.name %>

+<%= render :partial => 'form' %> diff --git a/app/views/categories/new.rhtml b/app/views/categories/new.rhtml new file mode 100644 index 0000000..122ca82 --- /dev/null +++ b/app/views/categories/new.rhtml @@ -0,0 +1,3 @@ +

<%= _('New category') %>

+<%= render :partial => 'form' %> + -- libgit2 0.21.2