comparison app/views/projects/_form.html.erb @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 045e5984313c 622f24f53b42
children
comparison
equal deleted inserted replaced
1297:0a574315af3e 1298:4f746d8966dd
5 <p><%= f.text_field :name, :required => true, :size => 60 %> 5 <p><%= f.text_field :name, :required => true, :size => 60 %>
6 <br /> 6 <br />
7 <em class="info"> <%= l(:text_project_name_info).html_safe %></em> 7 <em class="info"> <%= l(:text_project_name_info).html_safe %></em>
8 </p> 8 </p>
9 9
10 <% unless @project.allowed_parents.compact.empty? %> 10 <p><%= f.text_area :description, :rows => 8, :class => 'wiki-edit' %></p>
11 <p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p> 11 <p><%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %>
12 <% end %>
13
14 <p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
15 <p><%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %>
16 <% unless @project.identifier_frozen? %> 12 <% unless @project.identifier_frozen? %>
17 <br /> 13 <br />
18 <em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em> 14 <em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em>
19 <% end %></p> 15 <% end %></p>
20 <p><%= f.text_field :homepage, :size => 60 %> 16 <p><%= f.text_field :homepage, :size => 60 %>
34 <%= f.radio_button :is_public, 0, :checked => (initialised && !@project.is_public?) %> 30 <%= f.radio_button :is_public, 0, :checked => (initialised && !@project.is_public?) %>
35 <%= l(:text_project_private_info) %> 31 <%= l(:text_project_private_info) %>
36 <br> 32 <br>
37 <em class="info"><%= l(:text_project_visibility_info) %></em> 33 <em class="info"><%= l(:text_project_visibility_info) %></em>
38 </p> 34 </p>
35
36 <% unless @project.allowed_parents.compact.empty? %>
37 <p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p>
38 <% end %>
39
40 <% if @project.safe_attribute? 'inherit_members' %>
41 <p><%= f.check_box :inherit_members %></p>
42 <% end %>
43
39 <%= wikitoolbar_for 'project_description' %> 44 <%= wikitoolbar_for 'project_description' %>
40 45
41 <% @project.custom_field_values.each do |value| %> 46 <% @project.custom_field_values.each do |value| %>
42 <p><%= custom_field_tag_with_label :project, value %></p> 47 <p><%= custom_field_tag_with_label :project, value %></p>
43 <% end %> 48 <% end %>
86 <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %> 91 <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
87 </fieldset> 92 </fieldset>
88 <% end %> 93 <% end %>
89 <% end %> 94 <% end %>
90 <!--[eoform:project]--> 95 <!--[eoform:project]-->
96
97 <% unless @project.identifier_frozen? %>
98 <% content_for :header_tags do %>
99 <%= javascript_include_tag 'project_identifier' %>
100 <% end %>
101 <% end %>
102
103 <% if !User.current.admin? && @project.inherit_members? && @project.parent && User.current.member_of?(@project.parent) %>
104 <%= javascript_tag do %>
105 $(document).ready(function() {
106 $("#project_inherit_members").change(function(){
107 if (!$(this).is(':checked')) {
108 if (!confirm("<%= escape_javascript(l(:text_own_membership_delete_confirmation)) %>")) {
109 $("#project_inherit_members").attr("checked", true);
110 }
111 }
112 });
113 });
114 <% end %>
115 <% end %>