2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'project' %>
|
2006-12-24 16:38:45 +03:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<div class="box">
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[form:project]-->
|
2010-08-19 08:30:41 +04:00
|
|
|
<p><%= f.text_field :name, :required => true, :maxlength => 30 %><br /><em><%= l(:text_caracters_maximum, 30) %></em></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2009-12-24 19:18:15 +03:00
|
|
|
<% unless @project.allowed_parents.compact.empty? %>
|
2010-01-21 21:21:56 +03:00
|
|
|
<p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p>
|
2006-07-09 20:30:01 +04:00
|
|
|
<% end %>
|
|
|
|
|
2008-01-20 21:37:51 +03:00
|
|
|
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
|
2010-08-19 08:30:41 +04:00
|
|
|
<p><%= f.text_field :identifier, :required => true, :disabled => @project.identifier_frozen?, :maxlength => 20 %>
|
2008-01-20 21:37:51 +03:00
|
|
|
<% unless @project.identifier_frozen? %>
|
2009-04-04 13:55:17 +04:00
|
|
|
<br /><em><%= l(:text_length_between, :min => 1, :max => 20) %> <%= l(:text_project_identifier_info) %></em>
|
2008-01-20 21:37:51 +03:00
|
|
|
<% end %></p>
|
2008-05-25 17:37:29 +04:00
|
|
|
<p><%= f.text_field :homepage, :size => 60 %></p>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.check_box :is_public %></p>
|
2007-08-17 15:21:58 +04:00
|
|
|
<%= wikitoolbar_for 'project_description' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-06-28 00:13:56 +04:00
|
|
|
<% @project.custom_field_values.each do |value| %>
|
|
|
|
<p><%= custom_field_tag_with_label :project, value %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2008-11-04 21:27:13 +03:00
|
|
|
<%= call_hook(:view_projects_form, :project => @project, :form => f) %>
|
2007-11-20 23:29:03 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% unless @trackers.empty? %>
|
|
|
|
<fieldset class="box"><legend><%=l(:label_tracker_plural)%></legend>
|
|
|
|
<% @trackers.each do |tracker| %>
|
|
|
|
<label class="floating">
|
|
|
|
<%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.include?(tracker) %>
|
|
|
|
<%= tracker %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
<%= hidden_field_tag 'project[tracker_ids][]', '' %>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
2006-11-12 21:50:30 +03:00
|
|
|
|
2008-06-28 00:13:56 +04:00
|
|
|
<% unless @issue_custom_fields.empty? %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<fieldset class="box"><legend><%=l(:label_custom_field_plural)%></legend>
|
2008-06-28 00:13:56 +04:00
|
|
|
<% @issue_custom_fields.each do |custom_field| %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<label class="floating">
|
2008-06-28 00:13:56 +04:00
|
|
|
<%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<%= custom_field.name %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
2008-06-28 00:13:56 +04:00
|
|
|
<%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
|
2007-11-20 23:29:03 +03:00
|
|
|
</fieldset>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2006-12-24 16:38:45 +03:00
|
|
|
<!--[eoform:project]-->
|