<style type="text/css">
        {literal}
		.inputVal {
			width: 200px;
		}
		.dropdowneditor_error {
			background-color : #CC0000;
		}
		{/literal}
</style>
<br>
<hr>
<div name="EcmDropdownEditor">
{foreach from=$DROPDOWNS item=DOM key=NAME}
<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>
		{foreach from=$VAL item=I key=L}
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input class="inputVal" name="{$L}" value="{$I}"/>
			&nbsp;&nbsp;( {$LANGUAGES[$L]} )<br>
		{/foreach}
		<br>
	</div> <!-- End: $KEY -->
	{/foreach}
	<span name="eoo"></span> <!-- mark end of option -->
	<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}')"/>
</div> <!-- End: $NAME -->
<hr>
{/foreach}
</div> <!-- End: EcmDropdownEditor -->