mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
add simple s3 fields to new library form
This commit is contained in:
2 files changed
+9
-1
No files matched your search
@@ -73,7 +73,10 @@ class LibrariesController < ApplicationController
|
||||
private
|
||||
|
||||
def library_params
|
||||
params.require(:library).permit(:path, :name, :notes, :caption, :icon, {tag_regex: []}, :storage_service)
|
||||
params.require(:library).permit(
|
||||
:path, :name, :notes, :caption, :icon, {tag_regex: []}, :storage_service,
|
||||
:s3_endpoint, :s3_bucket, :s3_region, :s3_access_key_id, :s3_secret_access_key
|
||||
)
|
||||
end
|
||||
|
||||
def get_library
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
</div>
|
||||
<%= text_input_row form, :path, placeholder: translate(".path.placeholder") %>
|
||||
</div>
|
||||
<%= text_input_row form, :s3_endpoint %>
|
||||
<%= text_input_row form, :s3_bucket %>
|
||||
<%= text_input_row form, :s3_region %>
|
||||
<%= text_input_row form, :s3_access_key_id %>
|
||||
<%= text_input_row form, :s3_secret_access_key %>
|
||||
<% end %>
|
||||
<%= text_input_row form, :caption, help: t(".caption.help") %>
|
||||
<%= text_input_row form, :icon, help: t(".icon.help_html"), placeholder: translate(".icon.placeholder") %>
|
||||
|
||||
Reference in new issue
Block a user