Add new style for linter and allow 0 points

This commit is contained in:
Sebastian Serth
2020-10-15 16:22:37 +02:00
parent be3ec82bd4
commit 799e37f9ae
6 changed files with 37 additions and 10 deletions

View File

@ -44,5 +44,5 @@ li.card.mt-2
.help-block.form-text = t('.hints.feedback_message')
.form-group
= f.label(:role, t('activerecord.attributes.file.weight'))
= f.number_field(:weight, class: 'form-control', min: 1, step: 'any')
= f.number_field(:weight, class: 'form-control', min: 0, step: 'any')
= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))