Location: PHPKode > projects > iF.SVNAdmin > svnadmin/templates/settings.html
[{INCLUDE templates/header.html}]
<script type="text/javascript">
$(document).ready(function(){

  updateSettingsSelection();
  $("select").change(updateSettingsSelection);

  $('#SVNAuthFileTest').click(function(){
    testSettings("SVNAuthFile", {SVNAuthFile: $("#SVNAuthFile").val()}, "#SVNAuthFileTestResult");
  });
  
  $('#SVNUserFileTest').click(function(){
    testSettings("SVNUserFile", {SVNUserFile: $("#SVNUserFile").val()}, "#SVNUserFileTestResult");
  });

  $('#SVNParentPathTest').click(function(){
    testSettings("SVNParentPath", {SVNParentPath: $("#SVNParentPath").val()}, "#SVNParentPathTestResult");
  });

  $('#SvnExecutableTest').click(function(){
    testSettings("SvnExecutable", {SvnExecutable: $("#SvnExecutable").val()}, "#SvnExecutableTestResult");
  });

  $('#SvnAdminExecutableTest').click(function(){
    testSettings("SvnAdminExecutable", {SvnAdminExecutable: $("#SvnAdminExecutable").val()}, "#SvnAdminExecutableTestResult");
  });

  $('#LdapConnectTest').click(function(){
    testSettings("LdapConnection",
    {LdapHostAddress: $("#LdapHostAddress").val(), LdapProtocolVersion: $("#LdapProtocolVersion").val(),
     LdapBindDN: $("#LdapBindDN").val(), LdapBindPassword: $("#LdapBindPassword").val()},
    "#LdapConnectTestResult");
  });

  $('#LdapUserTest').click(function(){
    testSettings("LdapUser",
    {LdapHostAddress: $("#LdapHostAddress").val(), LdapProtocolVersion: $("#LdapProtocolVersion").val(),
     LdapBindDN: $("#LdapBindDN").val(), LdapBindPassword: $("#LdapBindPassword").val(),
     LdapUserBaseDn: $("#LdapUserBaseDn").val(), LdapUserSearchFilter: $("#LdapUserSearchFilter").val(),
     LdapUserAttributes: $("#LdapUserAttributes").val()},
    "#LdapUserTestResult");
  });

  $('#LdapGroupTest').click(function(){
    testSettings("LdapGroup",
    {LdapHostAddress: $("#LdapHostAddress").val(), LdapProtocolVersion: $("#LdapProtocolVersion").val(),
     LdapBindDN: $("#LdapBindDN").val(), LdapBindPassword: $("#LdapBindPassword").val(),
     LdapGroupBaseDn: $("#LdapGroupBaseDn").val(), LdapGroupSearchFilter: $("#LdapGroupSearchFilter").val(),
     LdapGroupAttributes: $("#LdapGroupAttributes").val(), LdapGroupsToUserAttribute: $("#LdapGroupsToUserAttribute").val(),
     LdapGroupsToUserAttributeValue: $("#LdapGroupsToUserAttributeValue").val()},
    "#LdapGroupTestResult");
  });
  
});
</script>
[{IFDEF ERROR}]<div class="errormsg">${MESSAGE_ERR}</div>[{/IFDEF}]
[{IFDEF OK}]<div class="okmsg">${MESSAGE_OK}</div>[{/IFDEF}]
<h1>TR{Settings}}</h1>

<form method="post" action="settings.php?save=1">

<!-- Basics -->
<table class="datatable settings" id="tbl_basic">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{Subversion authorization}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{Subversion authorization file}}<br><small><b>TR{Example}}:</b> ${SVNAuthFileEx}</small></td>
      <td>
        <input type="text" name="SVNAuthFile" id="SVNAuthFile" value="${SVNAuthFile}">
        <input type="button" id="SVNAuthFileTest" value="TR{Test}}">
        <span id="SVNAuthFileTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- Provider settings -->
