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!
|
||||
|
||||
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
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
= smart_listing.paginate
|
||||
= smart_listing.pagination_per_page_links
|
||||
|
||||
- else
|
||||
%h4.center
|
||||
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