Skip to content

Commit

Permalink
Implement CR remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Oct 13, 2023
1 parent d9c79a1 commit fa3ed42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/organizations/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def create
if @user.save
@user.staff_account.add_role(user_params[:staff_account_attributes][:roles])
@user.invite!(current_user)
redirect_to staff_index_path, notice: "Staff saved successfully."
redirect_to staff_index_path, notice: "Invite sent!"
else
render :new, status: :unprocessable_entity
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/invitations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<!-- button -->
<div class="col-12 mt-3">
<%= form.submit 'Save profile', class: 'btn btn-primary' %>
<%= form.submit 'Send invite', class: 'btn btn-primary' %>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/invitations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="container-fluid p-4">

<!--page heading-->
<%= provide(:header_title, "New staff") %>
<%= provide(:header_title, "Invite staff") %>
<%= content_for :button do %>
<%= link_to "Back to staff", staff_index_path, class: "btn btn-primary" %><br>
Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/staff/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!--create staff button-->
<%= content_for :button do %>
<%= link_to "New Staff", new_user_invitation_path, class: "btn btn-primary" %><br>
<%= link_to "Invite Staff", new_user_invitation_path, class: "btn btn-primary" %><br>
<% end %>

<section class="container-fluid p-4">
Expand Down

0 comments on commit fa3ed42

Please sign in to comment.