AVE.CMS v3.28
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.1 KiB

7 years ago
{if $smarty.request.action == 'change'}
7 years ago
<div id="rub_field_{$rf.rubric_id}_{$rf.Id}" style="text-align: left;">
7 years ago
<form name="field_save_{$rf.rubric_id}_{$rf.Id}" id="field_save_{$rf.rubric_id}_{$rf.Id}" method="post" action="index.php?do=rubs&action=changesave&field_id={$rf.Id|escape}&rubric_id={$rf.rubric_id|escape}&pop=1&onlycontent=1&cp={$sess}" class="mainForm">
5 years ago
<select class="mousetrap" name="rubric_field_type" id="rubric_field_type_{$field_id|escape}">
7 years ago
{section name=field loop=$fields}
<option value="{$fields[field].id}" {if $rf.rubric_field_type == $fields[field].id}selected{/if}>{$fields[field].name}</option>
{/section}
</select>
&nbsp;
<input type="submit" class="basicBtn SaveChangeField" data-id="{$rf.Id|escape}" data-rubric="{$rf.rubric_id|escape}" value="Ok">
</form>
<script>
AveAdmin.ajax();
</script>
</div>
{else}
<div id="rub_field_{$rf.rubric_id}_{$rf.Id}">
{section name=field loop=$fields}
{if $rf.rubric_field_type == $fields[field].id}<a href="javascript:void(0);" class="link change_type" data-rubric="{$rf.rubric_id}" data-id="{$rf.Id}">{$fields[field].name}</a>{/if}
{/section}
</div>
{/if}