added invites

This commit is contained in:
albert
2011-07-29 19:42:25 -04:00
parent c8afd34d15
commit 04103c3352
10 changed files with 117 additions and 0 deletions

View 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>

View 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>