Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 30, 2024
1 parent 86fdb50 commit 0761032
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/models/app_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AppSettings < RailsSettings::Base
field :student_upload_files
field :student_primary_upload_files
field :student_supplementary_upload_files
field :student_supplementary_licence_upload_files
field :student_supplementary_embargo_upload_files
field :student_review_license_info
field :student_review_license_lac
Expand Down
2 changes: 1 addition & 1 deletion app/views/documents/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ html: { multipart: true, class: "file-upload" } do |f| %>
<%= raw(AppSettings.student_supplementary_upload_files) %>
<% end %>
<% if @document.usage == 'licence' %>
<%= raw(AppSettings.student_supplementary_embargo_upload_files) %>
<%= raw(AppSettings.student_supplementary_licence_upload_files) %>
<% end %>
<% if @document.usage == 'embargo' %>
<%= raw(AppSettings.student_supplementary_embargo_upload_files) %>
Expand Down
7 changes: 4 additions & 3 deletions app/views/settings/_student_submission.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
<%= f.input :student_update_details_keywords, as: :rich_text_area, label: "Keywords", input_html: { rows: 5 } %>
</div>
<div class="tab-pane fade" id="nav-upload" role="tabpanel" aria-labelledby="nav-upload-tab" tabindex="0">
<%= f.input :student_upload_files, as: :rich_text_area, label: "Upload files message", input_html: { rows: 20 } %>
<%= f.input :student_supplementary_upload_files, as: :rich_text_area, label: "Supplementary Upload files message", input_html: { rows: 30 } %>
<%= f.input :student_supplementary_embargo_upload_files, as: :rich_text_area, label: "Supplementary Embargo Upload files message", input_html: { rows: 30 } %>
<%= f.input :student_upload_files, as: :rich_text_area, label: "Upload Primary Thesis File message", input_html: { rows: 20 } %>
<%= f.input :student_supplementary_upload_files, as: :rich_text_area, label: "Upload Supplementary Thesis Files message", input_html: { rows: 30 } %>
<%= f.input :student_supplementary_licence_upload_files, as: :rich_text_area, label: "Upload Licence Files message", input_html: { rows: 30 } %>
<%= f.input :student_supplementary_embargo_upload_files, as: :rich_text_area, label: "Upload Embargo Files message", input_html: { rows: 30 } %>
<%= f.input :primary_thesis_file_extensions, as: :text, label: "Primary Thesis File Extensions", input_html: { rows: 3 } %>
<%= f.input :supplemental_thesis_file_extensions, as: :text, label: "Supplementary Thesis File Extensions", input_html: { rows: 3 } %>
<%= f.input :licence_file_extensions, as: :text, label: "Licence File Extensions", input_html: { rows: 3 } %>
Expand Down
4 changes: 4 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@
<ul><li><strong>Documents:</strong> Portable Document Format (.pdf), Text (.txt), Hypertext Markup Language (.html, .htm), Open Document Format (.odt, .odp, .ods).&nbsp;</li><li><strong>Images:</strong> Tagged Image File format (.tif)</li><li><strong>Data:</strong> Comma-separated values (.csv) or other delimited text, Extensible Markup Language (.xml)</li><li><strong>Video:</strong> MPEG-4 (.mp4) files are preferred, but we can also accept AVI (.avi) and MOV (.mov) file formats.</li><li><strong>Audio:</strong> MPEG-1 Audio Layer 3 (.mp3) file are preferred, but we can also accept Free Lossless Audio Codec (.flac) or WAVE (.wav) file formats.</li></ul><div>Please ensure that:&nbsp;</div><ul><li>You have permission from subjects appearing in media files.&nbsp;</li><li>The total size of your supplementary files does not exceed 4 gigabytes (4GB)</li><li>If you wish to upload a type of file that you do not see on this list, please email [email protected] for support.</li></ul>
HEREDOC

AppSettings.student_supplementary_licence_upload_files = <<HEREDOC
<p>Please upload PDF files only.</p>
HEREDOC

AppSettings.student_supplementary_embargo_upload_files = <<HEREDOC
<p>Please Upload the following documents:</p>
<ul><li><strong>Supervisor Letter</strong></li><li><strong>Other Embargo Supporting Documents</strong></li><li><strong>Portable Document Format:</strong> (.pdf), Text (.txt), Hypertext Markup Language (.html, .htm), Open Document Format (.odt, .odp, .ods).</li></ul>
Expand Down

0 comments on commit 0761032

Please sign in to comment.