Browse Source

+ сис тег копировать в буфер обмена

master
Repellent 8 years ago
parent
commit
5dc154d24c
  1. 9
      contactsnew/templates/form_edit.tpl

9
contactsnew/templates/form_edit.tpl

@ -143,8 +143,12 @@ $smarty['_refresh'] = '{#refresh#}';
</div> </div>
</td> </td>
<td> <td>
<div class="pr12" style="display: table;">
<input type="text" name="alias" id="form_alias" value="{$form.alias|escape}" class="mousetrap" data-accept="{#alias_accept#}" data-error-syn="{#alias_er_syn#}" data-error-exists="{#alias_er_exists#}" placeholder="{#alias#}" maxlength="20" size="40" /> <input type="text" name="alias" id="form_alias" value="{$form.alias|escape}" class="mousetrap" data-accept="{#alias_accept#}" data-error-syn="{#alias_er_syn#}" data-error-exists="{#alias_er_exists#}" placeholder="{#alias#}" maxlength="20" size="40" />
<input type="text" id="form_tag" value="[mod_contactsnew:{if $fid && $form.alias}{$form.alias}{elseif $fid}{$fid}{/if}]" readonly size="40" class="mousetrap" /> <input type="text" id="form_tag_{$fid}" value="[mod_contactsnew:{if $fid && $form.alias}{$form.alias}{elseif $fid}{$fid}{/if}]" readonly size="40" class="mousetrap" />
<a style="text-align: center; padding: 5px 3px 4px 3px;" class="whiteBtn copyBtn topDir" href="javascript:void(0);" data-clipboard-action="copy" data-clipboard-target="#form_tag_{$form.id}" title="{#cn_copy_to_clipboard#}">
<img style="margin-top: -3px; position: relative; top: 4px; padding: 0 3px;" class="clippy" src="{$ABS_PATH}admin/templates/images/clippy.svg" width="13"></a>
</div>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -798,4 +802,5 @@ $(document)
</script> </script>
{/if} {/if}
{/foreach} {/foreach}
<!-- /Оформляем поля в CodeMirror --> <!-- /Оформляем поля в CodeMirror -->
<script type="text/javascript">var clipboard = new Clipboard('.copyBtn');</script>
Loading…
Cancel
Save