{* change value of allowExistingMsAccount to false to prohibit using an existing MS account *} {assign var=allowExistingMsAccount value=$account->AccountID > 0} {* change value of defaultOfficeMode from "createNew" to "useExisting" to select "Use an existing Microsoft account" option by default *} {assign var=defaultOfficeMode value="createNew"} {* If set to true, then anonymous user will be asked whether he is already a customer and login link will be provided *} {* change value of askAnonymousToLogin to false to hide this selector *} {assign var=askAnonymousToLogin value=true} {if $plan.ProvVisibleCount} {assign var=officeTenantId value='aps_defaults_o365'} {assign var=officeExistingEmailId value='o365_based_on_email'} {assign var=isAnonymous value=$account->AccountID == 0}
{$smarty.session.LANG.REQUIRED_PARAMETERS} {foreach name=outerorder item=prov_id from=$state->plan.sortedProv} {assign var=itemOrderProv value=$plan.Prov[$prov_id]} {if $itemOrderProv.statusShow} {if $itemOrderProv.id != $officeTenantId && $itemOrderProv.id != $officeExistingEmailId} {/if} {/if} {/foreach}
{$itemOrderProv.name|escape:'html'} {if $itemOrderProv.readonly}
{$itemOrderProv.defaultvalue}
{else}
{assign var=itemProvDescr value=$itemOrderProv.description} {if !strlen($itemOrderProv.description)} {assign var=itemProvDescr value= $itemOrderProv.name} {/if} {widget name="prov_"|cat:$itemOrderProv.id id="prov_"|cat:$itemOrderProv.id title=$itemProvDescr}
{if $itemOrderProv.hint && strlen($itemOrderProv.hint)}{$itemOrderProv.hint}{else}{$itemOrderProv.description}{/if}
{/if}
{assign var=officePlanProv value=$plan.Prov[$officeTenantId]} {assign var=officeSubdomainTitle value=$smarty.session.LANG.SUBDOMAIN_CAPTION} {assign var=o365Tenant value=$officePlanProv['value']|@json_decode} {if $askAnonymousToLogin && $isAnonymous} {/if}
{$smarty.session.LANG.LOADING_SUBDOMAIN_FORM}
{if !$isAnonymous} {/if}
{* to id=o365_customer_type_defined *} {/if}