Sha256: 06f1d7a8c9c0f1c2996884e914e8a6b63975e1a201e34ab2097f2f8e4b0cbd06

Contents?: true

Size: 629 Bytes

Versions: 10

Compression:

Stored size: 629 Bytes

Contents

<% if @resource_service.attrs_for_export.present? %>
  <div class="btn-group">
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
      <%= translate_scoped("actions.export") %> <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
      <li>
        <%= link_to "#{translate_scoped("actions.export_as")} JSON", url_for(params.merge(only_path: true, format: "json")) %>
      </li>
      <li>
        <%= link_to "#{translate_scoped("actions.export_as")} CSV", url_for(params.merge(only_path: true, format: "csv")) %>
      </li>
    </ul>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
godmin-1.2.0 app/views/godmin/resource/_export_actions.html.erb
godmin-1.1.0 app/views/godmin/resource/_export_actions.html.erb
godmin-1.0.0 app/views/godmin/resource/_export_actions.html.erb
godmin-0.12.4 app/views/godmin/resource/_export_actions.html.erb
godmin-0.12.3 app/views/godmin/resource/_export_actions.html.erb
godmin-0.12.2 app/views/godmin/resource/_export_actions.html.erb
godmin-0.12.1 app/views/godmin/resource/_export_actions.html.erb
godmin-0.12.0 app/views/godmin/resource/_export_actions.html.erb
godmin-0.11.2 app/views/godmin/resource/_export_actions.html.erb
godmin-0.11.1 app/views/godmin/resource/_export_actions.html.erb