app/views/procedures/_show.arb
# frozen_string_literal: true
panel I18n.t("census.procedures.procedure") do
attributes_table_for resource do
row :created_at
state_row :state
if resource.processed?
row :processed_by
row :processed_at
row(:comment) if resource.comment.present?
end
end
if resource.person_location && resource.processed?
panel resource.person_location.model_name.human do
attributes_table_for resource.person_location do
row :ip
row :user_agent
row :created_at
row :updated_at
row :discarded_at
end
end
end
end