core icon indicating copy to clipboard operation
core copied to clipboard

Need validate one html structure is selected when you are creating a new page

Open bryanboza opened this issue 11 years ago • 4 comments

When you try to add a new html page, you need select the html structure, but if you don't select nothing and click to select button, the system is redirecting to add a new simple content page....

Steps:

  • Create a new folder
  • Right click and add new page in the menu
  • Click in the select button

SC: http://monosnap.com/image/1Xor5dkiFyNo2HxZGd8s88Z9FF8XYP

Tested on master-3.1 // H2 // FF

bryanboza avatar Jan 07 '15 20:01 bryanboza

basically we should validate the input with client side JS

jtesser avatar Jan 07 '15 20:01 jtesser

@samuelmortha 2 things

  1. We need to default to our default HTMLPage Structur like File Asset does
  2. Validate in JS that a structure is selected. Should work like the File Asset Modal does when selecting what file

for number 1 this means we have a default structure which should be created and fixed and all in an upgrade task just like the file as content

jtesser avatar Jan 12 '15 12:01 jtesser

Fixed, Tested on nightly build 2015-01-16 // H2 // FF

bryanboza avatar Jan 16 '15 20:01 bryanboza

Added to test rail http://qa.dotcms.com/index.php?/cases/view/52820

shaydotcms avatar Feb 02 '15 19:02 shaydotcms