<commit_before><h1><a class="pagetitle" href="tiki-directory_add_site.php?parent={$parent}">{tr}Add a new site{/tr}</a></h1>
{* Display the title using parent *}
{include file=tiki-directory_bar.tpl}
<br /><br />

{if $categs[0] eq ''}
{tr}You cannot add sites until Directory Categories are setup.{/tr}<br />
{tr}Please contact the Site Administrator{/tr}
{else}
{if $save eq 'y'}
<h2>{tr}Site added{/tr}</h2>
{tr}The following site was added and validation by admin may be needed before appearing on the lists{/tr}
<table class="normal">
<tr>
    <td class="formcolor">{tr}Name{/tr}:</td>
    <td class="formcolor">{$info.name}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Description{/tr}:</td>
    <td class="formcolor">{$info.description}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}URL{/tr}:</td>
    <td class="formcolor">{$info.url}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Country{/tr}:</td>
    <td class="formcolor">{$info.country}</td>
</tr></table>

{else}
{* Dislay a form to add or edit a site *}
<h2>{tr}Add or edit a site{/tr}</h2>
<form action="tiki-directory_add_site.php" method="post">
<input type="hidden" name="parent" value="{$parent|escape}" />
<input type="hidden" name="siteId" value="{$siteId|escape}" />
<table class="normal">
{if $msg}
	<tr><td class="formcolor" colspan="2"><span class="hightlight">{$msg}</span></td></tr>
{/if}
  <tr>
    <td class="formcolor">{tr}Name{/tr}:</td>
    <td class="formcolor"><input type="text" name="name" value="{$info.name|escape}" /></td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Description:{/tr}</td>
    <td class="formcolor"><textarea rows="5" cols="60" name="description">{$info.description|escape}</textarea></td>
  </tr>
  <tr>
    <td class="formcolor">{tr}URL:{/tr}</td>
    <td class="formcolor"><input type="text" name="url" value="{if $info.url ne ""}{$info.url|escape}{else}http://{/if}" /></td>
  </tr><commit_msg>[MOD] tiki-directory_add_site: small changes on the grid (size of the url field, error message size and positioning)<commit_after><h1><a class="pagetitle" href="tiki-directory_add_site.php?parent={$parent}">{tr}Add a new site{/tr}</a></h1>
{* Display the title using parent *}
{include file=tiki-directory_bar.tpl}
<br /><br />

{if $categs[0] eq ''}
  {tr}You cannot add sites until Directory Categories are setup.{/tr}<br />
  {tr}Please contact the Site Administrator{/tr}
{else}
{if $save eq 'y'}
<h2>{tr}Site added{/tr}</h2>
<br /><b>
  {tr}The following site was added and validation by admin may be needed before appearing on the lists{/tr}
</b><br /><br />
<table class="normal">
<tr>
    <td class="formcolor">{tr}Name{/tr}:</td>
    <td class="formcolor">{$info.name}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Description{/tr}:</td>
    <td class="formcolor">{$info.description}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}URL{/tr}:</td>
    <td class="formcolor">{$info.url}</td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Country{/tr}:</td>
    <td class="formcolor">{$info.country}</td>
</tr>
</table>

{else}
  {if $msg}
    <div class="commentsedithelp">
      <br /><b>{tr}{$msg}{/tr}</b><br /><br />
    </div>
  {/if}

{* Dislay a form to add or edit a site *}
<h2>{tr}Add or edit a site{/tr}</h2>
<form action="tiki-directory_add_site.php" method="post">
<input type="hidden" name="parent" value="{$parent|escape}" />
<input type="hidden" name="siteId" value="{$siteId|escape}" />

<table class="normal">
  <tr>
    <td class="formcolor">{tr}Name{/tr}:</td>
    <td class="formcolor"><input type="text" name="name" value="{$info.name|escape}" /></td>
  </tr>
  <tr>
    <td class="formcolor">{tr}Description:{/tr}</td>
    <td class="formcolor"><textarea rows="5" cols="60" name="description">{$info.description|escape}</textarea></td>
  </tr>
  <tr>
    <td class="formcolor">{tr}URL:{/tr}</td>
    <td class="formcolor"><input type="text" size="60" name="url" value="{if $info.url ne ""}{$info.url|escape}{else}http://{/if}" /></td>
  </tr>
{'fraction_non_alphanumeric': 0.23948948948948948, 'fraction_numerical': 0.005755755755755756, 'mean_word_length': 4.8952802359882, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3208606', 'n_tokens_mistral': 1532, 'n_tokens_neox': 1504, 'n_words': 323}