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]-->
|
2007-04-02 22:44:35 +04:00
|
|
|
<p><%= f.text_field :name, :required => true %><br /><em><%= l(:text_caracters_maximum, 30) %></em></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.admin? and !@root_projects.empty? %>
|
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 %>
|
|
|
|
|
2007-08-17 15:21:58 +04:00
|
|
|
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 5 %><em><%= l(:text_caracters_maximum, 255) %></em></p>
|
2007-12-03 13:28:08 +03:00
|
|
|
<p><%= f.text_field :identifier, :required => true, :disabled => @project.identifier_frozen? %><br /><em><%= l(:text_length_between, 3, 20) %> <%= l(:text_project_identifier_info) unless @project.identifier_frozen? %></em></p>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><%= f.text_field :homepage, :size => 40 %></p>
|
|
|
|
<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
|
|
|
|
2006-07-31 23:52:08 +04:00
|
|
|
<% for @custom_value in @custom_values %>
|
|
|
|
<p><%= custom_field_tag_with_label @custom_value %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
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
|
|
|
|
|
|
|
<% unless @custom_fields.empty? %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<fieldset class="box"><legend><%=l(:label_custom_field_plural)%></legend>
|
2006-09-02 17:33:23 +04:00
|
|
|
<% for custom_field in @custom_fields %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<label class="floating">
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= check_box_tag "custom_field_ids[]", custom_field.id, ((@project.custom_fields.include? custom_field) or custom_field.is_for_all?), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
|
2007-11-20 23:29:03 +03:00
|
|
|
<%= custom_field.name %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
</fieldset>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2006-12-24 16:38:45 +03:00
|
|
|
<!--[eoform:project]-->
|
2007-11-20 23:29:03 +03:00
|
|
|
|
2006-12-24 16:38:45 +03:00
|
|
|
|
2007-01-06 12:08:17 +03:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'calendar/calendar' %>
|
|
|
|
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
|
|
|
|
<%= javascript_include_tag 'calendar/calendar-setup' %>
|
|
|
|
<%= stylesheet_link_tag 'calendar' %>
|
2007-06-13 00:12:05 +04:00
|
|
|
<% end %>
|