%TMPL:INCLUDE{"edit"}%
%TMPL:INCLUDE{"editjavascript"}%
%TMPL:INCLUDE{"edittoolbar"}%
%TMPL:INCLUDE{"editdialog"}%
%TMPL:DEF{"titleaction"}%%IF{"defined 'rev'" 
  then="%MAKETEXT{"restore"}%" 
  else="%IF{"istopic '%WEB%.%TOPIC%'" 
    then="%MAKETEXT{"edit"}%" 
    else="%MAKETEXT{"new"}%"
  }%"
}%%TMPL:END%
%TMPL:DEF{"pagetitlestylewrapper"}%%{}%%TMPL:END%

%TMPL:DEF{"contenttitle"}%<noautolink>%TMPL:P{context="TopicTitleEnabled" then="contenttitle::topictitle" else="contenttitle::default"}%</noautolink>%TMPL:END%

%TMPL:DEF{"contenttitle::topictitle"}%<h1 class="natEditTitle">%IF{
  "istopic '%WEB%.%TOPIC%'" 
  then="<a href='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%' target='_blank'>%URLPARAM{"TopicTitle" default="%TMPL:P{"topictitle" hideautoinc="off"}%"}%</a>" 
  else="%URLPARAM{"TopicTitle" default="%TMPL:P{"topictitle" hideautoinc="off"}%"}% <span class='natEditTitleStatus'>(%TMPL:P{"titleaction"}%)</span>"
}%</h1>%TMPL:END%

%TMPL:DEF{"contenttitle::default"}%<h1 class="natEditTitle">%IF{
  "istopic '%WEB%.%TOPIC%'" 
  then="<a href='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%' target='_blank'>%TOPIC%</a>" 
  else="%TOPIC% <span class='natEditTitleStatus'>(%TMPL:P{"titleaction"}%)</span>"
}%</h1>%TMPL:END%

%TMPL:DEF{"windowtitle"}%<title>(%TMPL:P{"titleaction"}%) <nop>%BASETOPIC%%TMPL:P{"titlesep"}%%BASEWEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%

%TMPL:DEF{"topictitle"}%%TMPL:P{context="TopicTitlePluginEnabled" then="topictitle_topictitle" else="topictitle_default" hideautoinc="%hideautoinc%"}%%TMPL:END%
%TMPL:DEF{"topictitle_default"}%%ENCODE{"%TOPICTITLE{default="%FORMFIELD{"TopicTitle" alttext="%BASETOPIC%" default="%BASETOPIC%"}%"}%" type="entity"}%%TMPL:END%
%TMPL:DEF{"topictitle_topictitle"}%%GETTOPICTITLE{"%WEB%.%TOPIC%" encode="entity" hideautoinc="%hideautoinc%"}%%TMPL:END%

%TMPL:DEF{"sig_textareabuttons"}%%TMPL:END%

%TMPL:DEF{"content"}%%{}%
%TMPL:P{"contenttitle"}%%{}%
%TMPL:P{"formstart"}%%{}%
%TMPL:P{"formparameters"}%%{}%
%TMPL:P{"formattop"}%%{}%
%TMPL:P{"tabpane"}%%{}%
%TMPL:P{"bottomtopicactions"}%%{}%
%TMPL:P{"editcaptcha"}%%{}%
%TMPL:P{"formend"}%%{}%
%TMPL:P{"editjavascript"}%%{}%
%{}%%TMPL:END%

%TMPL:DEF{"formstart"}%<div class="ui-natedit-container">
<form id="EditForm" name="EditForm" action="%SCRIPTURLPATH{"save"}%" method="post" validate="%TMPL:P{"validationrules"}%">
<input type="submit" style="display:none" />
<input type="hidden" name="submitChangeForm" value="" /> 
<input type="hidden" name="topic" value="%WEB%.%TOPIC%" />
<input type="hidden" name="action_addform" value="" />
<input type="hidden" name="action_cancel" value="" />
<input type="hidden" name="action_checkpoint" value="" />
<input type="hidden" name="action_preview" value="" />
<input type="hidden" name="action_replaceform" value="" />
<input type="hidden" name="editaction" value="%IF{"$'action'='form'" then="form" else=""}%" />
<input type="hidden" name="action_save" value="" />%TMPL:END%

