2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'project' %>
|
2006-07-29 13:32:58 +04:00
|
|
|
<div class="box">
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[form:project]-->
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :name, :required => true %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if admin_loggedin? %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.select :parent_id, (@root_projects.collect {|p| [p.name, p.id]}), { :include_blank => true } %></p>
|
2006-07-09 20:30:01 +04:00
|
|
|
<% end %>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 3 %></p>
|
|
|
|
<p><%= f.text_field :homepage, :size => 40 %></p>
|
|
|
|
<p><%= f.check_box :is_public %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-07-31 23:52:08 +04:00
|
|
|
<% for @custom_value in @custom_values %>
|
|
|
|
<p><%= custom_field_tag_with_label @custom_value %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label><%=l(:label_custom_field_plural)%></label>
|
|
|
|
<% for custom_field in @custom_fields %>
|
|
|
|
<%= check_box_tag "custom_field_ids[]", custom_field.id, (@project.custom_fields.include? custom_field) %>
|
|
|
|
<%= custom_field.name %>
|
|
|
|
<% end %></p>
|
|
|
|
<!--[eoform:project]-->
|
2006-07-29 13:32:58 +04:00
|
|
|
</div>
|