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

com.liferay.dynamic.data.mapping.service.dependencies.ddm.journal-article.ftl Maven / Gradle / Ivy

The newest version!
<#include "../init.ftl">

<#if !(fields?? && fields.get(fieldName)??) && validator.isNull(fieldRawValue)>
	<#assign fieldRawValue = predefinedValue />


<#assign
	fieldRawValue = paramUtil.getString(request, "${namespacedFieldName}", fieldRawValue)
	message = ""
/>

<#if validator.isNotNull(fieldRawValue)>
	<#assign
		fieldJournalJSONObject = jsonFactoryUtil.createJSONObject(fieldRawValue)

		message = fieldJournalJSONObject.getString("message")
		title = fieldJournalJSONObject.getString("title")
	/>


<#assign data = data + {
	"assetBrowserAuthToken": assetBrowserAuthToken
}>

<@liferay_aui["field-wrapper"]
	cssClass="form-builder-field"
	data=data
	required=required
>
	
<@liferay_aui.input helpMessage=escape(fieldStructure.tip) inlineField=true label=escape(label) name="${namespacedFieldName}Title" readonly="readonly" required=required type="text" value=title /> <@liferay_aui.input name=namespacedFieldName type="hidden" value=fieldRawValue /> <@liferay_aui.input name=namespacedFieldName type="hidden" value=fieldRawValue /> <#if validator.isNotNull(message)>
<@liferay_aui.button cssClass="select-button" id="${namespacedFieldName}SelectButton" value="select" /> <@liferay_aui.button cssClass="clear-button ${(fieldRawValue?has_content)?string('', 'hide')}" id="${namespacedFieldName}ClearButton" value="clear" />
${fieldStructure.children}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy