Create Form
processed with Commons Bootstrap 4.3
<@row>
<@columns>
<@box>
<@boxHeader title='Title' />
<@boxBody>
<@tform name='create_mockobject' action='jsp/admin/plugins/ManageMockObjects.jsp'>
<@messages errors=errors />
<@formGroup labelKey='Name' helpKey='Name.help' mandatory=true>
<@input type='text' name='name' value='' />
</@formGroup>
<@formGroup labelKey='Description' helpKey='Description.help' mandatory=true>
<@input type='text' name='description' value='' />
</@formGroup>
<@formGroup labelKey='Enable'>
<@checkBox labelKey='Enable.help' name='enable' id='enable' value='1' />
</@formGroup>
<@formGroup labelKey='Status'>
<@checkBox labelKey='Status.help' name='status' id='enable' value='1' />
</@formGroup>
<@formGroup labelKey='Radio'>
<@radioButton labelKey='Radio1.help' name='radio1' value='0' />
<@radioButton labelKey='Radio2.help' name='radio2' value='1' />
</@formGroup>
<@formGroup labelKey='Ratio' helpKey='Ratio.help' mandatory=true>
<@input type='text' name='ratio' value='0' />
</@formGroup>
<@formGroup labelKey='Password' helpKey='Password.help' mandatory=true>
<@input type='password' name='password' value='' />
</@formGroup>
<@formGroup labelKey='ElapsedTime' helpKey='ElapsedTime.help' mandatory=true>
<@input type='number' name='elapsed_time' value='0' />
</@formGroup>
<@formGroup labelKey='IdForeign' helpKey='IdForeign.help' mandatory=true>
<@select name='id_foreign' items=id_foreigns_list default_value='0' />
</@formGroup>
<@formGroup labelKey='RegisteredEmail' helpKey='RegisteredEmail.help'>
<@staticText>
example@example.com
</@staticText>
</@formGroup>
<@formGroup labelKey='Email' helpKey='Email.help' mandatory=true>
<@input type='email' name='email' value='' />
</@formGroup>
<@formGroup labelKey='Text' helpKey='Text.help' mandatory=true>
<@input type='textarea' name='text' value='' />
</@formGroup>
<@formGroup labelKey='DateCreated' helpKey='DateCreated.help' mandatory=true>
<@inputGroup>
<@inputGroupItem type='text'>
<@icon style='calendar' />
</@inputGroupItem>
<@input type='text' name='date_created' value='' />
</@inputGroup>
</@formGroup>
<@formGroup labelKey='DateUpdated' helpKey='DateUpdated.help' mandatory=true>
<@inputGroup>
<@input type='text' name='date_updated' value='' />
<@inputGroupItem>
<@icon style='calendar' />
</@inputGroupItem>
</@inputGroup>
</@formGroup>
<@formGroup>
<@button type='submit' name='action_createMockObject' buttonIcon='check' />
<@button type='submit' name='view_manageMockObject' buttonIcon='eye' />
</@formGroup>
</@tform>
</@boxBody>
</@box>
</@columns>
</@row>
# Parameters documentation
# Macro formGroup
|
Parameter |
Value |
Default |
|
id |
string |
none |
|
formStyle |
string: horizontal/inline |
horizontal |
|
groupStyle |
string: success/error |
none |
|
class |
string |
none |
|
rows |
integer: 1/2 |
1 |
|
labelKey |
string |
none |
|
labelFor |
string |
none |
|
labelId |
string |
none |
|
helpKey |
string |
none |
|
mandatory |
boolean |
false |
|
hideLabel |
sequence |
none |
|
params |
string |
none |
# Macro input
|
Parameter |
Value |
Default |
|
name* |
string |
none |
|
id |
string |
none |
|
class |
string |
none |
|
type |
string: text/textarea/password/email/file/number |
text |
|
value |
string |
none |
|
size |
string: sm/lg |
none |
|
inputSize |
integer |
0 |
|
maxLength |
integer |
0 |
|
placeHolder |
string |
none |
|
rows |
integer |
4 |
|
cols |
integer |
40 |
|
richtext |
boolean |
false |
|
disabled |
boolean |
false |
|
readonly |
boolean |
false |
|
pattern |
string |
none |
|
params |
string |
none |
|
title |
string |
none |
|
min |
integer |
0 |
|
max |
integer |
0 |
# Macro select
|
Parameter |
Value |
Default |
|
name* |
string |
none |
|
id |
string |
name |
|
class |
string |
none |
|
items |
hash |
none |
|
default_value |
hash |
none |
|
size |
string: sm/lg |
none |
|
sort |
boolean |
false |
|
multiple |
integer |
0 |
|
params |
string |
none |
|
title |
string |
none |
# Macro staticText
|
Parameter |
Value |
Default |
|
inForm |
boolean |
true |
|
color |
string |
none |
|
id |
string |
none |
|
params |
string |
none |
# Macro checkbox
|
Parameter |
Value |
Default |
|
name* |
string |
none |
|
id |
string |
none |
|
labelKey |
string |
none |
|
labelFor |
string |
none |
|
orientation |
string: vertical/horizontal |
vertical |
|
value |
string |
none |
|
title |
string |
none |
|
disabled |
boolean |
false |
|
readonly |
boolean |
false |
|
checked |
boolean |
false |
|
mandatory |
boolean |
false |
|
params |
string |
none |
# Macro radio button
|
Parameter |
Value |
Default |
|
name* |
string |
none |
|
id |
string |
none |
|
labelKey |
string |
none |
|
labelFor |
string |
none |
|
orientation |
string: vertical/horizontal |
vertical |
|
value |
string |
none |
|
title |
string |
none |
|
disabled |
boolean |
false |
|
readonly |
boolean |
false |
|
checked |
boolean |
false |
|
params |
string |
none |
# Macro input group
|
Parameter |
Value |
Default |
|
id |
string |
none |
|
class |
string |
none |
|
size |
string |
none |
|
params |
string |
vertical |
# Macro input group item
|
Parameter |
Value |
Default |
|
id |
string |
none |
|
pos |
string: prepend/append |
append |
|
type |
string: btn/text |
btn |
|
params |
string |
vertical |