Merge pull request #357 from sgmap/Fix_bug_in_admin_procedure_v2
Fix bug in admin procedure v2
This commit is contained in:
commit
62a73e072b
3 changed files with 2 additions and 11 deletions
|
@ -84,7 +84,7 @@
|
|||
%h4 Options avancées
|
||||
|
||||
%label{ for: :auto_archive_on } Archivage automatique le
|
||||
= f.text_field :auto_archive_on, id: 'auto_archive_on', value: @procedure.auto_archive_on.try{ |d| d.localtime.strftime("%d-%m-%Y") }, data: { provide: 'datepicker', 'date-language' => 'fr', 'date-format' => 'dd/mm/yyyy' }
|
||||
= f.text_field :auto_archive_on, id: 'auto_archive_on', value: @procedure.auto_archive_on.try{ |d| d.strftime("%d-%m-%Y") }, data: { provide: 'datepicker', 'date-language' => 'fr', 'date-format' => 'dd/mm/yyyy' }
|
||||
(à 00h00)
|
||||
%p.help-block
|
||||
%i.fa.fa-info-circle
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
class ChangeProcedureAutoArchiveDateToDatetime < ActiveRecord::Migration[5.0]
|
||||
def up
|
||||
change_column :procedures, :auto_archive_on, :datetime
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :procedures, :auto_archive_on, :date
|
||||
end
|
||||
end
|
|
@ -358,7 +358,7 @@ ActiveRecord::Schema.define(version: 20170523092900) do
|
|||
t.string "lien_notice"
|
||||
t.boolean "for_individual", default: false
|
||||
t.boolean "individual_with_siret", default: false
|
||||
t.datetime "auto_archive_on"
|
||||
t.date "auto_archive_on"
|
||||
end
|
||||
|
||||
create_table "quartier_prioritaires", force: :cascade do |t|
|
||||
|
|
Loading…
Add table
Reference in a new issue