bludit/admin/views/new-post.php

78 lines
2.2 KiB
PHP
Raw Normal View History

2015-07-04 00:36:37 +02:00
<h2 class="title"><i class="fa fa-pencil"></i> <?php $Language->p('New post') ?></h2>
2015-05-05 03:00:01 +02:00
<form method="post" action="" class="forms">
2015-08-26 05:42:32 +02:00
<label>
<?php $Language->p('Title') ?>
<input id="jstitle" name="title" type="text" class="width-80">
</label>
2015-08-27 07:05:59 +02:00
<label class="width-80">
2015-08-26 05:42:32 +02:00
<?php $Language->p('Content') ?> <span class="forms-desc"><?php $Language->p('HTML and Markdown code supported') ?></span>
2015-08-27 07:05:59 +02:00
<textarea id="jscontent" name="content" rows="15" ></textarea>
2015-08-26 05:42:32 +02:00
</label>
<button id="jsadvancedButton" class="btn btn-smaller"><?php $Language->p('Advanced options') ?></button>
<div id="jsadvancedOptions">
<label>
<?php $Language->p('Date') ?>
<input name="date" id="jsdate" type="text">
<span class="forms-desc"><?php $Language->p('You can schedule the post just select the date and time') ?></span>
</label>
<label>
<?php $Language->p('Friendly Url') ?>
<div class="input-groups width-50">
<span class="input-prepend"><?php echo $Site->urlPost() ?><span id="jsparentExample"></span></span>
<input id="jsslug" name="slug" type="text">
</div>
<span class="forms-desc"><?php $Language->p('you-can-modify-the-url-which-identifies') ?></span>
</label>
<label>
<?php $Language->p('Description') ?>
<input id="jsdescription" name="description" type="text" class="width-50">
<span class="forms-desc"><?php $Language->p('this-field-can-help-describe-the-content') ?></span>
</label>
<label>
<?php $Language->p('Tags') ?>
<input id="jstags" name="tags" type="text" class="width-50">
<span class="forms-desc"><?php $Language->p('write-the-tags-separeted-by-comma') ?></span>
</label>
</div>
<button class="btn btn-blue" name="publish"><?php $Language->p('Publish') ?></button>
<button class="btn" name="draft"><?php $Language->p('Draft') ?></button>
2015-05-05 03:00:01 +02:00
</form>
<script>
$(document).ready(function()
{
2015-08-26 05:42:32 +02:00
$("#jsdate").datetimepicker({format:"<?php echo DB_DATE_FORMAT ?>"});
2015-05-05 03:00:01 +02:00
2015-08-26 05:42:32 +02:00
$("#jstitle").keyup(function() {
var slug = $(this).val();
2015-05-05 03:00:01 +02:00
2015-08-26 05:42:32 +02:00
checkSlugPost(slug, "", $("#jsslug"));
});
2015-05-05 03:00:01 +02:00
2015-08-26 05:42:32 +02:00
$("#jsslug").keyup(function() {
var slug = $("#jsslug").val();
2015-05-05 03:00:01 +02:00
2015-08-26 05:42:32 +02:00
checkSlugPost(slug, "", $("#jsslug"));
});
$("#jsadvancedButton").click(function() {
$("#jsadvancedOptions").slideToggle();
return false;
});
2015-05-05 03:00:01 +02:00
});
2015-07-03 22:44:26 +02:00
</script>