<% #-- # Copyright (C) 2010 Juho Nieminen # Copyright (C) 2010 Marko Peltola # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2007, 2008 Johan Sørensen # Copyright (C) 2008 Patrick Aljord # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %>

<%= form.label :title, t(:title, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :title -%>

<% unless ["edit", "update"].include?(controller.action_name) -%>

<%= form.label :slug, t(:slug, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :slug -%>

<%= form.current_user_or_group :owner, t("views.projects.owner"), @admin_groups, :hint => "Select the owner of this project; either yourself or a group you're a member of"-%>

<% end -%>

<%= form.label :tag_list, t(:tag_list, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :tag_list -%>

<%= form.label :home_url, t(:home_url, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :home_url -%>

<%= form.label :mailinglist_url, t(:mailinglist_url, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :mailinglist_url -%>

<%= form.label :bugtracker_url, t(:bugtracker_url, :scope => 'activerecord.attributes.project') -%>
<%= form.text_field :bugtracker_url -%>

<%= form.label :wiki_enabled, t(:wiki_enabled, :scope => 'activerecord.attributes.project') -%> <%= form.check_box :wiki_enabled -%>

<% unless form.object.new_record? -%>

<%= form.label :wiki_permissions, t(:wiki_permissions, :scope => 'activerecord.attributes.repository') -%>
<%= form.select :wiki_permissions, wiki_permission_choices -%>

<% end -%>

<%= form.label :publicity, t("activerecord.attributes.project.visibility") -%>
<%= form.select :publicity, publicity_choices -%>

<%= form.label :description, t(:description, :scope => 'activerecord.attributes.project') -%>
<%= t("views.projects.hint") %>
<%= form.text_area :description, :class => "text wide tall" -%>