Add valuator groups

This commit is contained in:
rgarcia
2018-01-26 19:52:41 +01:00
parent 0e61d49800
commit cddfdf4b84
15 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<div>
Name: <%= group.name %>
</div>
<div>
Members:
</div>
<div>
Edit:
<%= link_to "Edit", edit_admin_valuator_group_path(group) %>
</div>
<div>
Destoy:
<%= link_to "Destroy", admin_valuator_group_path(group), method: :delete %>
</div>
<br/>

View File

@@ -0,0 +1,4 @@
<%= form_for [:admin, @group] do |f| %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>

View File

@@ -0,0 +1,4 @@
<%= render partial: 'group', collection: @groups %>
There are <%= @groups.count %> groups of users
<%= link_to "Nuevo", new_admin_valuator_group_path %>

View File

@@ -0,0 +1,4 @@
<%= form_for [:admin, @group] do |f| %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>

View File

@@ -0,0 +1,4 @@
Hey there I'm group <%= @group.name %>
<br/>
<%= link_to "Ver todos los grupos", admin_valuator_groups_path %>

View File

@@ -2,6 +2,8 @@
<%= render "admin/shared/user_search", url: search_admin_valuators_path %>
<%= link_to "Grupos de evaluadores", admin_valuator_groups_path %>
<div id="valuators">
<% if @valuators.any? %>
<h3 class="margin"><%= page_entries_info @valuators %></h3>