feat(Administrateur::ArchivesControllers): add archives #index and #create for admin
This commit is contained in:
parent
f1f55c3e81
commit
7fb85c97cb
23 changed files with 270 additions and 135 deletions
|
@ -5,15 +5,7 @@ class ProcedureArchiveService
|
|||
@procedure = procedure
|
||||
end
|
||||
|
||||
def create_pending_archive(instructeur, type, month = nil)
|
||||
groupe_instructeurs = instructeur
|
||||
.groupe_instructeurs
|
||||
.where(procedure: @procedure)
|
||||
|
||||
Archive.find_or_create_archive(type, month, groupe_instructeurs)
|
||||
end
|
||||
|
||||
def make_and_upload_archive(archive, instructeur)
|
||||
def make_and_upload_archive(archive)
|
||||
dossiers = Dossier.visible_by_administration
|
||||
.where(groupe_instructeur: archive.groupe_instructeurs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue