<style type="text/css">
        {literal}
		.inputVal {
			width: 200px;
		}
		.dropdowneditor_error {
			background-color : #CC0000;
		}
		{/literal}
</style>
<div name="EcmDropdownEditor" style="position: absolute; background: rgb(246,246,246); border: 1px solid rgb(171,195,215); padding: 2 2 2 2; z-index: 100;">
{sugar_translate label='LBL_DROPDOWNEDITOR' module='Home'}<br>
{foreach from=$DROPDOWNS item=DOM key=NAME}
<button type="button" class="button" value="" onclick="EcmDropdownEditor_addOption('{$NAME}')">
	<img src="themes/default/images/id-ff-add.png"</img>
	</button>
	<input type="button" class="button" value="{sugar_translate label='LBL_SAVE' module='Home'}" onclick="EcmDropdownEditor_save('{$NAME}', '{$CONTAINER}')"/>
	<input type="button" class="button" value="{sugar_translate label='LBL_CANCEL' module='Home'}" onclick="EcmDropdownEditor_cancel('{$CONTAINER}')"/>
	<br>
<div name="{$NAME}"> 
	{foreach from=$DOM item=VAL key=KEY}
	<div name="{$KEY}">
		<img src="themes/Sugar5/images/delete.gif" style="cursor: pointer;" onclick="$(this).parent().remove();"></img>&nbsp;
		<img src="themes/Sugar5/images/arrow_up.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementUp(this);"></img>&nbsp;
		<img src="themes/Sugar5/images/arrow_down.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementDown(this);"></img><br>
		{assign var="showed" value="0"}
		{foreach from=$VAL item=I key=L}
	
						
				{if $NAME=='ecmproducts_unit_dom'}
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input class="inputVal" name="{$L}" value="{$I}"/>
			&nbsp;&nbsp;( {$LANGUAGES[$L]} )<br>&nbsp;&nbsp;&nbsp;&nbsp;
			{if $NAME=='ecmproducts_unit_dom' && $showed==0}
			<input class="inputVal" name="precision" value="{$PRECISION[$KEY]}"/>
			&nbsp;&nbsp;( Precyzja )<br>
			{assign var="showed" value="1"}
			{/if}
			{else}
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input class="inputVal" name="{$L}" value="{$I}"/>
			&nbsp;&nbsp;( {$LANGUAGES[$L]} )<br>
			{/if}
		{/foreach}
		<br>
	</div> <!-- End: $KEY -->
	{/foreach}
<span name="eoo"></span> <!-- mark end of option -->
</div> <!-- End: $NAME -->
{/foreach}
</div> <!-- End: EcmDropdownEditor -->