<?xml version="1.0" encoding="utf-8" ?>
<!-- atributo "id" define âmbito de validação do formulário; TEM QUE SER ÚNICO -->
<FormView xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="formShowNewsletter" javascript="" jsfile="" stylesheet="" cssclass="SubscribeNewsletter">
	<Forms>
		<!-- "data_ws" & "data_wss" (têm de ser iguais) podem ser "formsend" (envia para 2) OU "personregister" (regista Person) OU "crmregister" (regista Person e Account) -->
		<Form id="formContainer" data_table="" templateid="1" data_main="true" data_validation="false" data_ws="/web/api/portal/formsend" data_wss="/web/api/portal/formsend" listurl="/aboutus">
			<itemview>
				<ItemView templateid="2" itemtemplateid="3">
					<items>
						<Item id="item-leadname" itemtemplate="&lt;div&gt;{$field1}&lt;/div&gt;">
							<fields>
								<Field id="NewsletterLeadName" datafield="Name" fieldtype="input" name="NewsletterLeadName" cssclass="" style="" data_role=""  inputtype="hidden" min="0" max="0" >
									<list />
									<attributes>
										<Options key="value" value="Subscrição de Newsletter" />
									</attributes>
								</Field>
							</fields>
						</Item>

						<Item id="item-name" itemtemplateid="0">
							<fields>
								<Field id="NewsletterName-lbl" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
									<fieldculture>
										<FieldCulture language="pt" tooltip="Nome" text="Nome" />
										<FieldCulture language="en" tooltip="Name" text="Name" />
									</fieldculture>
								</Field>
								<Field id="NewsletterName" datafield="Name" fieldtype="input" name="NewsletterName" cssclass="" style="" data_role="" data_bind="value: NewsletterName" inputtype="text" min="0" max="0">
									<list />
									<fieldculture>
										<FieldCulture language="pt" placeholder="" validationmessage="*" />
										<FieldCulture language="en" placeholder="" validationmessage="*" />
									</fieldculture>
									<attributes>
										<Options key="required" value="required" />
									</attributes>
								</Field>
							</fields>
						</Item>
						<!-- ITEM TIPO INPUT EMAIL -->
						<Item id="item-email" itemtemplateid="3">
							<fields>
								<Field id="NewsletterEmail-lbl" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
									<fieldculture>
										<FieldCulture language="pt" tooltip="Email" text="Email" />
										<FieldCulture language="en" tooltip="Email" text="Email" />
									</fieldculture>
								</Field>
								<Field id="NewsletterEmail" datafield="Email" fieldtype="input" name="NewsletterEmail" cssclass="" style="" data_role="" data_bind="value: NewsletterEmail" inputtype="email" min="0" max="0">
									<list />
									<fieldculture>
										<FieldCulture language="pt" placeholder="" validationmessage="*" />
										<FieldCulture language="en" placeholder="" validationmessage="*" />
									</fieldculture>
									<attributes>
										<Options key="required" value="required" />
									</attributes>
								</Field>
							</fields>
						</Item>
						<!-- ITEM TIPO BUTTON -->
						<Item id="Button" itemtemplateid="0">
							<fields>
								<Field id="Button" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
								</Field>
								<Field id="Button" datafield="" fieldtype="button" name="" cssclass="formButton" style="" data_mode="save" data_role="insert" data_bind="" inputtype="button" min="0" max="0">
									<attributes>
										<Options key="type" value="button" />
										<Options key="data-loading-text" value="..." />
										<Options key="data-loading-timeout" value="5000" />
										<Options key="data-loaddata" value="false" />
										<Options key="data-onsuccess" value="goToList" />
									</attributes>
									<fieldculture>
										<FieldCulture language="pt" tooltip="Subscrever" text="Subscrever" />
										<FieldCulture language="en" tooltip="Subscrive" text="Subscribe" />
									</fieldculture>
								</Field>
							</fields>
						</Item>
					</items>
					<templates>
						<Template template="{$items}" />
						<Template template="&lt;div class=&quot;formShowNewsletter&quot; data-validation=&quot;true&quot;&gt;{$items}&lt;/div&gt;"></Template>
					</templates>
					<itemtemplates>
						<!-- 1 - field 1 -->
						<Template template="{$field1}" />

						<!-- 2 - field 1+2 -->
						<Template template="{$field1}{$field2}" />

						<!-- =============================================================== -->
						<!-- div.formLine(div.formLabel>{$field1})+(div.formInput>{$field2}) -->
						<!-- =============================================================== -->
						<!-- 3 col-12-12-12-12 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-md-6 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 4 col-12-12-12-6 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-lg-6 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 5 col-12-12-6-6 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-md-6 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 6 col-12-6-4-4 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-4 col-lg-4 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 7 col-12-6-4-3 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-4 col-lg-3 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 8 col-12-6-3-3 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-3 col-lg-3 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 9 col-12-12-4-4 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-md-4 col-lg-4 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 10 col-12-6-10-10 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-10 col-lg-10 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 11 col-12-6-9-9 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-9 col-lg-9 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 12 col-12-6-8-8 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-8 col-lg-8 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />

						<!-- 13 col-12-6-2-2 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12 col-sm-6 col-md-2 col-lg-2 &quot;&gt;&lt;div class=&quot;formLabel&quot;&gt;{$field1}&lt;/div&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />


					</itemtemplates>
					<itemoptionsdefinitions>
						<Options key="legendtitle" />
						<Options key="legendname" />
					</itemoptionsdefinitions>
				</ItemView>
			</itemview>
			<metadata table="" group="" subgroup="">
				<datafields>
					<!-- "datafield" CORRESPONDE ao do Item -->
					<!-- "maxlength" sobrepõe ao do Item; "0" igual a ILIMITADO -->
					<!-- define "required" como "true" ou "false" -->
					<!-- "caption" define a designação no {$content} do email enviado -->
					<DataField datafield="Name" isdatakey="false" datatype="String" caption="Name" maxlength="0" required="false" />
					<DataField datafield="Email" isdatakey="false" datatype="String" caption="Email" maxlength="0" required="true" />
				</datafields>
			</metadata>
			<options />
			<templates>
				<Template template="{$itemview}" />
				<Template template="&lt;fieldset&gt;{$itemview}&lt;/fieldset&gt;"></Template>
			</templates>
			<attributes />
		</Form>
	</Forms>
</FormView>