22 lines
955 B
Plaintext
22 lines
955 B
Plaintext
= form_for(@tip, builder: PagedownFormBuilder) do |f|
|
|
= render('shared/form_errors', object: @tip)
|
|
.mb-3
|
|
= f.label(:title, class: 'form-label')
|
|
= f.text_field(:title, class: 'form-control', required: false)
|
|
.mb-3
|
|
= f.label(:description, class: 'form-label')
|
|
= f.pagedown :description, input_html: {preview: true, rows: 5}
|
|
.mb-3
|
|
= f.label(:file_type_id, t('activerecord.attributes.file.file_type_id'), class: 'form-label')
|
|
= f.collection_select(:file_type_id, @file_types, :id, :name, {include_blank: true}, class: 'form-control')
|
|
.mb-3
|
|
= f.label(:example, class: 'form-label')
|
|
= f.text_area(:example, class: 'code-field form-control', rows: 5, style: 'display:none;', required: false)
|
|
#editor-edit.original-input data-file-id=@tip.id
|
|
#frames
|
|
.edit-frame
|
|
.editor-content.d-none
|
|
.editor.allow_ace_tooltip
|
|
.actions = render('shared/submit_button', f:, object: @tip)
|
|
.editor
|