Sha256: 6fc6306439a62ddf84cbe9ac5f4e39d701a3091aa881244673c301707435a90a

Contents?: true

Size: 1.77 KB

Versions: 96

Compression:

Stored size: 1.77 KB

Contents

<% url_options = params_for(:action => :add_existing) -%>
<% if request.xhr? -%>
<%= form_remote_tag :url => url_options,
                    :after => "$('#{loading_indicator_id(:action => :add_existing, :id => params[:id])}').style.visibility = 'visible'; Form.disable('#{element_form_id(:action => :add_existing)}');",
                    :complete => "$('#{loading_indicator_id(:action => :add_existing, :id => params[:id])}').style.visibility = 'hidden'; Form.enable('#{element_form_id(:action => :add_existing)}');",
                    :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')",
                    :html => { :href => url_for(url_options),
                    :id => element_form_id(:action => :add_existing),
                    :class => 'create' } %>
<% else -%>
<%= form_tag url_options,
             :id => element_form_id(:action => :add_existing),
             :class => 'create' %>
<% end -%>

  <h4><%= active_scaffold_config.nested.label -%></h4>

  <% if request.xhr? -%>
    <div id="<%= element_messages_id(:action => :add_existing) %>" class="messages-container"></div>
  <% else -%>
    <%= render :partial => 'form_messages' %>
  <% end -%>
  <%# AST Begin -%>
  <label for="<%= "record_#{active_scaffold_config.model}" %>"><%= active_scaffold_add_existing_label %></label>
  <%= active_scaffold_add_existing_input(:name => 'associated_id', :url_options => url_options) %>
  <%# AST End -%>  
  <p class="form-footer">
    <%= submit_tag as_(:add), :class => "submit" %>
    <%= link_to as_(:cancel), main_path_to_return, :class => 'cancel' %>
    <%= loading_indicator_tag(:action => :add_existing, :id => params[:id]) %>
  </p>

</form>
<script type="text/javascript">
Form.focusFirstElement('<%= element_form_id(:action => :add_existing) -%>');
</script>

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_add_existing_form.html.erb