%TMPL:DEF{"textarea"}%<textarea id="topic" rows="25" autocomplete="off" wrap="%IF{"'%NATEDIT_LINEWRAPPING{default="on"}%'='off'" then="off" else="virtual"}%" autocorrect="off" autocapitalize="off" spellcheck="%TMPL:P{"textarea::spellcheck"}%" style="width:100%" class="foswikiTextarea foswikiWysiwygEdit natedit" data-rest-params="?%NONCE%" data-auto-max-expand="true" data-show-fullscreen="true" data-block-unload="true" %TMPL:P{"natedit::options"}% name="text">%TEXT%</textarea>%TMPL:END%
%TMPL:DEF{"textarea::spellcheck"}%%NATEDIT_SPELLCHECK{default="true"}%%TMPL:END%
%TMPL:DEF{"natedit::options"}%%NATEDIT_OPTIONS{default=""}%%TMPL:END%

%TMPL:DEF{"formend"}%</form></div>%TMPL:END%

%TMPL:DEF{"editcaptcha"}%%TMPL:P{context="CaptchaEnableSave" then="editcaptcha::impl"}%%TMPL:END%
%TMPL:DEF{"editcaptcha::impl"}%<div class="jqUIDialog foswikiFormSteps" data-modal="true" data-resizable="false"  data-width="auto" data-draggable="true" data-append-to="#EditForm" id="editcaptcha" title="%MAKETEXT{"Please validate"}%" >
%CAPTCHAFORM{validateonsubmit="off"}%
<a class="jqUIDialogButton jqUIDialogSubmit" data-icon="ui-icon-disk">%MAKETEXT{"Save"}%</a> 
<a class="jqUIDialogButton jqUIDialogClose" data-icon="ui-icon-cancel">%MAKETEXT{"Cancel"}%</a> 
</div>%TMPL:END%

%TMPL:DEF{"tabpane"}%%TABPANE{class="plain" automaxexpand="on" animate="on" remember="on" select="%URLPARAM{"natedittab" default="%TMPL:P{"selectedtab"}%"}%"}%
%TMPL:P{"tabs"}%%ENDTABPANE%%TMPL:END%

%TMPL:DEF{"tabs"}%%TMPL:P{"firsttab"}%%TMPL:P{"formfields"}%%TMPL:P{"settingstab"}%%TMPL:P{"permissionstab"}%%TMPL:P{"helptab"}%%TMPL:END%

%TMPL:DEF{"formfields"}%%FORMFIELDS%%TMPL:END%

%TMPL:DEF{"topicmeta"}%<div class='natEditTopicInfo'>
  <table>
  <tr>
    <th>%MAKETEXT{"Title"}%:</th>
    <td><literal>
          <input class='foswikiInputField' type='text' name='TopicTitle' size='75' value='%URLPARAM{"TopicTitle" default="%TMPL:P{"topictitle" hideautoinc="on"}%" encode="entity"}%' />
        </literal>
    </td>
  </tr>
  </table>
</div>%TMPL:END%

%TMPL:DEF{"firsttab"}%%TAB{"%MAKETEXT{"Text"}%" id="text"}%
%TMPL:P{context="TopicTitleEnabled" then="topicmeta"}%%TMPL:P{"textarea"}%%ENDTAB%%TMPL:END%

%TMPL:DEF{"helptab"}%%TAB{"%MAKETEXT{"Help"}%"}%
%TMPL:P{"help"}%
%{}%%ENDTAB%%TMPL:END%

%TMPL:DEF{"help"}%%INCLUDE{"%NATEDIT_HELP{default="%SYSTEMWEB%.NatEditHelpText"}%"}%%TMPL:END%

%TMPL:DEF{"selectedtab"}%%URLPARAM{"selectedtab"}%%TMPL:END%

%TMPL:DEF{"getpreference"}%%QUERY{
  "%IF{"$'URLPARAM{templatetopic}'=''"
    then="preferences[name='%name%'].value"
    else="'%URLPARAM{"templatetopic"}%'/preferences[name='%name%'].value"
  }%"
}%%TMPL:END%