<table class="datatable settings" id="tbl_providers">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{Data providers}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>User view provider type:</td>
      <td>
        <select name="UserViewProviderType" id="UserViewProviderType">
          [{LOOP userViewProviderTypes}]
          <option>${userViewProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
    <tr>
      <td>User edit provider type:</td>
      <td>
        <select name="UserEditProviderType" id="UserEditProviderType">
          [{LOOP userEditProviderTypes}]
          <option>${userEditProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
    <tr>
      <td>Group view provider type:</td>
      <td>
        <select name="GroupViewProviderType" id="GroupViewProviderType">
          [{LOOP groupViewProviderTypes}]
          <option>${groupViewProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
    <tr>
      <td>Group edit provider type:</td>
      <td>
        <select name="GroupEditProviderType" id="GroupEditProviderType">
          [{LOOP groupEditProviderTypes}]
          <option>${groupEditProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
    <tr>
      <td>Repository view provider type:</td>
      <td>
        <select name="RepositoryViewProviderType" id="RepositoryViewProviderType">
          [{LOOP repositoryViewProviderTypes}]
          <option>${repositoryViewProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
    <tr>
      <td>Repository edit provider type:</td>
      <td>
        <select name="RepositoryEditProviderType" id="RepositoryEditProviderType">
          [{LOOP repositoryEditProviderTypes}]
          <option>${repositoryEditProviderTypes}{$}</option>
          [{/LOOP}]
        </select>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- SVNUserFile -->
<table class="datatable settings" id="tbl_userfile">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{User authentication}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{User authentication file (SVNUserFile)}}<br><small><b>TR{Example}}:</b> ${SVNUserFileEx}</small></td>
      <td>
        <input type="text" name="SVNUserFile" id="SVNUserFile" value="${SVNUserFile}">
        <input type="button" id="SVNUserFileTest" value="TR{Test}}">
        <span id="SVNUserFileTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- Subversion configuration -->
<table class="datatable settings" id="tbl_subversion">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{Subversion settings}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{Parent directory of the repositories (SVNParentPath)}}<br><small><b>TR{Example}}:</b> ${SVNParentPathEx}</small></td>
      <td>
        <input type="text" name="SVNParentPath" id="SVNParentPath" value="${SVNParentPath}">
        <input type="button" id="SVNParentPathTest" value="TR{Test}}">
        <span id="SVNParentPathTestResult" style="display:none;"></span>
      </td>
    </tr>
    <tr>
      <td>TR{Subversion client executable}}<br><small><b>TR{Example}}:</b> ${SvnExecutableEx}</small></td>
      <td>
        <input type="text" name="SvnExecutable" id="SvnExecutable" value="${SvnExecutable}">
        <input type="button" id="SvnExecutableTest" value="TR{Test}}">
        <span id="SvnExecutableTestResult" style="display:none;"></span>
      </td>
    </tr>
    <tr>
      <td>TR{Subversion admin executable}}<br><small><b>TR{Example}}:</b> ${SvnAdminExecutableEx}</small></td>
      <td>
        <input type="text" name="SvnAdminExecutable" id="SvnAdminExecutable" value="${SvnAdminExecutable}">
        <input type="button" id="SvnAdminExecutableTest" value="TR{Test}}">
        <span id="SvnAdminExecutableTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- LDAP connection -->
