= f.input :value, label: field[:label] || identifier.titleize, hint: field[:hint], placeholder: field[:placeholder], required: field[:required] != false do - if f.object.value_uid p= link_to "#{f.object.value.name} (#{number_to_human_size f.object.value.size})", f.object.value.url - unless field[:required] = f.input :remove_value, as: :boolean, inline_label: "Delete file?", label: false, :wrapper => :default = f.hidden_field :retained_value = f.input_field :value, as: :file