%TMPL:DEF{"permissionstab"}%%TAB{"%MAKETEXT{"Permissions"}%" id="permissions"}%
%TMPL:P{"permissionstab::check"
  permset_view="%TMPL:P{"getpreference" name="PERMSET_VIEW"}%"
  permset_view_details="%TMPL:P{"getpreference" name="PERMSET_VIEW_DETAILS"}%"
  allowtopic_view="%TMPL:P{"getpreference" name="ALLOWTOPICVIEW"}%"
  denytopic_view="%TMPL:P{"getpreference" name="DENYTOPICVIEW"}%"
  permset_change="%TMPL:P{"getpreference" name="PERMSET_CHANGE"}%"
  permset_change_details="%TMPL:P{"getpreference" name="PERMSET_CHANGE_DETALS"}%"
  allowtopic_change="%TMPL:P{"getpreference" name="ALLOWTOPICCHANGE"}%"
  denytopic_change="%TMPL:P{"getpreference" name="DENYTOPICCHANGE"}%"
}%%ENDTAB%%TMPL:END%

%TMPL:DEF{"permissionstab::check"}%%IF{
  "
    ('%permset_view%'=~'^(default|)$' and ('%allowtopic_view%'!='' or '%denytopic_view%'!='')) or
    ('%permset_view%'='registeredusers' and '%denytopic_view%'!='' and ('%allowtopic_view%'!='*' or '%denytopic_view%'!='WikiGuest')) or
    ('%permset_view%'='justauthor' and ('%allowtopic_view%'='' or '%denytopic_view%'!='')) or
    ('%permset_view%'='nobody' and '%allowtopic_view%'!='' and ('%allowtopic_view%'!='AdminUser' or '%denytopic_view%'!='')) or
    ('%permset_view%'='details' and ('%denytopic_view%'!='')) or
    ('%permset_change%'=~'^(default|)$' and ('%allowtopic_change%'!='' or '%denytopic_change%'!='')) or
    ('%permset_change%'='registeredusers' and '%denytopic_change%'!='' and ('%allowtopic_change%'!='*' or '%denytopic_change%'!='WikiGuest')) or
    ('%permset_change%'='justauthor' and ('%allowtopic_change%'='' or '%denytopic_change%'!='')) or
    ('%permset_change%'='nobody' and '%allowtopic_change%'!='' and ('%allowtopic_change%'!='AdminUser' or '%denytopic_change%'!='')) or
    ('%permset_change%'='details' and ('%denytopic_change%'!='')) 
  "
  then="$percntTMPL:P{\"permissionstab::message\"}$percnt"
  else="$percntTMPL:P{\"permissionstab::impl\"
          permset_view=\"%permset_view%\"
          permset_view_details=\"%permset_view_details%\"
          allowtopic_view=\"%allowtopic_view%\"
          denytopic_view=\"%denytopic_view%\"
          permset_change=\"%permset_change%\"
          permset_change_details=\"%permset_change_details%\"
          allowtopic_change=\"%allowtopic_change%\"
          denytopic_change=\"%denytopic_change%\"
        }$percnt"
}%%TMPL:END%

%TMPL:DEF{"permissionstab::message"}%<div class='foswikiMessage'>%X% %MAKETEXT{"Warning: Incompatible permission settings detected. Use the =Edit settings= dialog to change the ACLs."}%</div>%TMPL:END%