<table class="datatable settings" id="tbl_ldapconnection">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{LDAP connection information}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{Host address}}<br><small><b>TR{Example}}:</b> ${LdapHostAddressEx}</small></td>
      <td><input type="text" name="LdapHostAddress" id="LdapHostAddress" value="${LdapHostAddress}"></td>
    </tr>
    <tr>
      <td>TR{Protocol version}}<br><small><b>TR{Example}}:</b> ${LdapProtocolVersionEx}</small></td>
      <td><input type="text" name="LdapProtocolVersion" id="LdapProtocolVersion" value="${LdapProtocolVersion}"></td>
    </tr>
    <tr>
      <td>TR{Bind DN}}<br><small><b>TR{Example}}:</b> ${LdapBindDNEx}</small></td>
      <td><input type="text" name="LdapBindDN" id="LdapBindDN" value="${LdapBindDN}"></td>
    </tr>
    <tr>
      <td>TR{Bind password}}<br><small><b>TR{Example}}:</b> ${LdapBindPasswordEx}</small></td>
      <td>
        <input type="password" name="LdapBindPassword" id="LdapBindPassword" value="${LdapBindPassword}">
        <input type="button" id="LdapConnectTest" value="TR{Test}}">
        <span id="LdapConnectTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- LDAP user provider -->
<table class="datatable settings" id="tbl_ldapuser">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{LDAP user provider information}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{Base DN}}<br><small><b>TR{Example}}:</b> ${LdapUserBaseDnEx}</small></td>
      <td><input type="text" name="LdapUserBaseDn" id="LdapUserBaseDn" value="${LdapUserBaseDn}"></td>
    </tr>
    <tr>
      <td>TR{Search filter}}<br><small><b>TR{Example}}:</b> ${LdapUserSearchFilterEx}</small></td>
      <td><input type="text" name="LdapUserSearchFilter" id="LdapUserSearchFilter" value="${LdapUserSearchFilter}"></td>
    </tr>
    <tr>
      <td>TR{Attributes}}<br><small><b>TR{Example}}:</b> ${LdapUserAttributesEx}</small></td>
      <td>
        <input type="text" name="LdapUserAttributes" id="LdapUserAttributes" value="${LdapUserAttributes}">
        <input type="button" id="LdapUserTest" value="TR{Test}}">
        <span id="LdapUserTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<!-- LDAP Group provider -->
<table class="datatable settings" id="tbl_ldapgroup">
  <colgroup>
    <col width="50%">
    <col width="50%">
  </colgroup>
  <thead>
    <tr>
      <th colspan="2">TR{LDAP group provider information}}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>TR{Base DN}}<br><small><b>TR{Example}}:</b> ${LdapGroupBaseDnEx}</small></td>
      <td><input type="text" name="LdapGroupBaseDn" id="LdapGroupBaseDn" value="${LdapGroupBaseDn}"></td>
    </tr>
    <tr>
      <td>TR{Search filter}}<br><small><b>TR{Example}}:</b> ${LdapGroupSearchFilterEx}</small></td>
      <td><input type="text" name="LdapGroupSearchFilter" id="LdapGroupSearchFilter" value="${LdapGroupSearchFilter}"></td>
    </tr>
    <tr>
      <td>TR{Attributes}}<br><small><b>TR{Example}}:</b> ${LdapGroupAttributesEx}</small></td>
      <td><input type="text" name="LdapGroupAttributes" id="LdapGroupAttributes" value="${LdapGroupAttributes}"></td>
    </tr>
    <tr>
      <td>TR{Groups to user attribute}}<br><small><b>TR{Example}}:</b> ${LdapGroupsToUserAttributeEx}</small></td>
      <td><input type="text" name="LdapGroupsToUserAttribute" id="LdapGroupsToUserAttribute" value="${LdapGroupsToUserAttribute}"></td>
    </tr>
    <tr>
      <td>TR{Groups to user attribute value}}<br><small><b>TR{Example}}:</b> ${LdapGroupsToUserAttributeValueEx}</small></td>
      <td>
        <input type="text" name="LdapGroupsToUserAttributeValue" id="LdapGroupsToUserAttributeValue" value="${LdapGroupsToUserAttributeValue}">
        <input type="button" id="LdapGroupTest" value="TR{Test}}">
        <span id="LdapGroupTestResult" style="display:none;"></span>
      </td>
    </tr>
  </tbody>
</table>
<br>

<input type="submit" value="TR{Save configuration}}">

</form>

[{INCLUDE templates/footer.html}]
Return current item: iF.SVNAdmin