init
This commit is contained in:
38
include/ECM/EcmDropdownEditor/EditView.tpl
Normal file
38
include/ECM/EcmDropdownEditor/EditView.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
<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>
|
||||
<img src="themes/Sugar5/images/arrow_up.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementUp(this);"></img>
|
||||
<img src="themes/Sugar5/images/arrow_down.gif" style="cursor: pointer;" onclick="EcmDropdownEditor_moveElementDown(this);"></img><br>
|
||||
{foreach from=$VAL item=I key=L}
|
||||
|
||||
<input class="inputVal" name="{$L}" value="{$I}"/>
|
||||
( {$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 -->
|
||||
Reference in New Issue
Block a user