Изменения документа Macros
Редактировал(а) Jip-jan Alunkel апреля 15, 18:09
От версии 2.58
отредактировано Jip-jan Alunkel
на марта 28, 16:40
на марта 28, 16:40
Изменить комментарий:
К данной версии нет комментариев
К версии 2.54
отредактировано Jip-jan Alunkel
на марта 28, 16:10
на марта 28, 16:10
Изменить комментарий:
К данной версии нет комментариев
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,10 +1,13 @@ 1 1 {{velocity}} 2 2 #macro(createFormStart $id $product) 3 +{{html}} 3 3 <form action="" id="${id}" method="post" class="formMaker" data-form-product="${product}" novalidate="novalidate"> 5 +{{/html}} 4 4 #end 5 - 6 6 #macro(createFormEnd) 8 +{{html}} 7 7 </form> 10 +{{/html}} 8 8 #end 9 9 10 10 #macro(createFormElement $elementDataObj) ... ... @@ -14,7 +14,7 @@ 14 14 #set($requiredCSSClass = '') 15 15 #set($addedCSSClass = '') 16 16 #set($hint = '') 17 - #if($O_elementData.required == "yes")20 + #if($O_elementData.required == true) 18 18 #set($requiredAttributes = 'aria-required="true" required="required" data-error-response-type="${O_elementData.data-error-response-type}"') 19 19 #set($requiredCSSClass = ' class="required"') 20 20 #end ... ... @@ -30,6 +30,7 @@ 30 30 #else 31 31 #set($hint = "This type of element does not exist, read the manual for more information about element types.") 32 32 #end 36 +{{html}} 33 33 #if($elementTagName == "select" || $elementTagName == "input" || $elementTagName == "textarea") 34 34 <p${requiredCSSClass}> 35 35 <label for="${elementDataObj.id}_${elementTagName}"> ... ... @@ -65,6 +65,7 @@ 65 65 #if($hint != "") 66 66 <p class="box errormessage">${hint}</p> 67 67 #end 72 +{{/html}} 68 68 #end 69 69 70 70 #macro(createSelectElement $O_elementData $O_tagName $O_requiredAttributes)