{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

{block name="listing-tr-class"}
	{if !$rowFields['isEnabled']}
		disabled
	{/if}
{/block}

{block name="listing-tr-extraData" append}
	data-clientId="{$rowFields['clientId']}"
{/block}

{block name="listing-td-content-clientId"}
	<span class="help" tooltip="{strip}
		{if $rowFields['isConfidential']}
			<div>The client secret is stored hashed and cannot be shown here. It is displayed only once, when the application is created (or when its secret is regenerated).</div>
		{else}
			<div>Public client (PKCE) - no client secret is used.</div>
		{/if}
	{/strip}">{$rowFields['clientId']}</span>
{/block}

{block name="listing-td-content-type"}
	{if $rowFields['isConfidential']}
		<span class="help" tooltip="{strip}
			<div>{$lang['index']['tooltips']['confidentialClient']}</div>
		{/strip}">Confidential (server-side)</span>
	{else}
		<span class="help" tooltip="{strip}
			<div>{$lang['index']['tooltips']['publicClient']}</div>
		{/strip}">Public (PKCE)</span>
	{/if}
{/block}

{block name="listing-td-content-redirectUris"}
	<span class="help" tooltip="{strip}
		<div>{$lang['index']['tooltips']['redirectUris']}</div>
	{/strip}">{$rowFields['redirectUris']}</span>
{/block}

{block name="listing-td-content-allowedScopes"}
	<span class="help" tooltip="{strip}
		<div>{$lang['index']['tooltips']['allowedScopes']}</div>
	{/strip}">{$rowFields['allowedScopes']}</span>
{/block}

{block name="listing-td-content-status"}
	{if $rowFields['isEnabled']}Active{else}Deactivated{/if}
{/block}

{block name="listing-td-content-addTime"}
	{$rowFields['addTime']|dateTimeFormat:'dateWithHM'}
	<div>
		{userLabel ref=$rowFields['idAddUser']}
	</div>
{/block}
