Add TPL files
This commit is contained in:
51
include/ECM/EcmDropdownEditor/EditView.tpl
Executable file
51
include/ECM/EcmDropdownEditor/EditView.tpl
Executable file
@@ -0,0 +1,51 @@
|
||||
<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>
|
||||
<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>
|
||||
{assign var="showed" value="0"}
|
||||
{foreach from=$VAL item=I key=L}
|
||||
|
||||
|
||||
{if $NAME=='ecmproducts_unit_dom'}
|
||||
|
||||
<input class="inputVal" name="{$L}" value="{$I}"/>
|
||||
( {$LANGUAGES[$L]} )<br>
|
||||
{if $NAME=='ecmproducts_unit_dom' && $showed==0}
|
||||
<input class="inputVal" name="precision" value="{$PRECISION[$KEY]}"/>
|
||||
( Precyzja )<br>
|
||||
{assign var="showed" value="1"}
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
<input class="inputVal" name="{$L}" value="{$I}"/>
|
||||
( {$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 -->
|
||||
Reference in New Issue
Block a user