Details
-
Story
-
Resolution: Done
-
High
-
None
-
None
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.