Commit a26ae65faa1853a88f2b9c94794d5b97c4363e8c
Committed by
Alessandro Palmeira
1 parent
d275490b
Exists in
staging
and in
42 other branches
[Mezuro] Project edition working
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/project_content.rb
plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb
| ... | ... | @@ -8,13 +8,11 @@ |
| 8 | 8 | |
| 9 | 9 | <%= hidden_field_tag 'project_content[profile_id]', profile.id %> |
| 10 | 10 | <%= hidden_field_tag 'id', @article.id %> |
| 11 | +<%= hidden_field_tag 'project_id', @article.project_id %> | |
| 11 | 12 | |
| 12 | 13 | <%= required_fields_message %> |
| 13 | -<% if !@project.nil? && !@article.id.nil? %> | |
| 14 | - <%= required f.text_field(:name, :disabled => 'true') %> | |
| 15 | -<% else %> | |
| 16 | - <%= required f.text_field(:name) %> | |
| 17 | -<% end %> | |
| 14 | + | |
| 15 | +<%= required f.text_field(:name) %> | |
| 18 | 16 | |
| 19 | 17 | <%= f.text_field :description %><br/> |
| 20 | 18 | ... | ... |