Sha256: ee895a694a35de0333fddfd26fae03defa01d85123feb433a008fe6293dd7b88

Contents?: true

Size: 1.56 KB

Versions: 25

Compression:

Stored size: 1.56 KB

Contents

<%- if params.has_key?(:add_permission) -%>
  <%#= render :partial=>"permissions/new.html", :locals=>{:asset_id=>asset_id} %>
  <%= form_tag({:controller=>"permissions", :action=> "create", :asset_id=>params[:id]}, :class => "step") do -%>
    <%= render :partial=>"permissions/new.html" %>
    <%= hidden_field_tag("id", params[:id], :id => "permissions_id") if params[:id] %>
    <%= hidden_field_tag(:wf_step, params[:wf_step], :id => "permissions_wf_step") %>
    <%= hidden_field_tag(:new_asset, true, :id => "permission_new_asset") if params[:new_asset] %>
    <%= submit_tag("Add Additional Permissions", :name=>"add_permission") %>
    <% unless session[:script] and !last_step? %>
      <%= submit_tag(submit_name, :name=>"continue") %>
      <%= submit_tag("Save and Finish", :name=>"finish") unless params[:new_asset] %>
    <% end %>
  <%- end -%>
<%- else -%>
  <%= form_tag({:controller=>"permissions", :action => "update"}, :id => "permissions_metadata", :class => "step") do -%>
    <%= render :partial => "permissions/index" %>
    <%= hidden_field_tag("id", params[:id], :id => "permissions_id") if params[:id] %>
    <%= hidden_field_tag(:wf_step, params[:wf_step], :id => "permissions_wf_step") %>
    <%= hidden_field_tag(:new_asset, true, :id => "permission_new_asset") if params[:new_asset] %>
    <%= submit_tag("Add Additional Permissions", :name=>"add_permission")%>
    <%= submit_tag(submit_name, :name=>"continue", :class=>"save-submit") %>
    <%= submit_tag("Save and Finish", :name=>"finish", :class=>"save-submit") unless params[:new_asset] %>
  <%- end -%>
<%- end -%>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hydra-head-3.0.0 app/views/permissions/_permissions_form.html.erb
hydra-head-3.1.0.pre1 app/views/permissions/_permissions_form.html.erb
hydra-head-3.0.0.rc2 app/views/permissions/_permissions_form.html.erb
hydra-head-3.0.0.rc1 app/views/permissions/_permissions_form.html.erb
hydra-head-3.0.0pre4 app/views/permissions/_permissions_form.html.erb