1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 21:26:58 +02:00

Pages - Meta Title #165

This commit is contained in:
Awilum
2014-03-15 11:49:48 +04:00
parent eeffcca348
commit 926b99b2fa
3 changed files with 30 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
<div class="form-group">
<?php
echo (
Form::label('page_title', __('Title', 'pages')).
Form::label('page_title', __('Name', 'pages')).
Form::input('page_title', $post_title, array('class' => (isset($errors['pages_empty_title'])) ? 'form-control error-field' : 'form-control'))
);
if (isset($errors['pages_empty_title'])) echo Html::nbsp(3).'<span style="color:red">'.$errors['pages_empty_title'].'</span>';
@@ -28,7 +28,7 @@
<?php
echo (
Form::label('page_name', __('Name (slug)', 'pages')).
Form::label('page_name', __('Slug (url)', 'pages')).
Form::input('page_name', $post_name, array('class' => (isset($errors['pages_empty_name'])) ? 'form-control error-field' : 'form-control'))
);
@@ -39,6 +39,14 @@
</div>
<div class="tab-pane <?php if (Notification::get('metadata')) { ?>active<?php } ?>" id="metadata">
<div class="form-group">
<?php
echo (
Form::label('page_meta_title', __('Title', 'pages')).
Form::input('page_meta_title', $post_meta_title, array('class' => 'form-control'))
);
?>
</div>
<div class="form-group">
<?php
echo (

View File

@@ -21,7 +21,7 @@
<div class="form-group">
<?php
echo (
Form::label('page_title', __('Title', 'pages')).
Form::label('page_title', __('Name', 'pages')).
Form::input('page_title', $title_to_edit, array('class' => (isset($errors['pages_empty_title'])) ? 'form-control error-field' : 'form-control'))
);
if (isset($errors['pages_empty_title'])) echo '<span class="error-message">'.$errors['pages_empty_title'].'</span>';
@@ -32,7 +32,7 @@
if (Request::get('name') !== 'error404') {
echo (
Form::label('page_name', __('Name (slug)', 'pages'))
Form::label('page_name', __('Slug (url)', 'pages'))
);
}
@@ -50,6 +50,14 @@
</div>
</div>
<div class="tab-pane <?php if (Notification::get('metadata')) { ?>active<?php } ?>" id="metadata">
<div class="form-group">
<?php
echo (
Form::label('page_meta_title', __('Title', 'pages')).
Form::input('page_meta_title', $meta_title_to_edit, array('class' => 'form-control'))
);
?>
</div>
<div class="form-group">
<?php
echo (