Reorder translations and add missing prefixes

- files should be prefixed with code_ocean/
- the markdown editor is part of the application (helper)
This commit is contained in:
Sebastian Serth
2024-04-14 12:08:44 +02:00
committed by Sebastian Serth
parent 1589c9472b
commit e551c8a699
98 changed files with 2687 additions and 2357 deletions

View File

@@ -1,19 +1,19 @@
= form_for(CodeOcean::File.new) do |f|
.mb-3
= f.label(:name, t('activerecord.attributes.file.name'), class: 'form-label')
= f.label(:name, class: 'form-label')
= f.text_field(:name, class: 'form-control', required: true)
.mb-3
= f.label(:path, t('activerecord.attributes.file.path'), class: 'form-label')
= f.label(:path, class: 'form-label')
|  
a.toggle-input data={text_initial: t('shared.new'), text_toggled: t('shared.back')} href='#' = t('shared.new')
.original-input = f.select(:path, @paths, {}, class: 'form-control')
= f.text_field(:path, class: 'alternative-input form-control', disabled: true)
.mb-3
= f.label(:file_type_id, t('activerecord.attributes.file.file_type_id'), class: 'form-label')
= f.label(:file_type_id, class: 'form-label')
= f.collection_select(:file_type_id, FileType.where(binary: false).order(:name), :id, :name, {selected: @exercise.execution_environment.file_type.try(:id)}, class: 'form-control')
- if FileTemplate.any?
.mb-3
= f.label(:file_template_id, t('activerecord.attributes.file.file_template_id'), class: 'form-label')
= f.label(:file_template_id, class: 'form-label')
= f.collection_select(:file_template_id, FileTemplate.order(:name), :id, :name, {include_blank: true}, class: 'form-control')
= f.hidden_field(:context_id)
.d-none#noTemplateLabel data-text=t('file_template.no_template_label')