saucy 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/views/accounts/edit.html.erb +0 -1
- data/app/views/invitations/new.html.erb +2 -1
- data/app/views/memberships/edit.html.erb +9 -8
- data/app/views/projects/edit.html.erb +1 -0
- data/app/views/projects/new.html.erb +1 -1
- data/app/views/shared/_saucy_javascript.html.erb +1 -1
- data/lib/generators/saucy/features/templates/features/manage_users.feature +3 -2
- metadata +3 -3
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<h2>Invite a new User</h2>
|
|
3
3
|
<% end -%>
|
|
4
4
|
|
|
5
|
+
<%= render :partial => 'accounts/tab_bar' %>
|
|
6
|
+
|
|
5
7
|
<%= semantic_form_for [current_account, @invitation] do |form| -%>
|
|
6
8
|
<%= form.inputs do -%>
|
|
7
9
|
<%= form.input :email %>
|
|
@@ -13,4 +15,3 @@
|
|
|
13
15
|
<%= form.commit_button "Invite User" %>
|
|
14
16
|
<% end -%>
|
|
15
17
|
<% end -%>
|
|
16
|
-
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
<h2>Permissions for <span><%= @membership.name %></span> on <%= current_account.name %></h2>
|
|
3
3
|
<% end -%>
|
|
4
4
|
|
|
5
|
+
<div class="actions">
|
|
6
|
+
<%= link_to @membership, :method => :delete, :confirm => "Are you sure?" do %>
|
|
7
|
+
<span class="delete_item">Remove <%= @membership.user.name %> from <%= current_account.name %></span>
|
|
8
|
+
<% end -%>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
5
11
|
<%= render :partial => 'accounts/tab_bar' %>
|
|
6
12
|
|
|
7
13
|
<%= semantic_form_for @membership do |form| -%>
|
|
8
14
|
<%= form.inputs do -%>
|
|
9
|
-
<%= form.input :admin %>
|
|
10
|
-
<%= form.input :projects, :as => :check_boxes, :collection => @projects %>
|
|
15
|
+
<%= form.input :admin, :label => "#{@membership.user.name} is an Admin on #{current_account.name}" %>
|
|
16
|
+
<%= form.input :projects, :as => :check_boxes, :collection => @projects, :label => "#{@membership.user.name} belongs to these projects:" %>
|
|
11
17
|
<% end -%>
|
|
12
18
|
<%= form.buttons do -%>
|
|
13
|
-
<%= form.commit_button "Update" %>
|
|
14
|
-
<li><%= link_to "Remove from account",
|
|
15
|
-
@membership,
|
|
16
|
-
:method => :delete,
|
|
17
|
-
:confirm => "Are you sure?" %></li>
|
|
19
|
+
<%= form.commit_button "Update" %>
|
|
18
20
|
<% end -%>
|
|
19
21
|
<% end -%>
|
|
20
|
-
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
});
|
|
7
7
|
$('#signup_account_name, #project_name').keyup(function(){
|
|
8
8
|
var mainPart = /^([\w\s]*)(\W*)/.exec($(this).val())[1];
|
|
9
|
-
mainPart = mainPart.replace(/ /g, "")
|
|
9
|
+
mainPart = mainPart.replace(/ /g, "").toLowerCase();
|
|
10
10
|
if(mainPart == "") mainPart = "keyword";
|
|
11
11
|
$(this).siblings('p.inline-hints').find('span').text(mainPart);
|
|
12
12
|
$('#signup_keyword, #project_keyword').val(mainPart);
|
|
@@ -99,8 +99,9 @@ Feature: Managing users
|
|
|
99
99
|
| name: Test | name: Frank |
|
|
100
100
|
When I go to the memberships page for the "Test" account
|
|
101
101
|
And I follow "Frank"
|
|
102
|
-
|
|
102
|
+
Then I should see "Frank belongs to these projects:"
|
|
103
|
+
And I should see "Frank is an Admin on Test"
|
|
104
|
+
When I follow "Remove Frank from Test"
|
|
103
105
|
Then I should see "User removed"
|
|
104
106
|
When I go to the memberships page for the "Test" account
|
|
105
107
|
Then I should not see "Frank"
|
|
106
|
-
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saucy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 59
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 16
|
|
10
|
+
version: 0.1.16
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- thoughtbot, inc.
|