<?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="formEENsubNLfoot" javascript="" jsfile="" stylesheet="" cssclass="Forms">
	<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="formContainerEENsubNLfoot" data_table="" templateid="1" data_main="true" data_validation="false" data_ws="/web/api/portal/personregister" data_wss="/web/api/portal/personregister" listurl="/sucesso-newsletter">
			<itemview>
				<ItemView templateid="2" itemtemplateid="4">

					<!-- ITEM TIPO CATEGORIA -->
					<items>
						<Item id="formItemEENubNLfootCategory" itemtemplateid="0">
							<fields>
								<Field id="formItemEENubNLfootCategory" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
									<fieldculture>
										<!-- "tooltip" gera atributo "title"; "text" gera o texto visível -->
										<FieldCulture language="pt" tooltip="" text="" />
									</fieldculture>
								</Field>
								<Field id="formItemEENubNLfootCategory" datafield="Category" fieldtype="select" name="Category" cssclass="formInput" style="" data_role="" data_bind="value: Category" inputtype="text" min="0" max="0">
									<list>
										<list>
											 <Options key="Professor" value="Professor" />
											 <Options key="Aluno" value="Aluno" />
										</list>
									</list>
									<fieldculture>
										<!-- permite definir "placeholder" e "validationmessage" por idioma -->
										<FieldCulture language="pt" validationmessage="Campo obrigatório" />
									</fieldculture>
								</Field>
							</fields>
						</Item>

						<!-- ITEM TIPO NOME-->
						<Item id="formItemEENubNLfootFirstName" itemtemplateid="0">
							<fields>
								<Field id="formLabelEENubNLfootFirstName" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
									<fieldculture>
										<!-- "tooltip" gera atributo "title"; "text" gera o texto visível -->
										<FieldCulture language="pt" tooltip="Nome" text="Nome" />
									</fieldculture>
								</Field>
								<Field id="formInputEENubNLfootFirstName" datafield="FirstName" fieldtype="input" name="FirstName" cssclass="formInput" style="" data_role="" data_bind="value: FirstName" inputtype="text" min="0" max="0">
									<list />
									<fieldculture>
										<!-- permite definir "placeholder" e "validationmessage" por idioma -->
										<FieldCulture language="pt" placeholder="Nome" validationmessage="Obrigatório" />
									</fieldculture>
								</Field>
							</fields>
						</Item>

						<!-- ITEM EMAIL -->
						<Item id="formItemEENubNLfootEmail" itemtemplateid="5">
							<fields>
								<Field id="formLabelEENubNLfootEmail" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
									<fieldculture>
										<FieldCulture language="pt" tooltip="Email" text="Email" />
									</fieldculture>
								</Field>
								<Field id="formInputEENubNLfootEmail" datafield="Email" fieldtype="input" name="Email" cssclass="formInput" style="" data_role="" data_bind="value: Email" inputtype="email" min="0" max="0">
									<list />
									<fieldculture>
										<FieldCulture language="pt" placeholder="Email" validationmessage="Email inválido" />
									</fieldculture>
								</Field>
							</fields>
						</Item>

						<!-- ITEM TIPO BUTTON -->
						<Item id="formItemEENubNLfootButton" itemtemplateid="6">
							<fields>
								<Field id="formLabelEENubNLfootButton" fieldtype="label" cssclass="formLabel" style="" inputtype="text" min="0" max="0">
								</Field>
								<Field id="formInputEENubNLfootButton" 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="Por favor aguarde..." />
										<Options key="data-loading-timeout" value="5000" />
										<Options key="data-loaddata" value="false" />
										<!-- envia para a página definida no "listurl" no topo do XML -->
										<Options key="data-onsuccess" value="goToList" />
									</attributes>
									<fieldculture>
										<FieldCulture language="pt" tooltip="Subscrever" text="Subscrever Newsletter" />
									</fieldculture>
								</Field>
							</fields>
						</Item>
					</items>
					<templates>
						<Template template="{$items}" />
						<Template template="&lt;div class=&quot;formSection&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 Com label col-12-12-12-12 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12&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 Sem label col-12-12-12-12 -->
						<Template template="&lt;div class=&quot;formLine col-xs-12&quot;&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />
 						<!-- 5 Sem label LAST col-12-12-12-12 -->
						<Template template="&lt;div class=&quot;formLine NLformLine-Last col-xs-12&quot;&gt;&lt;div class=&quot;formInput&quot;&gt;{$field2}&lt;/div&gt;&lt;/div&gt;" />
						<!-- 6 Sem label SUBMIT col-12-12-12-12 -->
						<Template template="&lt;div class=&quot;formLine NLformLine-Submit col-xs-12&quot;&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="FirstName" isdatakey="false" datatype="String" caption="Nome" maxlength="50" required="true" />
					<DataField datafield="Email" isdatakey="false" datatype="String" caption="Email" maxlength="250" required="true" />
					<DataField datafield="Category" isdatakey="false" datatype="String" caption="Categoria" maxlength="50" required="true" />
				</datafields>
			</metadata>
			<options />
			<templates>
				<Template template="{$itemview}" />
				<Template template="&lt;fieldset&gt;{$itemview}&lt;/fieldset&gt;"></Template>
			</templates>
			<attributes />
		</Form>
	</Forms>
</FormView>