Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24652

Launch confirm box from a server side view

    XMLWordPrintable

Details

    Description

      In several places the admin part of PlatformUI, the user should confirm that he really wants to do something. This is needed for instance when removing the content type, see https://github.com/ezsystems/PlatformUIBundle/pull/279#issuecomment-121709110

      Basically, the server side view should recognize that the form was submitted with a ez-confirm-action button and launch the confirm box with what is provided in the markup.

      <form>
      <!-- ... -->
      <button class="ez-button-remove ez-button pure-button ez-confirm-action" data-confirmbox-title="Do you really want to remove the 'Foobar' content type?" data-confirmbox-details-selector=".ez-confirmbox-content-type-removal-details">Remove</button>
      <!-- ... -->
      </form>
      
      <div class="ez-confirmbox-content-type-removal-details">
      <p>The <b>34</b> 'Foobar' instances will be permanently removed by this operation.</p>
      </div>
      

      This story also involves a change in the confirm box system to accept in addition to the existing attributes a details attribute that should contain some HTML to be displayed in the confirm box view.

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: