diff --git a/app/views/code_ocean/files/_form.html.slim b/app/views/code_ocean/files/_form.html.slim index a00912c0..0a42f458 100644 --- a/app/views/code_ocean/files/_form.html.slim +++ b/app/views/code_ocean/files/_form.html.slim @@ -4,7 +4,10 @@ = f.text_field(:name, class: 'form-control', required: true) .form-group = f.label(:path, t('activerecord.attributes.file.path')) - = f.select(:path, @paths, {}, class: 'form-control') + |   + 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) .form-group = f.label(:file_type_id, t('activerecord.attributes.file.file_type_id')) = 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')