|
|
|
@ -1,35 +1,62 @@
|
|
|
|
|
<%= error_messages_for 'project' %>
|
|
|
|
|
<!--[form:project]-->
|
|
|
|
|
<% unless @project.new_record? %>
|
|
|
|
|
<p><%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %></p>
|
|
|
|
|
<p>
|
|
|
|
|
<%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %></p>
|
|
|
|
|
<p>
|
|
|
|
|
<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p style="padding-right: 20px;">
|
|
|
|
|
<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
|
</p><!--by young-->
|
|
|
|
|
<p><%= f.text_field :enterprise_name, :size => 60, :style => "width:490px;" %></p>
|
|
|
|
|
<p style="display: none" ><%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH,
|
|
|
|
|
<p>
|
|
|
|
|
<%#= f.text_field :enterprise_name, :size => 60, :style => "width:490px;" %>
|
|
|
|
|
<label for="project_description">
|
|
|
|
|
<%= l(:field_enterprise_name)%>
|
|
|
|
|
<span class="required"> </span>
|
|
|
|
|
</label>
|
|
|
|
|
<%= select_tag :organization_id,options_for_select(project_organizations_id_option,@project.organization_id),{} %>
|
|
|
|
|
</p>
|
|
|
|
|
<p style="display: none" >
|
|
|
|
|
<%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH,
|
|
|
|
|
value:"#{User.current.id.to_s + '_' +Time.now.to_s.gsub(' ','_').gsub(':','').gsub('+','')}" %>
|
|
|
|
|
<% unless @project.identifier_frozen? %>
|
|
|
|
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em>
|
|
|
|
|
<em class="info">
|
|
|
|
|
<%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %>
|
|
|
|
|
<%= l(:text_project_identifier_info).html_safe %>
|
|
|
|
|
</em>
|
|
|
|
|
<% end %></p>
|
|
|
|
|
|
|
|
|
|
<!-- <p style="margin-left:-10px;"><%#= f.text_field :homepage, :size => 60, :style => "width:488px;margin-left: 10px;" %></p> --> <!-- by huang -->
|
|
|
|
|
<p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;"><%= f.check_box :is_public, :style => "margin-left:10px;" %></em></p>
|
|
|
|
|
<p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;"><%= f.check_box :hidden_repo, :style => "margin-left:10px;" %></em></p>
|
|
|
|
|
<p style="margin-left:-10px;">
|
|
|
|
|
<em style ="color: #888888;display: block;font-size: 90%;font-style: normal;">
|
|
|
|
|
<%= f.check_box :is_public, :style => "margin-left:10px;" %>
|
|
|
|
|
</em>
|
|
|
|
|
</p>
|
|
|
|
|
<p style="margin-left:-10px;">
|
|
|
|
|
<em style ="color: #888888;display: block;font-size: 90%;font-style: normal;">
|
|
|
|
|
<%= f.check_box :hidden_repo, :style => "margin-left:10px;" %>
|
|
|
|
|
</em>
|
|
|
|
|
</p>
|
|
|
|
|
<!--
|
|
|
|
|
<p style="margin-left:-10px;"><em style ="color: #888888;display: block;font-size: 90%;font-style: normal;">
|
|
|
|
|
<%#= f.check_box :dts_test, :style => "margin-left:10px;" %>
|
|
|
|
|
</em></p>
|
|
|
|
|
-->
|
|
|
|
|
<p style="display:none;"><%= f.text_field :project_type, :value => 0 %></p>
|
|
|
|
|
<p style="display:none;">
|
|
|
|
|
<%= f.text_field :project_type, :value => 0 %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<%= wikitoolbar_for 'project_description' %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% @project.custom_field_values.each do |value| %>
|
|
|
|
|
<p><%= custom_field_tag_with_label :project, value %></p>
|
|
|
|
|
<p>
|
|
|
|
|
<%= custom_field_tag_with_label :project, value %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= call_hook(:view_projects_form, :project => @project, :form => f) %>
|
|
|
|
|
|
|
|
|
|