<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Patrick Aljord # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2007, 2008 Johan Sørensen # # 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"), :hint => "Select the owner of this project; either yourself or a group you are a member of").html_safe -%>
  • <% end -%>
  • <%= form.label :tag_list, t(:tag_list, :scope => 'activerecord.attributes.project') -%>
    <%= form.text_field :tag_list -%>
  • <%= form.label :license, license_label("activerecord.attributes.project") -%>
    <%= form.select(:license, project_license_choices(:selected => default_license(@project)).html_safe) -%>
  • <%= 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 :description, t(:description, :scope => 'activerecord.attributes.project') -%>
    <%= t("views.projects.hint").html_safe %> <%= form.text_area :description, :class => "text wide tall" -%>