Sha256: 29ed09698b515b563262b072d775b8e6aeccf79df5578130303862201c1ef8b1
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
- read_only = !%w[edit new].include?(action_name) = simple_form_for(@resource) do |f| .card.card-primary .card-header %h3.card-title= @resource .card-tools = resource_form_actions(@context.route_builder, @resource, for_action: action_name.to_sym) .card-body =f.error_notification =f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? = render_optional_partial 'form_inside_before' = render Olivander::Components::ResourceFormComponent.new(@resource, f) = render_optional_partial 'form_inside_after' .card-footer.text-right = link_to 'Cancel', @_effective_resource.action_path(:index), class: 'btn btn-secondary' - unless read_only = f.button :submit, class: 'btn btn-primary'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
five-two-nw-olivander-0.1.2.49 | app/views/application/_form.html.haml |
five-two-nw-olivander-0.1.2.48 | app/views/application/_form.html.haml |