Class: AtomicAdmin::Schema::ApplicationInstanceLicenseDetailsSchema
- Inherits:
-
ApplicationInstanceSchema
- Object
- ApplicationInstanceSchema
- AtomicAdmin::Schema::ApplicationInstanceLicenseDetailsSchema
- Defined in:
- lib/atomic_admin/schema/application_instance_license_details_schema.rb
Instance Attribute Summary
Attributes inherited from ApplicationInstanceSchema
Instance Method Summary collapse
Methods inherited from ApplicationInstanceSchema
Constructor Details
This class inherits a constructor from AtomicAdmin::Schema::ApplicationInstanceSchema
Instance Method Details
#schema ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/atomic_admin/schema/application_instance_license_details_schema.rb', line 5 def schema { type: "object", properties: { is_paid: { type: "boolean", title: "Paid Account" }, license_start_date: { type: ["string", "null"], format: "date", }, license_end_date: { type: ["string", "null"], format: "date", }, licensed_users: { type: ["number", "null"], minimum: 0, }, license_type: { type: ["string", "null"], oneOf: [ { title: "Monthly", const: "monthly", }, { title: "Yearly", const: "yearly", }, { title: "FTE", const: "fte", }, ], }, license_notes: { type: ["string", "null"], }, }, } end |
#uischema ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/atomic_admin/schema/application_instance_license_details_schema.rb', line 49 def uischema { type: "Group", label: "License Details", elements: [ { type: "VerticalLayout", elements: [ { type: "Control", scope: "#/properties/is_paid", }, { type: "Control", scope: "#/properties/license_start_date", options: { format: "date", }, }, { type: "Control", scope: "#/properties/license_end_date", options: { format: "date", }, }, { type: "Control", scope: "#/properties/licensed_users", }, { type: "Control", scope: "#/properties/license_type", options: { format: "radio", }, }, { type: "Control", scope: "#/properties/license_notes", options: { format: "textarea", }, }, ], }, ], } end |