diff options
Diffstat (limited to 'app/views/projects/_form.rhtml')
-rw-r--r-- | app/views/projects/_form.rhtml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/views/projects/_form.rhtml b/app/views/projects/_form.rhtml index ab0b35fab..a6102e012 100644 --- a/app/views/projects/_form.rhtml +++ b/app/views/projects/_form.rhtml @@ -1,4 +1,5 @@ <%= error_messages_for 'project' %> + <div class="box"> <!--[form:project]--> <p><%= f.text_field :name, :required => true %></p> @@ -22,5 +23,15 @@ <%= custom_field.name %>
<% end %></p> <% end %>
-<!--[eoform:project]-->
+<!--[eoform:project]--> +</div> + +<div class="box"><h3><%= check_box_tag "repository_enabled", 1, !@project.repository.nil?, :onclick => "Element.toggle('repository');" %> <%= l(:label_repository) %></h3> +<%= hidden_field_tag "repository_enabled", 0 %> +<div id="repository"> +<% fields_for :repository, @project.repository, { :builder => TabularFormBuilder, :lang => current_language} do |repository| %> +<p><%= repository.text_field :url, :size => 60, :required => true %><br />(http://, https://, svn://)</p> +<% end %> +</div> +<%= javascript_tag "Element.hide('repository');" if @project.repository.nil? %> </div> |