All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.form.soy Maven / Gradle / Ivy

There is a newer version: 2.1.10
Show newest version
{namespace ddm}

/**
 * Prints one field.
 *
 * @param field
 */
{template .field autoescape="deprecated-contextual"}
	{if isNonnull($field)}
		{$field|noAutoescape}
	{/if}
{/template}

/**
 * Prints a list of fields.
 *
 * @param fields
 */
{template .fields autoescape="deprecated-contextual"}
	{foreach $field in $fields}
		{call ddm.field data="all"}
			{param field: $field /}
		{/call}
	{/foreach}
{/template}

/**
 * Prints the JavaScript form renderer.
 *
 * @param containerId
 * @param dataProviderURL
 * @param definition
 * @param evaluation
 * @param evaluatorURL
 * @param fieldTypes
 * @param layout
 * @param portletNamespace
 * @param readOnly
 * @param readOnlyFields
 * @param showRequiredFieldsWarning
 * @param showSubmitButton
 * @param submitLabel
 * @param templateNamespace
 * @param values
 */
{template .form_renderer_js autoescape="deprecated-contextual"}
	
{/template}

/**
 * Prints all rows.
 *
 * @param rows
 */
{template .form_rows autoescape="deprecated-contextual"}
	{foreach $row in $rows}
		
{call ddm.form_row_columns data="all"} {param columns: $row.columns /} {/call}
{/foreach} {/template} /** * Prints a column. * * @param column */ {template .form_row_column autoescape="deprecated-contextual"}
{call ddm.fields data="all"} {param fields: $column.fields /} {/call}
{/template} /** * Prints all columns. * * @param columns */ {template .form_row_columns autoescape="deprecated-contextual"} {foreach $column in $columns} {call ddm.form_row_column data="all"} {param column: $column /} {/call} {/foreach} {/template} /** * Prints the form fields required message warning. * * @param showRequiredFieldsWarning * @param requiredFieldsWarningMessageHTML */ {template .required_warning_message autoescape="deprecated-contextual"} {if $showRequiredFieldsWarning} {$requiredFieldsWarningMessageHTML|noAutoescape} {/if} {/template} /** * Prints a form with pagination. * * @param containerId * @param pages * @param requiredFieldsWarningMessageHTML * @param showSubmitButton * @param submitLabel * @param strings */ {template .paginated_form autoescape="deprecated-contextual"}
{if length($pages) > 1}
    {foreach $page in $pages}
  • {$page.title|noAutoescape}
    {index($page) + 1}
  • {/foreach}
{/if}
{foreach $page in $pages}
{if $page.title}

{$page.title|noAutoescape}

{/if} {if $page.description}

{$page.description|noAutoescape}

{/if} {call ddm.required_warning_message data="all"} {param showRequiredFieldsWarning: $page.showRequiredFieldsWarning /} {param requiredFieldsWarningMessageHTML: $requiredFieldsWarningMessageHTML /} {/call} {call ddm.form_rows data="all"} {param rows: $page.rows /} {/call}
{/foreach}
{if $showSubmitButton} {/if}
{/template} /** * Prints a simple form with just one page. * * @param containerId * @param pages * @param requiredFieldsWarningMessageHTML */ {template .simple_form autoescape="deprecated-contextual"}
{foreach $page in $pages} {call ddm.required_warning_message data="all"} {param showRequiredFieldsWarning: $page.showRequiredFieldsWarning /} {param requiredFieldsWarningMessageHTML: $requiredFieldsWarningMessageHTML /} {/call} {call ddm.form_rows data="all"} {param rows: $page.rows /} {/call} {/foreach}
{/template} /** * Prints a form with tabs. * * @param containerId * @param pages * @param requiredFieldsWarningMessageHTML */ {template .tabbed_form autoescape="deprecated-contextual"}
{foreach $page in $pages} {call ddm.required_warning_message data="all"} {param showRequiredFieldsWarning: $page.showRequiredFieldsWarning /} {param requiredFieldsWarningMessageHTML: $requiredFieldsWarningMessageHTML /} {/call}
{call ddm.form_rows data="all"} {param rows: $page.rows /} {/call}
{/foreach}
{/template} /** * Prints the settings form. * * @param containerId * @param pages */ {template .settings_form autoescape="deprecated-contextual"}
{foreach $page in $pages}
{call ddm.form_rows data="all"} {param rows: $page.rows /} {/call}
{/foreach}
{/template}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy