<%- input_classes = ['input yarii-cloudinary--text-input'] input_classes << className if local_assigns[:className] name = name_from_variable(assigns) value = value_from_variable(assigns) %>
data-cloudinary-single-media-upload-preset="<%= ENV['yarii_cloudinary_tag'] %>"<% end -%> data-cloudinary-single-media-browse-path="<%= yarii_cloudinary.media_path %>" data-cloudinary-single-media-form-thumbnail-path="<%= yarii_cloudinary.form_thumbnail_medium_path(0) %>" class="yarii-cloudinary--field field" >
<% if value.present? %> <%= render 'yarii_cloudinary/media/form_thumbnail', public_id: value %> <% else %> <% end %>
<%= content_tag :input, nil, name: name, value: value, class: input_classes.join(' '), type: 'text', placeholder: placeholder, data: {target: 'cloudinary-single-media.input'} %>