Commit 7977e9ea3847c41829276f652969993f41c4943e
1 parent
9b050113
Exists in
master
and in
29 other branches
ActionItem102: creating Region model class
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@657 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
15 additions
and
1 deletions
Show diff stats
app/helpers/categories_helper.rb
app/views/categories/_form.rhtml
... | ... | @@ -4,8 +4,10 @@ |
4 | 4 | <% if @category.new_record? %> |
5 | 5 | <% if @category.parent %> |
6 | 6 | <%= hidden_field_tag('parent_id', @category.parent.id) %> |
7 | + <%= hidden_field_tag('type', @category.parent.class.name) %> | |
8 | + <% else %> | |
9 | + <%= select_category_type :type %> | |
7 | 10 | <% end %> |
8 | - <%= select_category_type :type %> | |
9 | 11 | <% end %> |
10 | 12 | |
11 | 13 | <%= select_color_for_category %> | ... | ... |