{extends "layout_view.tpl"} {block name="title"} {title}{$title}{/title} {/block} {block name="content"}
{ticket mode=confirm}

Used as the sender email address for any errors

{tr}Wiki (multiple action) allows to prefix the subject with GET:, PREPEND: or APPEND:{/tr}

{tr}Reply handler requires notifications to be enabled and the reply email pattern to be configured.{/tr}

{if $prefs.feature_articles eq 'y'}
{if $tiki_p_admin_cms eq 'y'} {/if}
{if $tiki_p_admin_cms eq 'y'} {/if}
{/if} {if $prefs.feature_trackers eq 'y'}


 

{/if} {if $prefs.feature_file_galleries eq 'y'}
{/if}
{tr}Warning: Enabling anonymous access will disable all permission checking for mailed-in content.{/tr}
{tr}Administrators have full access to the system. Disabling admin mail-in is the safest option.{/tr}
{if $prefs.feature_wiki_attachments eq 'y'}
{else} {tr}Activate attachments{/tr} {/if}
{if $prefs.trackerfield_files eq 'y'}
{else} {tr}Enable Files Tracker Field{/tr} {/if}
{if $prefs.feature_wiki eq 'y'}
{tr}Allow per user routing of incoming email to structures.{/tr}
{else} {tr}Activate wiki{/tr} {/if}
{if $prefs.feature_wiki_attachments eq 'y'}
{tr}For HTML email, attempt to create a WYSIWYG wiki-page.{/tr}
{else} {tr}Activate attachments{/tr} {/if}
{tr}Always save Email in HTML format as a wiki page in HTML format, regardless of editor availability or selection.{/tr}
{if $prefs.feature_categories eq 'y'} {object_selector type='category' _simplename='categoryId' _simpleid='categoryId' _simplevalue=$info.categoryId|escape}
{tr}Only affects wiki-put, when creating a new wiki page{/tr}
{else} {tr}Activate categories{/tr} {/if}
{if $prefs.namespace_enabled eq 'y'}
{tr}Only affects wiki-put, when creating a new wiki page{/tr}
{else} {tr}Activate namespaces{/tr} {/if}
{tr}Leave the email on the mail server, when an error occurs and the content has not been integrated into Tiki.{/tr}
{/block} {jq} var fieldLinks; var inputOri; var links; $(document).ready(function () { $("#zone_fields").hide(); var trackerId = document.getElementById("trackerId"); var trackerAcc = document.getElementById("trackerAcc").value; var checkPackage = document.getElementById("checkPackage").value; if (trackerId.value != trackerAcc) { $('input[name=preferences]').val(''); } else { links = $('input[name=preferences]').val(); } trackerId.addEventListener("change", function() { if (trackerId.value != '' && checkPackage == 'y') { if (trackerId.value == trackerAcc) { $('input[name=preferences]').val(links); } else { $('input[name=preferences]').val(''); } getFields(trackerId.value); } else { $("#zone_fields").hide(); $('.modal-dialog').removeClass("modal-lg"); } }); if (trackerId.value != '' && checkPackage == 'y') { getFields(trackerId.value); } $("#replace_account").submit( function(eventObj) { if ((typeof fieldLinks !== "undefined") && ($('select[name="type"] option:selected').val() == 'tracker')) { var results = fieldLinks.fieldsLinker("getLinks"); $("").attr("type", "hidden") .attr("name", "preferences") .attr("value", JSON.stringify(results)) .appendTo("#replace_account"); return true; } }); }); function getFields(id) { var preferences = []; if ($("input[name=preferences]").val() !== '') { preferences = JSON.parse($("input[name=preferences]").val()); } $("#zone_fields").show(); var options = []; options = $.extend({ controller: 'mailin', action: 'fields_account', content: parseInt(id) }, options); $.ajax({ type: 'POST', url: 'tiki-ajax_services.php', dataType: 'json', data: options, success: function (data) { if(data != false) { inputOri = { "localization": { }, "options": { "associationMode": "oneToOne", // oneToOne,manyToMany "lineStyle": "square-ends", "buttonErase": "Erase Links", "displayMode": "original", "whiteSpace": "normal", //normal,nowrap,pre,pre-wrap,pre-line,break-spaces default => nowrap "mobileClickIt": false }, "Lists": [ { "name": "Mail elements", "list": [ "Subject", "User", "From", "To", "Description", "Date", "Body", "Attachments" ] }, { "name": "Tracker Available Fields", "list": data } ], "existingLinks": preferences['links'] }; fieldLinks = $("#original").fieldsLinker("init", inputOri); $('.modal-dialog').addClass("modal-lg"); $('.FL-left').css({'background': '', 'width': '21%'}); $('.FL-mid').css({'background': '', 'width': '23%'}); $('.FL-mid').children("canvas").css({'background': '', 'width': '100%'}); $('.FL-right').css({'background': '', 'width': '56%'}); $('.eraseLink').addClass("btn-primary"); } else { $("#zone_fields").hide(); inputOri = { "localization": {}, "options": {}, "Lists": [ { "name": "Mail elements", "list": [] }, { "name": "Tracker Available Fields", "list": [] } ], }; fieldLinks = $("#original").fieldsLinker("init", inputOri); } }, }); } {/jq}