Sha256: 2b6af7f23180a6616b19f80ddce1e6574ef0bed99ec0f090fe7f1a870141d9bc

Contents?: true

Size: 1.09 KB

Versions: 27

Compression:

Stored size: 1.09 KB

Contents

<%%= turbo_frame_tag "<%= class_name.pluralize.underscore %>", target: '_top' do %>
  <%%= render(FormComponent.new(item: <%= class_name.underscore %>)) do |form| %>
    <%% current_page = if <%= class_name.underscore %>.persisted?
                      { label: I18n.t('bo.show'), path: <%= "#{options[:namespace]}_#{class_name.underscore}_path(#{class_name.underscore})"%> }
                    else
                      { label: I18n.t('bo.<%= class_name.underscore %>.new').capitalize, path: <%= "new_#{options[:namespace]}_#{class_name.underscore}_path" %> }
                    end
      form.with_title(<%= class_name.underscore %>.persisted? ? <%= class_name.underscore %>.<%=bo_model_title(bo_model)%> : I18n.t('bo.<%= class_name.underscore %>.new').capitalize)
      form.with_breadcrumb([
            { label: I18n.t('bo.<%= class_name.underscore %>.others').capitalize, path: <%= "#{options[:namespace]}_#{class_name.pluralize.underscore}_path"%> },
            current_page
          ]) %>
      <%%= render "form", <%= class_name.underscore %>: @<%= class_name.underscore %> %>
  <%% end %>
<%% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
tybo-0.4.1 lib/generators/bo/templates/item.html.erb
tybo-0.4.0 lib/generators/bo/templates/item.html.erb
tybo-0.3.26 lib/generators/bo/templates/item.html.erb
tybo-0.3.24 lib/generators/bo/templates/item.html.erb
tybo-0.3.23 lib/generators/bo/templates/item.html.erb
tybo-0.3.22 lib/generators/bo/templates/item.html.erb
tybo-0.3.21 lib/generators/bo/templates/item.html.erb
tybo-0.3.20 lib/generators/bo/templates/item.html.erb
tybo-0.3.19 lib/generators/bo/templates/item.html.erb
tybo-0.3.18 lib/generators/bo/templates/item.html.erb
tybo-0.3.17 lib/generators/bo/templates/item.html.erb
tybo-0.3.16 lib/generators/bo/templates/item.html.erb
tybo-0.3.15 lib/generators/bo/templates/item.html.erb
tybo-0.3.14 lib/generators/bo/templates/item.html.erb
tybo-0.3.13 lib/generators/bo/templates/item.html.erb
tybo-0.3.12 lib/generators/bo/templates/item.html.erb
tybo-0.3.11 lib/generators/bo/templates/item.html.erb
tybo-0.3.10 lib/generators/bo/templates/item.html.erb
tybo-0.3.9 lib/generators/bo/templates/item.html.erb
tybo-0.3.8 lib/generators/bo/templates/item.html.erb