<input name="type" type="hidden" value="{$type}" />
{assign var=idGroup value=null}
{assign var=idGroupVal value=null}
{foreach $arrayGroupParam as $arrayObjParameters}
	{*						Stałe			*}
	{if $arrayObjParameters[0]->getPriceType() == 1}
		{*						Lista - Rodzaj pieca	*}
		{if $arrayObjParameters[0]->getList() == 1}
			{foreach $arrayObjParameters as $objParameters}	
				{if $objParameters@first}
					<div class="entry">
						<div class="label"></div>
						<div class="value" >
						{/if}
						<label class="control control--radio" title="{$objParameters->GetOpis()}">{$objParameters->GetName()}
							<input type="radio" name="piec" value="{$objParameters->GetName()}" {if $objParameters@first}checked="checked" onclick="$('#project').hide();"{/if} {if $objParameters@last} onclick="$('#project').show();"{/if} />
							<div class="control__indicator"></div>
						</label>
						{if $objParameters@last}
						</div>
					</div>
				{/if}
			{/foreach}
		{/if}
		{*						Wybór opcji Tak/Nie	*}
		{if $arrayObjParameters[0]->getList() == 0}
			{foreach $arrayObjParameters as $objParameters}
				
				{if $objParameters@first && $objParameters->getPriceType() == 1}
					{assign var=idGroup value=$objParameters->GetName()|text2url}
					{assign var=idGroupVal value="{$idGroup}Val"}
					<div class="entry" {if $objParameters->getDependId() > 0 && $type ==2}style="display: none;" id="project"{/if} >
						<div class="label">{$objParameters->GetName()}:</div>
						<div class="value" title="{$objParameters->GetOpis()}">
						{/if}
						{if $objParameters->getPriceType() == 1}
							<label class="control control--radio" onclick="$('#{$idGroup}').hide();	$('input[id={$idGroupVal}]').val('');">Nie
								<input type="radio" name="{$objParameters->GetName()|text2url}" value="{if $objParameters->getRevers()}1{else}0{/if}" checked="checked"/>
								<div class="control__indicator"></div>
							</label>
							<label class="control control--radio" onclick="$('#{$idGroup}').show();">Tak
								<input type="radio" name="{$objParameters->GetName()|text2url}" value="{if $objParameters->getRevers()}0{else}1{/if}" {if $type ==2} checked="checked"{/if}/>
								<div class="control__indicator"></div>
							</label>
							{*<label class="control control--checkbox"><input name="{$objParameters->GetName()|text2url}" type="checkbox">&nbsp;
							<div class="control__indicator"></div></label>*}
						{/if}

						{if $objParameters@last && $objParameters->getPriceType() == 1}
						</div>
					</div>
				{/if}
				{if $objParameters->getPriceType() == 2}
				</div>
			</div>
			<div class="entry" {if $objParameters->getDependId() > 0}style="display: none;"{/if} id="{$idGroup}">
				<div class="label">{$objParameters->GetName()}:</div>
				<div class="value" title="{$objParameters->GetOpis()}">	
					{formField  name="{$objParameters->GetName()|text2url}" type="text" errorClass="warning" id="$idGroupVal" }
				</div>
			</div>
		{/if}
	{/foreach}
{/if}
{/if}
{*		Zmienne 			*}
{if $arrayObjParameters[0]->getPriceType() == 2}	
	{foreach $arrayObjParameters as $objParameters}
		{if $objParameters->getPriceProgres() == 0}
			<div class="entry" 	{if $objParameters->getDependId() > 0}style="display: none;" id="{$idGroup}"{/if} >
				<div class="label">{$objParameters->GetName()}{if $objParameters->GetUnit()} [{$objParameters->GetUnit()|replace:"^2":"<sup>2</sup>"}]{/if}:
					{if $objParameters->GetOpis()}
						<p style="font-size: 0.6em; margin: 0px; margin-top: -10px; color: #0087ba">({$objParameters->GetOpis()})</p>
					{/if}
				</div>
				<div class="value" title="{$objParameters->GetOpis()}">
					{formField  name="{$objParameters->GetName()|text2url}" type="text" errorClass="warning" id="$idGroupVal"  }
				</div>
			</div>
			{assign var=idGroupVal value=null}
		{/if}				
	{/foreach}
{/if}
{/foreach}