Remove Checklist item min length validation and modal fixes

This commit is contained in:
Urban Rotnik 2020-01-16 15:21:01 +01:00
parent 33fe956cf3
commit 469714c40d
2 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@
#manage-repository-column {
.modal-content {
font-size: 14px;
height: 500px;
min-height: 500px;
width: 540px;
}
@ -32,10 +32,9 @@
}
.modal-body {
padding: 0 15px;
padding: 0 15px 61px;
.form-horizontal {
height: 390px;
padding: 15px 0;
}
@ -54,8 +53,11 @@
}
.modal-footer {
bottom: 0;
padding: 12px 15px;
position: absolute;
text-align: center;
width: 100%;
}
.range-label {

View file

@ -3,8 +3,7 @@
class RepositoryChecklistItem < ApplicationRecord
validates :data, presence: true,
uniqueness: { scope: :repository_column_id, case_sensitive: false },
length: { minimum: Constants::NAME_MIN_LENGTH,
maximum: Constants::NAME_MAX_LENGTH }
length: { maximum: Constants::NAME_MAX_LENGTH }
belongs_to :repository, inverse_of: :repository_checklist_items
belongs_to :repository_column
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User',