summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2009-04-21 14:01:34 +0200
committerJohan Sørensen <johan@johansorensen.com>2009-04-22 15:18:45 +0200
commite16dcab75a35f59254cc0bfdf81c4cc0cd5c6eaf (patch)
tree46dca3f080ee5313a40c35ee2927283ddc8e67ba /app
parentc6d31dd45ab2c935bba77a5af7978717a58db3bd (diff)
downloadgitorious-mainline-outdated-e16dcab75a35f59254cc0bfdf81c4cc0cd5c6eaf.zip
gitorious-mainline-outdated-e16dcab75a35f59254cc0bfdf81c4cc0cd5c6eaf.tar.gz
gitorious-mainline-outdated-e16dcab75a35f59254cc0bfdf81c4cc0cd5c6eaf.tar.bz2
User should be the default type to add as a committer (as opposed to a team)
Diffstat (limited to 'app')
-rw-r--r--app/views/committerships/new.html.erb18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/views/committerships/new.html.erb b/app/views/committerships/new.html.erb
index 2d17e43..bf803b4 100644
--- a/app/views/committerships/new.html.erb
+++ b/app/views/committerships/new.html.erb
@@ -47,22 +47,22 @@
<%= error_messages_for :committership -%>
<% form_for [@owner, @repository, @committership] do |f| -%>
<ul class="tab_menu inline_tabs">
- <li class="selected" id="add_group_tab">
- <a href="#add_group" id="add_group_link"><%= t("views.committerships.add_team") -%></a>
- </a>
- <li id="add_user_tab">
+ <li class="selected" id="add_user_tab">
<a href="#add_user" id="add_user_link"><%= t("views.committerships.add_user") -%></a>
</li>
+ <li id="add_group_tab">
+ <a href="#add_group" id="add_group_link"><%= t("views.committerships.add_team") -%></a>
+ </a>
</ul>
- <p id="add_group">
- <%= f.label :group_name, t("views.committerships.group_name") -%>:
- <%= text_field_with_auto_complete :group, :name, {}, :skip_style => true, :select => :name -%>
- </p>
- <p id="add_user" style="display:none;">
+ <p id="add_user">
<%= f.label :group_name, t("views.committerships.user_login") -%>:
<%= text_field_with_auto_complete :user, :login, {}, :skip_style => true, :select => :login -%>
</p>
+ <p id="add_group" style="display:none;">
+ <%= f.label :group_name, t("views.committerships.group_name") -%>:
+ <%= text_field_with_auto_complete :group, :name, {}, :skip_style => true, :select => :name -%>
+ </p>
<p class="hint">
<%= t("views.committerships.add_tema_note") -%>