%TMPL:DEF{"permissionstab::impl"}%%{}%
%TMPL:P{"permissionstab::impl::start"}%
%TMPL:P{"permissionstab::impl::viewstep" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::editstep" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{"permissionstab::impl::end"}%
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep"}%%{}%
%TMPL:P{"permissionstab::impl::viewstep::start" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::viewstep::default" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::viewstep::everybody" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::viewstep::registeredusers" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::viewstep::justme" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{context="isadmin" then="permissionstab::impl::viewstep::nobody" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%%{}%
%TMPL:P{"permissionstab::impl::viewstep::other" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%TMPL:P{"permissionstab::impl::viewstep::end" permset_view="%permset_view%" permset_view_details="%permset_view_details%" allowtopic_view="%allowtopic_view%" denytopic_view="%denytopic_view%"}%
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep"}%%{}%
%TMPL:P{"permissionstab::impl::editstep::start" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{"permissionstab::impl::editstep::default" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{"permissionstab::impl::editstep::registeredusers" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{"permissionstab::impl::editstep::justme" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{context="isadmin" then="permissionstab::impl::editstep::nobody" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%%{}%
%TMPL:P{"permissionstab::impl::editstep::other" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%TMPL:P{"permissionstab::impl::editstep::end" permset_change="%permset_change%" permset_change_details="%permset_change_details%" allowtopic_change="%allowtopic_change%" denytopic_change="%denytopic_change%"}%
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::start"}%<noautolink>
<div class="foswikiFormSteps ui-natedit-permissions-form jqUITooltip" data-theme="info" data-arrow="true" data-position="right">
  <input type="hidden" name="Set+ALLOWTOPICVIEW" value="undefined" class="permset_view allow_view" />
  <input type="hidden" name="Set+DENYTOPICVIEW" value="undefined" class="permset_view deny_view" />
  <input type="hidden" name="Set+ALLOWTOPICCHANGE" value="undefined" class="permset_change allow_change" />
  <input type="hidden" name="Set+DENYTOPICCHANGE" value="undefined" class="permset_change deny_change" />
  <input type="hidden" name="Default+ALLOWTOPICVIEW" value="undefined" />
  <input type="hidden" name="Default+ALLOWTOPICCHANGE" value="undefined" />
  <input type="hidden" name="Default+DENYTOPICVIEW" value="undefined" />
  <input type="hidden" name="Default+DENYTOPICCHANGE" value="undefined" />
  <input type="hidden" name="Default+PERMSET_VIEW" value="default" />
  <input type="hidden" name="Default+PERMSET_CHANGE" value="default" />
  <input type="hidden" name="Default+PERMSET_VIEW_DETAILS" value="" />
  <input type="hidden" name="Default+PERMSET_CHANGE_DETAILS" value="" />
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::end"}%</div></noautolink>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::start"}%%{}%
  <div class="foswikiFormStep ui-natedit-view-perms">
    <h3>%MAKETEXT{"Users who may view"}%:</h3>
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::default"}%<p>
    <label title='%MAKETEXT{"default as defined in the [_1]" args="<nop>%WEBPREFSTOPIC%"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" name="Local+PERMSET_VIEW" value="default" %IF{"'%permset_view%'=~'^(default|)$'" then="checked"}% /> 
      %MAKETEXT{"Default"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::everybody"}%<p>
    <label title="%MAKETEXT{"public view access"}%">
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" data-perms='%IF{"'%QUERY{"{AccessControlACL}{EnableDeprecatedEmptyDeny}"}%'='0'" then="{\"allow\":\"*\"}" else="{\"deny\":\" \"}"}%' name="Local+PERMSET_VIEW" value="everybody" %IF{"'%permset_view%'='everybody'" then="checked"}% /> 
      %MAKETEXT{"Everybody"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::registeredusers"}%<p>
    <label title='%MAKETEXT{"restrict read access to users that have an account on this site"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" data-perms='{"deny":"WikiGuest", "allow":"*"}' name="Local+PERMSET_VIEW" value="registeredusers" %IF{"'%permset_view%'='registeredusers'" then="checked"}% /> 
      %MAKETEXT{"Registered users"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::justme"}%<p>
    <label title='%MAKETEXT{"restrict access to [_1]" args="%SPACEOUT{"%WIKINAME%"}%"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" data-perms='{"allow":"%WIKINAME%"}' name="Local+PERMSET_VIEW" value="justauthor" %IF{"'%permset_view%'='justauthor' and '%allowtopic_view%'='%WIKINAME%'" then="checked"}% />
      %MAKETEXT{"Just me"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::nobody"}%<p>
    <label title='%MAKETEXT{"strictly deny any access to this topic"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" data-perms='{"allow":"AdminUser"}' name="Local+PERMSET_VIEW" value="nobody" %IF{"'%permset_view%'='nobody'" then="checked"}% /> 
      %MAKETEXT{"Nobody"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::other"}%<p>
    <label title='%MAKETEXT{"specify a list of users and/or groups"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="view" data-perms='details' name="Local+PERMSET_VIEW" value="details" %IF{"'%permset_view%'='details' or ( '%permset_view%'='justauthor' and '%allowtopic_view%'!='%WIKINAME%') or ('%permset_view%'='' and '%allowtopic_view%'!='')" then="checked"}% />
      %MAKETEXT{"Specific users/groups"}%
    </label>

    <div class="ui-natedit-details-container" %IF{"'%permset_view%'!='details'" then="style='display:none'"}%>
      <input type="text" class="foswikiInputField" size="40" data-perm-type="view" data-perms='details' autocomplete="off" name="Local+PERMSET_VIEW_DETAILS" value="%IF{"('%permset_view%'='justauthor' and '%allowtopic_view%'!='%WIKINAME%') or ('%permset_view%'='' and '%allowtopic_view%'!='')" then="%allowtopic_view%" else="%permset_view_details%"}%" />
    </div>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::viewstep::end"}%</div>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::start"}%%{}%
  <div class="foswikiFormStep ui-natedit-change-perms">
    <h3>%MAKETEXT{"Users who may edit"}%:</h3>
%{}%%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::default"}%<p>
    <label title='%MAKETEXT{"default as defined in the [_1]" args="<nop>%WEBPREFSTOPIC%"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="change" name="Local+PERMSET_CHANGE" value="default" %IF{"'%permset_change%'=~'^(default|)$'" then="checked"}% /> 
      %MAKETEXT{"Default"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::registeredusers"}%<p>
    <label title='%MAKETEXT{"restrict write access to users that have an account on this site"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="change" data-perms='{"deny":"WikiGuest", "allow":"*"}' name="Local+PERMSET_CHANGE"  value="registeredusers" %IF{"'%permset_change%'='registeredusers'" then="checked"}% />
      %MAKETEXT{"Registered users"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::justme"}%<p>
    <label title='%MAKETEXT{"restrict access to [_1]" args="%SPACEOUT{"%WIKINAME%"}%"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="change" data-perms='{"allow":"%WIKINAME%"}' name="Local+PERMSET_CHANGE" value="justauthor" %IF{"'%permset_change%'='justauthor' and '%allowtopic_change%'='%WIKINAME%'" then="checked"}% />
      %MAKETEXT{"Just me"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::nobody"}%<p>
    <label title='%MAKETEXT{"strictly deny write access to this topic"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="change" data-perms='{"allow":"AdminUser"}' name="Local+PERMSET_CHANGE" value="nobody" %IF{"'%permset_change%'='nobody'" then="checked"}% /> 
      %MAKETEXT{"Nobody"}%
    </label>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::other"}%<p>
    <label title='%MAKETEXT{"specify a list of users and/or groups"}%'>
      <input type="radio" class="foswikiRadioButton" data-perm-type="change" data-perms='details' name="Local+PERMSET_CHANGE" value="details" %IF{"'%permset_change%'='details' or ('%permset_change%'='justauthor' and '%allowtopic_change%'!='%WIKINAME%') or ('%permset_change%'='' and '%allowtopic_change%'!='')" then="checked"}% />
      %MAKETEXT{"Specific users/groups"}%
    </label>

    <div class="ui-natedit-details-container" %IF{"$'PERMSET_CHANGE'!='details'" then="style='display:none'"}%>
      <input type="text" class="foswikiInputField" size="40" data-perm-type="change" data-perms='details' autocomplete="off" name="Local+PERMSET_CHANGE_DETAILS" value="%IF{"'%permset_change%'='details' or ('%permset_change%'='justauthor' and '%allowtopic_change%'!='%WIKINAME%') or ('%permset_change%'='' and '%allowtopic_change%'!='')" then="%allowtopic_change%" else="%permset_change_details%"}%" />
    </div>
</p>%TMPL:END%

%TMPL:DEF{"permissionstab::impl::editstep::end"}%</div>%TMPL:END%
