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