Sha256: 18b984a1a9775b605822d9ee7107dbbd72eff6008a156c29f2375ec60002e7c6

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

<div id="catalog_xml">
  <hr/>

  <div>
    <h1>Catalog XML
      <a class="btn btn btn-xs" href="javascript:void(0);" onclick="switchBasicConfig();">Enable Simple Configuration</a>
    </h1>


    <table id="catalog-xml-for-tenant" class="table table-condensed">

      <thead>
      <tr>
        <th>Catalog Version</th>
        <th>Effective Date</th>
        <th>Catalog XML</th>
      </tr>
      </thead>
      <tbody>
      <% @catalogs_xml.each do |catalog| %>
          <tr>
            <td><%= catalog[:version] %></td>
            <td><%= catalog[:version_date] %></td>
            <td>
              <%= form_tag(kaui_engine.admin_tenant_display_catalog_xml_path, :id => "submit_form_xml_#{catalog[:version]}", :method => 'post', :multipart => true, :class => "hide") do %>
                  <%= hidden_field_tag(:xml, catalog[:xml]) %>
                  <%= submit_tag 'submit' %>
              <% end %>
              <a class='btn btn-xs' href="javascript:void(0);" onclick="submit_xml(<%= catalog[:version] %>);">view xml</a>
            </td>
          </tr>
      <% end %>
      </tbody>
    </table>

  </div>
</div>

<%= javascript_tag do %>
function submit_xml(version_id) {
    $("#submit_form_xml_" + version_id).submit();
};
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaui-0.16.2 app/views/kaui/admin_tenants/_show_catalog_xml.erb
kaui-0.16.1 app/views/kaui/admin_tenants/_show_catalog_xml.erb
kaui-0.16.0 app/views/kaui/admin_tenants/_show_catalog_xml.erb