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-07-29 23:54:22 +04:00
|
|
|
<p><label for="project_name"><%=l(:field_name)%> <span class="required">*</span></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'project', 'name' %></p>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if admin_loggedin? %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="project_parent_id"><%=l(:field_parent)%></label><br/>
|
2006-07-09 20:30:01 +04:00
|
|
|
<select name="project[parent_id]">
|
|
|
|
<option value=""></option>
|
|
|
|
<%= options_from_collection_for_select @root_projects, "id", "name", @project.parent_id %>
|
|
|
|
</select></p>
|
|
|
|
<% end %>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="project_description"><%=l(:field_description)%> <span class="required">*</span></label><br/>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_area 'project', 'description', :cols => 60, :rows => 3 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><label for="project_homepage"><%=l(:field_homepage)%></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'project', 'homepage', :size => 40 %></p>
|
|
|
|
|
2006-07-09 20:30:01 +04:00
|
|
|
<p><%= check_box 'project', 'is_public' %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<label for="project_is_public"><%=l(:field_is_public)%></label></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
<% for custom_value in @custom_values %>
|
|
|
|
<p><%= custom_field_tag_with_label custom_value %></p>
|
|
|
|
<% end %>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<fieldset><legend><%=l(:label_custom_field_plural)%></legend>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% for custom_field in @custom_fields %>
|
|
|
|
<input type="checkbox"
|
|
|
|
|
|
|
|
name="custom_field_ids[]"
|
|
|
|
value="<%= custom_field.id %>"
|
|
|
|
<%if @project.custom_fields.include? custom_field%>checked="checked"<%end%>
|
|
|
|
> <%= custom_field.name %>
|
|
|
|
|
|
|
|
<% end %></fieldset>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:project]-->
|