manager: remove support for old pj

This commit is contained in:
Pierre de La Morinerie 2019-07-25 17:07:28 +02:00
parent 0da0a2b446
commit f6a1c7ded3
5 changed files with 0 additions and 26 deletions

View file

@ -8,7 +8,6 @@ class ProcedureDashboard < Administrate::BaseDashboard
# which determines how the attribute is displayed # which determines how the attribute is displayed
# on pages throughout the dashboard. # on pages throughout the dashboard.
ATTRIBUTE_TYPES = { ATTRIBUTE_TYPES = {
types_de_piece_justificative: TypesDePieceJustificativeCollectionField,
types_de_champ: TypesDeChampCollectionField, types_de_champ: TypesDeChampCollectionField,
types_de_champ_private: TypesDeChampCollectionField, types_de_champ_private: TypesDeChampCollectionField,
path: ProcedureLinkField, path: ProcedureLinkField,
@ -72,7 +71,6 @@ class ProcedureDashboard < Administrate::BaseDashboard
:archived_at, :archived_at,
:types_de_champ, :types_de_champ,
:types_de_champ_private, :types_de_champ_private,
:types_de_piece_justificative,
:for_individual, :for_individual,
:auto_archive_on, :auto_archive_on,
:gestionnaires, :gestionnaires,

View file

@ -1,7 +0,0 @@
require "administrate/field/base"
class TypesDePieceJustificativeCollectionField < Administrate::Field::Base
def to_s
data
end
end

View file

@ -1,4 +0,0 @@
.field-unit__label
= f.label field.attribute
.field-unit__field
= f.text_field field.attribute

View file

@ -1,12 +0,0 @@
- if field.data.any?
%table.collection-data{ "aria-labelledby": "page-title" }
%thead
%tr
%td.cell-label Libelle
%tbody
- field.data.order(:order_place).each do |f|
%tr
%td.cell-data
= f.libelle
- else
Aucun