mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
Forms table and edit mode [SCI-11337]
This commit is contained in:
parent
705fc4da14
commit
69374989c8
3 changed files with 1 additions and 5 deletions
|
@ -15,6 +15,4 @@ class FormField < ApplicationRecord
|
||||||
|
|
||||||
acts_as_list scope: [:form, discarded_at: nil], top_of_list: 0, sequential_updates: true
|
acts_as_list scope: [:form, discarded_at: nil], top_of_list: 0, sequential_updates: true
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,7 +11,6 @@ class FormSerializer < ActiveModel::Serializer
|
||||||
serializer: FormFieldSerializer,
|
serializer: FormFieldSerializer,
|
||||||
order: :position
|
order: :position
|
||||||
|
|
||||||
|
|
||||||
def published_by
|
def published_by
|
||||||
object.published_by&.full_name
|
object.published_by&.full_name
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2024_10_28_105317) do
|
ActiveRecord::Schema[7.0].define(version: 2024_12_09_074134) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "btree_gist"
|
enable_extension "btree_gist"
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
|
@ -240,7 +240,6 @@ ActiveRecord::Schema[7.0].define(version: 2024_10_28_105317) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.index ["created_by_id"], name: "index_form_fields_on_created_by_id"
|
t.index ["created_by_id"], name: "index_form_fields_on_created_by_id"
|
||||||
t.index ["discarded_at"], name: "index_form_fields_on_discarded_at"
|
t.index ["discarded_at"], name: "index_form_fields_on_discarded_at"
|
||||||
t.index ["form_id", "position"], name: "index_form_fields_on_form_id_and_position", unique: true
|
|
||||||
t.index ["form_id"], name: "index_form_fields_on_form_id"
|
t.index ["form_id"], name: "index_form_fields_on_form_id"
|
||||||
t.index ["last_modified_by_id"], name: "index_form_fields_on_last_modified_by_id"
|
t.index ["last_modified_by_id"], name: "index_form_fields_on_last_modified_by_id"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue