Sha256: 07cacc101110a1c9c7fc70e78a13b98df0e81629fae37fc3445c62c557a54160
Contents?: true
Size: 716 Bytes
Versions: 4
Compression:
Stored size: 716 Bytes
Contents
- read_only = action_name != 'edit' = simple_form_for(@resource, builder: CustomFormBuilder) 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 Olivander::Components::ResourceFormComponent.new(@resource, f) .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
4 entries across 4 versions & 1 rubygems