% label_title = Alchemy.t("Create #{resource_name}", default: Alchemy.t('Create')) %> <% toolbar( buttons: [ { icon: :plus, label: label_title, url: new_resource_path, title: label_title, hotkey: 'alt+n', dialog_options: { title: label_title, size: resource_window_size }, if_permitted_to: [:create, resource_model] }, { icon: 'download', url: resource_url_proxy.url_for(action: 'index', format: 'csv', q: search_filter_params[:q], sort: params[:sort]), label: Alchemy.t(:download_csv), title: Alchemy.t(:download_csv), dialog: false, if_permitted_to: [:index, resource_model] } ], search: !lookup_context.any?("search_panel", lookup_context.prefixes, true) ) %>