{{capture name=jsWorkflowCode assign=tmpJS}}		

{{/capture}}
{{assign var=JavascriptJQueryCode value=$JavascriptJQueryCode|concat:" "|concat:$tmpJS}} 

{{if $smarty.post.save eq 'save'}}

{{else}}

	{{getCollectionByCategory OrderColumn=1 CollectionID=98 ColumnID=1 Value=$CollectionID Collection_98_2=4 var=TmpVars}}{{assign var=Tmp value=$TmpVars[0]}}
	{{if $Tmp.Collection_98_3 eq 'on'}}{{assign var=wFlowRedirectAddFrontEndActive value='checked'}}{{else}}{{assign var=wFlowRedirectAddFrontEndActive value=''}}{{/if}}
	{{if $Tmp.Collection_98_5 eq 'on'}}{{assign var=wFlowRedirectAddFrontEndHTTPS value='checked'}}{{else}}{{assign var=wFlowRedirectAddFrontEndHTTPS value=''}}{{/if}}
	{{assign var=wFlowRedirectAddFrontEndURL value=$Tmp.Collection_98_4}}
	
	{{getCollectionByCategory OrderColumn=1 CollectionID=98 ColumnID=1 Value=$CollectionID Collection_98_2=5 var=TmpVars}}{{assign var=Tmp value=$TmpVars[0]}}
	{{if $Tmp.Collection_98_3 eq 'on'}}{{assign var=wFlowRedirectEditFrontEndActive value='checked'}}{{else}}{{assign var=wFlowRedirectEditFrontEndActive value=''}}{{/if}}
	{{if $Tmp.Collection_98_5 eq 'on'}}{{assign var=wFlowRedirectEditFrontEndHTTPS value='checked'}}{{else}}{{assign var=wFlowRedirectEditFrontEndHTTPS value=''}}{{/if}}
	{{assign var=wFlowRedirectEditFrontEndURL value=$Tmp.Collection_98_4}}
	
	{{getCollectionByCategory OrderColumn=1 CollectionID=98 ColumnID=1 Value=$CollectionID Collection_98_2=6 var=TmpVars}}{{assign var=Tmp value=$TmpVars[0]}}
	{{if $Tmp.Collection_98_3 eq 'on'}}{{assign var=wFlowRedirectDeleteFrontEndActive value='checked'}}{{else}}{{assign var=wFlowRedirectDeleteFrontEndActive value=''}}{{/if}}
	{{if $Tmp.Collection_98_5 eq 'on'}}{{assign var=wFlowRedirectDeleteFrontEndHTTPS value='checked'}}{{else}}{{assign var=wFlowRedirectDeleteFrontEndHTTPS value=''}}{{/if}}
	{{assign var=wFlowRedirectDeleteFrontEndURL value=$Tmp.Collection_98_4}}

{{/if}}

<h3>Redirect on Add</h3>

<p><input type="checkbox" name="wFlowRedirectAddFrontEndActive" {{$wFlowRedirectAddFrontEndActive}} /> Activate redirecting</p>
<p><input type="checkbox" name="wFlowRedirectAddFrontEndHTTPS" {{$wFlowRedirectAddFrontEndHTTPS}} /> Activate redirecting to <strong>https</strong></p>
<p>Url to redirect <input type="text" class="input" name="wFlowRedirectAddFrontEndURL" value="{{$wFlowRedirectAddFrontEndURL|addslashes}}" size="40"/></p>

<h3>Redirect on Edit</h3>

<p><input type="checkbox" name="wFlowRedirectEditFrontEndActive" {{$wFlowRedirectEditFrontEndActive}} /> Activate redirecting</p>
<p><input type="checkbox" name="wFlowRedirectEditFrontEndHTTPS" {{$wFlowRedirectEditFrontEndHTTPS}} /> Activate redirecting to <strong>https</strong></p>
<p>Url to redirect <input type="text" class="input" name="wFlowRedirectEditFrontEndURL" value="{{$wFlowRedirectEditFrontEndURL|addslashes}}" size="40"/></p>

<h3>Redirect on Delete</h3>

<p><input type="checkbox" name="wFlowRedirectDeleteFrontEndActive" {{$wFlowRedirectDeleteFrontEndActive}} /> Activate redirecting</p>
<p><input type="checkbox" name="wFlowRedirectDeleteFrontEndHTTPS" {{$wFlowRedirectDeleteFrontEndHTTPS}} /> Activate redirecting to <strong>https</strong></p>
<p>Url to redirect <input type="text" class="input" name="wFlowRedirectDeleteFrontEndURL" value="{{$wFlowRedirectDeleteFrontEndURL|addslashes}}" size="40"/></p>
