<commit_before><div class="wity-app wity-app-page wity-action-form">
	<form method="post" enctype="multipart/form-data">
		<div class="row">
			<div class="col-md-9 form-horizontal">
				<h1>{if empty({$id})}{lang action_add}{else}{lang action_edit}{/if}</h1>

				<div class="form-group">
					<label for="title" class="col-sm-2 control-label">{lang title}</label>
					<div class="col-sm-10">
						<input id="title" class="form-control" type="text" name="title" value="{$title}" autocomplete="off" placeholder="{lang title}" />
					</div>
				</div>
				
				<div class="form-group">
					<label for="url" class="col-sm-2 control-label">{lang url}</label>
					<div class="col-sm-10">
						<div class="input-group">
							<span class="input-group-addon">{$wity_base_url}</span>
							<input id="url" class="form-control" type="text" name="url" value="{$url}" />
							<span class="input-group-addon"><a href="javascript:void(0)" class="update-url"><i class="glyphicon glyphicon-refresh"></i></a></span>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label for="content" class="col-sm-2 control-label">{lang content}</label>
					<div class="col-sm-10">
						<textarea id="content" class="form-control" name="content" rows="20" cols="80">{$content}</textarea>

						<script type="text/javascript">
							var roxyFileman = '{$wity_base_url}libraries/fileman/index.html';

							CKEDITOR.replace('content', {
								filebrowserBrowseUrl: roxyFileman,
								filebrowserImageBrowseUrl: roxyFileman + '?type=image',
								removeDialogTabs: 'link:upload;image:upload',
								height: '500px'
							});
						</script>
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="well well-sm">
					<button type="submit" class="btn btn-primary btn-lg btn-block" type="button">{lang submit}</button>
					{if !empty({$id})}<a href="{$wity_base_url}{$url}" target="_blank" class="btn btn-info btn-lg btn-block">{lang preview}</a>{/if}
					<button type="button" class="btn btn-default btn-lg btn-block" onclick="history.back();">{lang cancel}</button>
				</div>

				<div class="well well-sm">
					<h4 class="text-center">{lang details}</h4>

					<div class="form-group">
						<label for="author" class="control-label">{lang author}</label>
						<input id="author" class="form-control" type="text" name="author" value="{$author}" placeholder="{lang author}" />
					</div>

					<div class="form-group">
						<label for="subtitle" class="control-label">{lang subtitle}</label>
						<input id="subtitle" class="form-control" type="text" name="subtitle" value="{$subtitle}" placeholder="{lang subtitle}" />
					</div>
					
					<div class="form-group">
						<label for="parent">{lang mother_page}</label>
						<select id="parent" name="parent" class="form-control">
							<option value="0">{lang none}</option>

							{for $page in $pages}
								{if {$page.id} != {$id}}
									{if !empty({$page.parent})}
										{set $page_parent = {$page.parent}.'/'.{$page.id}}
									{else}
										{set $page_parent = {$page.id}}
									{/if}
									<option value="{$page_parent}" data-page-url="{$page.url}"{if {$page_parent} == {$parent}} selected="selected"{/if}>
										{range $i = 1..{$page.level}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{/range}{$page.title}
									</option>
								{/if}
							{/for}
						</select>
					</div>

					<div class="form-group">
						<label for="image">{lang image}</label>

						{if !empty({$image})}
						<p><img class="img-responsive" src="{$image}" alt="{$title}" /></p>
						{/if}

						<input id="image" type="file" name="image" />
					</div>

					<hr />

					<ul class="list-unstyled">
						<li>{lang page_created_on|{$page.created_date}}</li>

						{if {$page.modified_date} != '0000-00-00 00:00:00'}
						<li>{lang page_modified_on|{$page.modified_date}}</li>
						{/if}
					</ul>
				</div>

				<div class="well well-sm">
					<h4 class="text-center">{lang SEO}</h4><commit_msg>Fixes page creation date<commit_after><div class="wity-app wity-app-page wity-action-form">
	<form method="post" enctype="multipart/form-data">
		<div class="row">
			<div class="col-md-9 form-horizontal">
				<h1>{if empty({$id})}{lang action_add}{else}{lang action_edit}{/if}</h1>

				<div class="form-group">
					<label for="title" class="col-sm-2 control-label">{lang title}</label>
					<div class="col-sm-10">
						<input id="title" class="form-control" type="text" name="title" value="{$title}" autocomplete="off" placeholder="{lang title}" />
					</div>
				</div>
				
				<div class="form-group">
					<label for="url" class="col-sm-2 control-label">{lang url}</label>
					<div class="col-sm-10">
						<div class="input-group">
							<span class="input-group-addon">{$wity_base_url}</span>
							<input id="url" class="form-control" type="text" name="url" value="{$url}" />
							<span class="input-group-addon"><a href="javascript:void(0)" class="update-url"><i class="glyphicon glyphicon-refresh"></i></a></span>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label for="content" class="col-sm-2 control-label">{lang content}</label>
					<div class="col-sm-10">
						<textarea id="content" class="form-control" name="content" rows="20" cols="80">{$content}</textarea>

						<script type="text/javascript">
							var roxyFileman = '{$wity_base_url}libraries/fileman/index.html';

							CKEDITOR.replace('content', {
								filebrowserBrowseUrl: roxyFileman,
								filebrowserImageBrowseUrl: roxyFileman + '?type=image',
								removeDialogTabs: 'link:upload;image:upload',
								height: '500px'
							});
						</script>
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="well well-sm">
					<button type="submit" class="btn btn-primary btn-lg btn-block" type="button">{lang submit}</button>
					{if !empty({$id})}<a href="{$wity_base_url}{$url}" target="_blank" class="btn btn-info btn-lg btn-block">{lang preview}</a>{/if}
					<button type="button" class="btn btn-default btn-lg btn-block" onclick="history.back();">{lang cancel}</button>
				</div>

				<div class="well well-sm">
					<h4 class="text-center">{lang details}</h4>

					<div class="form-group">
						<label for="author" class="control-label">{lang author}</label>
						<input id="author" class="form-control" type="text" name="author" value="{$author}" placeholder="{lang author}" />
					</div>

					<div class="form-group">
						<label for="subtitle" class="control-label">{lang subtitle}</label>
						<input id="subtitle" class="form-control" type="text" name="subtitle" value="{$subtitle}" placeholder="{lang subtitle}" />
					</div>
					
					<div class="form-group">
						<label for="parent">{lang mother_page}</label>
						<select id="parent" name="parent" class="form-control">
							<option value="0">{lang none}</option>

							{for $page in $pages}
								{if {$page.id} != {$id}}
									{if !empty({$page.parent})}
										{set $page_parent = {$page.parent}.'/'.{$page.id}}
									{else}
										{set $page_parent = {$page.id}}
									{/if}
									<option value="{$page_parent}" data-page-url="{$page.url}"{if {$page_parent} == {$parent}} selected="selected"{/if}>
										{range $i = 1..{$page.level}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{/range}{$page.title}
									</option>
								{/if}
							{/for}
						</select>
					</div>

					<div class="form-group">
						<label for="image">{lang image}</label>

						{if !empty({$image})}
						<p><img class="img-responsive" src="{$image}" alt="{$title}" /></p>
						{/if}

						<input id="image" type="file" name="image" />
					</div>

					{if !empty({$id})}
					<hr />

					<ul class="list-unstyled">
						<li>{lang page_created_on|{$created_date}}</li>

						{if {$modified_date} != '0000-00-00 00:00:00'}
						<li>{lang page_modified_on|{$modified_date}}</li>
						{/if}
					</ul>
					{/if}
				</div>

				<div class="well well-sm">
					<h4 class="text-center">{lang SEO}</h4>
{'fraction_non_alphanumeric': 0.2152008956337853, 'fraction_numerical': 0.010200273665878841, 'mean_word_length': 3.238270954138113, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 187, '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': '6796713', 'n_tokens_mistral': 3660, 'n_tokens_neox': 2715, 'n_words': 497}