mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Merge pull request #2321 from urbanrotnik/ur-sci-4257
Remove Checklist item min length validation and modal fixes [SCI-4257]
This commit is contained in:
commit
7655dd0bea
2 changed files with 6 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
||||||
#manage-repository-column {
|
#manage-repository-column {
|
||||||
.modal-content {
|
.modal-content {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
height: 500px;
|
min-height: 500px;
|
||||||
width: 540px;
|
width: 540px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,10 +32,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-body {
|
.modal-body {
|
||||||
padding: 0 15px;
|
padding: 0 15px 61px;
|
||||||
|
|
||||||
.form-horizontal {
|
.form-horizontal {
|
||||||
height: 390px;
|
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +53,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
|
bottom: 0;
|
||||||
padding: 12px 15px;
|
padding: 12px 15px;
|
||||||
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.range-label {
|
.range-label {
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
class RepositoryChecklistItem < ApplicationRecord
|
class RepositoryChecklistItem < ApplicationRecord
|
||||||
validates :data, presence: true,
|
validates :data, presence: true,
|
||||||
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
||||||
length: { minimum: Constants::NAME_MIN_LENGTH,
|
length: { maximum: Constants::NAME_MAX_LENGTH }
|
||||||
maximum: Constants::NAME_MAX_LENGTH }
|
|
||||||
belongs_to :repository, inverse_of: :repository_checklist_items
|
belongs_to :repository, inverse_of: :repository_checklist_items
|
||||||
belongs_to :repository_column
|
belongs_to :repository_column
|
||||||
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User',
|
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User',
|
||||||
|
|
Loading…
Reference in a new issue