mirror of https://github.com/avecms/AVE.cms.git
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.
23 lines
1.1 KiB
23 lines
1.1 KiB
{if $smarty.request.action == 'change'} |
|
<div id="rub_field_{$rf.rubric_id}_{$rf.Id}" style="text-align: left;"> |
|
<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"> |
|
<select class="mousetrap" name="rubric_field_type" id="rubric_field_type_{$field_id|escape}"> |
|
{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> |
|
|
|
<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}
|
|
|