mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
20 lines
861 B
ERB
20 lines
861 B
ERB
<%= form_with model: [@model, @file], class: "container-md tabular-form" do |form| %>
|
|
<%= text_input_row form, :filename %>
|
|
<% if @file.is_3d_model? %>
|
|
<%= checkbox_input_row form, :printed, checked: current_user.printed?(@file) %>
|
|
<%= checkbox_input_row form, :presupported %>
|
|
<%= checkbox_input_row form, :y_up %>
|
|
<%= checkbox_input_row form, :previewable %>
|
|
<%= unless @file.presupported
|
|
collection_select_input_row form,
|
|
:presupported_version, policy_scope(@model.model_files).presupported.select { |x| x.extension.downcase == @file.extension.downcase }, :id, :name,
|
|
include_blank: true
|
|
end %>
|
|
<% end %>
|
|
<%= text_input_row form, :caption %>
|
|
<%= rich_text_input_row form, :notes, help: t(".notes.help_html") %>
|
|
<div>
|
|
<%= form.submit class: "btn btn-primary" %>
|
|
</div>
|
|
<% end %>
|