Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2016-04-19 10:41:33 +02:00
commit a243ad9b87
3 changed files with 5 additions and 2 deletions

View file

@ -5,13 +5,14 @@ class AdministrationsController < ApplicationController
before_action :authenticate_administration!
def index
@admin = Administrateur.new
@admins = smart_listing_create :admins,
Administrateur.all,
Administrateur.all.order(:email),
partial: "administrations/list",
array: true
@admin = Administrateur.new
end
def show

View file

@ -20,6 +20,7 @@
= smart_listing.paginate
= smart_listing.pagination_per_page_links
- else
%h4.center
Aucun administrateur créé

View file

@ -0,0 +1 @@
<%= smart_listing_update :admins %>