def modal_with_trigger(id,
      header_text,
      trigger_text,
      options = {},
      trigger_options = {},
      &block)

      content = modal(id, header_text, options) do
        capture(&block) if block_given?
      end

      content << modal_trigger(id, trigger_text, trigger_options)
      content.html_safe
    end
def modal_with_trigger(id,
      header_text,
      trigger_text,
      options = {},
      trigger_options = {},
      &block)

      content = modal(id, header_text, options) do
        capture(&block) if block_given?
      end

      content << modal_trigger(id, trigger_text, trigger_options)
      content.html_safe
    end
Public: Show a link which can toggle the modal and the modal itself.

 id              - String. HTML id attribute of the modal which should be
                   opened.
 header_text     - String. Text would be shown on the top of the modal.
 trigger_text    - String. Text of the trigger.
 options         - Options can be accepted by modal, see modal helper.
 trigger_options - Options can be accepted by modal trigger, see
                   modal_trigger helper.
 block           - HTML block shows the content of the modal.

 Examples


 Returns a link with a modal would be opened by this link.