2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'project' %>
|
|
|
|
|
|
|
|
<!--[form:project]-->
|
|
|
|
<p><label for="project_name"><%=_('Name')%> <span class="required">*</span></label><br/>
|
|
|
|
<%= text_field 'project', 'name' %></p>
|
|
|
|
|
2006-07-09 20:30:01 +04:00
|
|
|
<% if session[:user].admin %>
|
|
|
|
<p><label for="project_parent_id"><%=_('Subproject of')%></label><br/>
|
|
|
|
<select name="project[parent_id]">
|
|
|
|
<option value=""></option>
|
|
|
|
<%= options_from_collection_for_select @root_projects, "id", "name", @project.parent_id %>
|
|
|
|
</select></p>
|
|
|
|
<% end %>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<p><label for="project_descr"><%=_('Description')%> <span class="required">*</span></label><br/>
|
2006-07-09 20:30:01 +04:00
|
|
|
<%= text_area 'project', 'descr', :cols => 60, :rows => 3 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<p><label for="project_homepage"><%=_('Homepage')%></label><br/>
|
|
|
|
<%= text_field 'project', 'homepage', :size => 40 %></p>
|
|
|
|
|
2006-07-09 20:30:01 +04:00
|
|
|
<p><%= check_box 'project', 'is_public' %>
|
|
|
|
<label for="project_is_public"><%=_('Public')%></label></p>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<fieldset><legend><%=_('Custom fields')%></legend>
|
|
|
|
<% 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>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<!--[eoform:project]-->
|