Add some copyright notices
[gitorious:taladars-gitorious-saltation.git] / app / views / projects / _form.html.erb
1 <%
2 #--
3 #   Copyright (C) 2010 Marko Peltola <marko@markopeltola.com>
4 #   Copyright (C) 2010 Tero Hänninen <tero.j.hanninen@jyu.fi>
5 #   Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
6 #   Copyright (C) 2007, 2008 Johan Sørensen <johan@johansorensen.com>
7 #   Copyright (C) 2008 Patrick Aljord <patcito@gmail.com>
8 #   Copyright (C) 2008 Tor Arne Vestbø <tavestbo@trolltech.com>
9 #   Copyright (C) 2009 Fabio Akita <fabio.akita@gmail.com>
10 #
11 #   This program is free software: you can redistribute it and/or modify
12 #   it under the terms of the GNU Affero General Public License as published by
13 #   the Free Software Foundation, either version 3 of the License, or
14 #   (at your option) any later version.
15 #
16 #   This program is distributed in the hope that it will be useful,
17 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 #   GNU Affero General Public License for more details.
20 #
21 #   You should have received a copy of the GNU Affero General Public License
22 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 #++
24 %>
25 <ul class="form">
26         <fieldset>
27                 <li>
28                         <%= form.label :title, t(:title, :scope => 'activerecord.attributes.project') -%>
29                         <div><%= form.text_field :title -%></div>
30                 </li>
31                 <% unless ["edit", "update"].include?(controller.action_name) -%>
32                 <li>
33                 <%= form.label :slug, t(:slug, :scope => 'activerecord.attributes.project') -%>
34                 <div><%= form.text_field :slug -%></div>
35                 </li>
36                 <li>
37                         <%= form.current_user_or_group :owner, t("views.projects.owner"),
38                 :hint => "Select the owner of this project; either yourself or a group you're a member of"-%>
39                 </li>
40                 <% end -%>
41                 <li>
42                         <%= form.label :tag_list, t(:tag_list, :scope => 'activerecord.attributes.project') -%>
43                         <div><%= form.text_field :tag_list -%></div>
44                 </li>
45                 <li>
46                         <%= form.label :license, t(:license, :scope => 'activerecord.attributes.project') -%>
47                         <div><%= form.select :license, Project::LICENSES, { :selected => (@project.license || GitoriousConfig['default_license']) } -%>
48                         </div>
49                 </li>
50         </fieldset>
51         <fieldset>      
52                 <li>
53                         <%= form.label :home_url, t(:home_url, :scope => 'activerecord.attributes.project') -%>
54                         <div> <%= form.text_field :home_url -%></div>
55                 </li>
56                 <li>
57                         <%= form.label :mailinglist_url, t(:mailinglist_url, :scope => 'activerecord.attributes.project') -%>
58                         <div><%= form.text_field :mailinglist_url -%></div>
59                 </li>
60                 <li>
61                         <%= form.label :bugtracker_url, t(:bugtracker_url, :scope => 'activerecord.attributes.project') -%>
62                         <div><%= form.text_field :bugtracker_url -%></div>
63                 </li>
64         </fieldset>
65         <fieldset>
66                 <li>
67                         <%= form.label :wiki_enabled, t(:wiki_enabled, :scope => 'activerecord.attributes.project') -%>
68                         <div><%= form.check_box :wiki_enabled -%></div>
69                 </li>
70                 <% unless form.object.new_record? -%>
71                 <li>
72                 <%= form.label :wiki_permissions, t(:wiki_permissions, :scope => 'activerecord.attributes.repository') -%>
73                 <div><%= form.select :wiki_permissions, wiki_permission_choices -%></div>
74                 </li>
75                 <% end -%>
76                 <li>
77                   <%= form.label :visibility, t(:visibility, :scope => 'activerecord.attributes.project') -%>
78                   <div><%= form.select :visibility, visibility_choices -%></div>
79                 </li>
80
81         </fieldset>
82         <fieldset>
83                 <li>
84                         <%= form.label :description, t(:description, :scope => 'activerecord.attributes.project') -%>
85                         <div><small class="hint"><%= t("views.projects.hint") %></small>
86                         <%= form.text_area :description, :class => "text wide tall" -%></div>
87                 </li>
88         </fieldset>
89 </ul>