Merge branch 'develop' into staging
This commit is contained in:
commit
a243ad9b87
3 changed files with 5 additions and 2 deletions
|
@ -5,13 +5,14 @@ class AdministrationsController < ApplicationController
|
||||||
before_action :authenticate_administration!
|
before_action :authenticate_administration!
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@admin = Administrateur.new
|
||||||
|
|
||||||
@admins = smart_listing_create :admins,
|
@admins = smart_listing_create :admins,
|
||||||
Administrateur.all,
|
Administrateur.all.order(:email),
|
||||||
partial: "administrations/list",
|
partial: "administrations/list",
|
||||||
array: true
|
array: true
|
||||||
|
|
||||||
@admin = Administrateur.new
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
= smart_listing.paginate
|
= smart_listing.paginate
|
||||||
= smart_listing.pagination_per_page_links
|
= smart_listing.pagination_per_page_links
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h4.center
|
%h4.center
|
||||||
Aucun administrateur créé
|
Aucun administrateur créé
|
||||||
|
|
1
app/views/administrations/index.js.erb
Normal file
1
app/views/administrations/index.js.erb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<%= smart_listing_update :admins %>
|
Loading…
Reference in a new issue