added invites
This commit is contained in:
13
app/views/moderator/invitations/index.html.erb
Normal file
13
app/views/moderator/invitations/index.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<div id="c-moderator-invitations">
|
||||
<div id="a-index">
|
||||
<h1>Invitations</h1>
|
||||
|
||||
<ul>
|
||||
<% @users.each do |user| %>
|
||||
<li><%= link_to user.name, user_path(user) %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= numbered_paginator(@users) %>
|
||||
</div>
|
||||
</div>
|
||||
19
app/views/moderator/invitations/new.html.erb
Normal file
19
app/views/moderator/invitations/new.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<div id="c-moderator-invitations">
|
||||
<div id="a-new">
|
||||
<h1>New Invitation</h1>
|
||||
|
||||
<%= form_tag(moderator_invitations_path) do %>
|
||||
<div class="input">
|
||||
<label>User</label>
|
||||
<%= text_field :invitation, :user_name %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<label>Level</label>
|
||||
<%= level_select %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user