Sha256: f7472086a8428ff2ee6670b2ea79bba6c3a79b64123b7ec1055a423f40e04f9e

Contents?: true

Size: 654 Bytes

Versions: 39

Compression:

Stored size: 654 Bytes

Contents

<%= form_for(@model, url: @model.new_record? ? images_path : image_path(@model), method: @model.new_record? ? :post : :put, as: :image)  do  |f| %>
  <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @model} %>
  <div class="form_fields">

  the parent id and class

  <!-- here we add the recaptcha if it says so in the configuration --> 
  
  <%= f.hidden_field :parent_id, :value => @model.parent_id %>

  <%= f.hidden_field :parent_class, :value => @model.parent_class %>    
  </div>
  <div class="actions">
    <%= f.submit "Upload an image" %>
  </div>
  <!-- what else needs to be provided ? -->
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.9 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.8 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.7 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.6 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.5 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.4 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.3 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.2 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.1 app/views/auth/images/_form.html.erb
wordjelly-auth-1.5.0 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.9 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.8 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.7 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.6 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.5 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.4 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.3 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.2 app/views/auth/images/_form.html.erb
wordjelly-auth-1.4.0 app/views/auth/images/_form.html.erb