Open geekelo opened 1 month ago
This file defines the ActiveAdmin interface for managing Card::Request
records. It provides a comprehensive setup to handle the display, editing, and creation of card requests, while excluding the delete (destroy
) action.
card_request.rb
Card::Request
records under the "Cards" menu with the label "Requests" in the ActiveAdmin interface.index
, show
, edit
, new
) except for the destroy
action, meaning users cannot delete Card::Request
records from the admin interface.user
and processing_fee
records to optimize database queries when displaying the index and show pages.status
and external_id
(if the external_id
field is editable in the environment).Card::Request
records.Card::Request
record.id
, user
, salutation
, gender
, marital_status
, phone_number
, etc.card_type
, card_network
, external_id
, status
.processing_fee
, provider_fee
, bananacrystal_fee
, total_fee
.passport_bio_page
, passport_bio_selfie
, and digital_signature
if they are attached.Card::Request
records.external_id
field only if the environment is not production.status
field using predefined status values.Card::Request
records.index
view offers a summary of key information, while the show
view presents a detailed breakdown, including personal details, fees, and attached documents.status
and, conditionally, the external_id
, ensuring that users have the necessary control without risking accidental deletion of records. This setup is tailored for administrators to effectively manage card requests with a focus on security, data integrity, and user convenience.
FILE