добавил вывод значения атрибута name в шаблон
This commit is contained in:
@@ -181,4 +181,5 @@ cn_count_messages = "сообщений: "
|
||||
cn_copy_to_clipboard = "Скопировать в буфер обмена"
|
||||
cn_return_list_form = "Вернуться к списку форм"
|
||||
cn_mod_info = "Важно: модуль использует метод отправки почты установленный в системных настройках, в разделе "
|
||||
cn_mod_info_a = "Настройки почты."
|
||||
cn_mod_info_a = "Настройки почты."
|
||||
info_attr_name = "Атрибут <span style='color:#2474B0'>name</span> уже установлен и используется по умолчанию, его значение:"
|
@@ -216,7 +216,13 @@
|
||||
<tr class="form_field_tpl_tr {if !$field_tpl_open[$field_id]}hide{/if}">
|
||||
<td colspan="8">
|
||||
<div class="col-half">
|
||||
<h6>{#attributes#}</h6>
|
||||
<h6 ><span style="padding-right: 20px;">{#attributes#}</span> <img style="margin-top: -2px; position: relative; top: 0pt; padding: 0 3px;" class="clippy" src="{$ABS_PATH}admin/templates/images/uploader/error.png" width="10"> <span style="padding-right: 5px;">{#info_attr_name#}</span>
|
||||
<div class="pr12" style="display: inline">
|
||||
<input type="text" id="field_name_{$form.id}" value='name="form-{if $form.alias}{$form.alias}{else}{$form.id}{/if}[{$field.id}]"' style="width:120px; display: table-cell" readonly class="mousetrap" />
|
||||
<a style="display: table-cell; text-align: center" class="whiteBtn copyBtn topDir" href="javascript:void(0);" data-clipboard-action="copy" data-clipboard-target="#field_name_{$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>
|
||||
</h6>
|
||||
<textarea name="fields[{$field.id}][attributes]" id="field_attr[{$field.id}]" placeholder="{#attributes#}" class="mousetrap" rows="8">{$field.attributes|escape}</textarea>
|
||||
<div> |
|
||||
php |
|
||||
@@ -242,7 +248,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-half">
|
||||
<h6>{#field_tpl#}</h6>
|
||||
<h6 style="line-height: 22px;">{#field_tpl#}</h6>
|
||||
<textarea name="fields[{$field.id}][tpl]" id="field_tpl[{$field.id}]" placeholder="{#field_tpl#}" class="mousetrap" rows="8">{$field.tpl|escape}</textarea>
|
||||
<div> |
|
||||
php |
|
||||
|
Reference in New Issue
Block a user