Allow admins to add and remove invitations per account
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
21
app/views/admin/users/_create_invitations.html.erb
Normal file
21
app/views/admin/users/_create_invitations.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<h3>Add new invitations to <%= @user.cn %>'s account</h3>
|
||||
<%= form_with(url: invitations_admin_user_path, method: :post) do |form| %>
|
||||
<ul role="list">
|
||||
<%= render FormElements::FieldsetComponent.new(
|
||||
positioning: :horizontal,
|
||||
title: "Amount"
|
||||
) do %>
|
||||
<%= form.select :amount, options_for_select([
|
||||
["3", "3"], ["5", "5"], ["10", "10"], ["20", "20"]
|
||||
]) %>
|
||||
<% end %>
|
||||
<%= render FormElements::FieldsetToggleComponent.new(
|
||||
field_name: "notify_user",
|
||||
enabled: true,
|
||||
title: "Notify user via email"
|
||||
) %>
|
||||
</ul>
|
||||
<p class="pt-6 border-t border-gray-200 text-right">
|
||||
<%= form.submit 'Add', class: "btn-md btn-blue w-full" %>
|
||||
</p>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user