mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
Pages Plugin: layout fixes.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<h2><?php echo __('New page', 'pages'); ?></h2>
|
||||
<h2><?php echo __('New Page', 'pages'); ?></h2>
|
||||
<br />
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
@@ -24,14 +21,14 @@
|
||||
<?php
|
||||
echo (
|
||||
Form::label('page_title', __('Title', 'pages')).
|
||||
Form::input('page_title', $post_title, array('class' => (isset($errors['pages_empty_title'])) ? 'span6 error-field' : 'span6'))
|
||||
Form::input('page_title', $post_title, array('class' => (isset($errors['pages_empty_title'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))
|
||||
);
|
||||
if (isset($errors['pages_empty_title'])) echo Html::nbsp(3).'<span style="color:red">'.$errors['pages_empty_title'].'</span>';
|
||||
|
||||
echo (
|
||||
Html::br(2).
|
||||
Form::label('page_name', __('Name (slug)', 'pages')).
|
||||
Form::input('page_name', $post_name, array('class' => (isset($errors['pages_empty_name'])) ? 'span6 error-field' : 'span6'))
|
||||
Form::input('page_name', $post_name, array('class' => (isset($errors['pages_empty_name'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))
|
||||
);
|
||||
|
||||
if (isset($errors['pages_exists'])) echo Html::nbsp(3).'<span style="color:red">'.$errors['pages_exists'].'</span>';
|
||||
@@ -43,10 +40,10 @@
|
||||
<?php
|
||||
echo (
|
||||
Form::label('page_keywords', __('Keywords', 'pages')).
|
||||
Form::input('page_keywords', $post_keywords, array('class' => 'span8')).
|
||||
Form::input('page_keywords', $post_keywords, array('class' => 'input-xxlarge')).
|
||||
Html::br(2).
|
||||
Form::label('page_description', __('Description', 'pages')).
|
||||
Form::textarea('page_description', $post_description, array('class' => 'span8'))
|
||||
Form::textarea('page_description', $post_description, array('class' => 'input-xxlarge'))
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -107,7 +104,7 @@
|
||||
<div class="span6">
|
||||
<?php
|
||||
echo (
|
||||
Form::submit('add_page_and_exit', __('Save and exit', 'pages'), array('class' => 'btn')).Html::nbsp(2).
|
||||
Form::submit('add_page_and_exit', __('Save and Exit', 'pages'), array('class' => 'btn')).Html::nbsp(2).
|
||||
Form::submit('add_page', __('Save', 'pages'), array('class' => 'btn'))
|
||||
);
|
||||
?>
|
||||
@@ -117,5 +114,3 @@
|
||||
<?php echo Form::close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,7 +1,4 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<h2><?php if (Request::get('name') == 'error404') { echo __('Edit 404 page', 'pages'); } else { echo __('Edit page', 'pages'); } ?></h2>
|
||||
<h2><?php if (Request::get('name') == 'error404') { echo __('Edit 404 Page', 'pages'); } else { echo __('Edit Page', 'pages'); } ?></h2>
|
||||
<br />
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
@@ -27,7 +24,7 @@
|
||||
<?php
|
||||
echo (
|
||||
Form::label('page_title', __('Title', 'pages')).
|
||||
Form::input('page_title', $title_to_edit, array('class' => (isset($errors['pages_empty_title'])) ? 'span6 error-field' : 'span6'))
|
||||
Form::input('page_title', $title_to_edit, array('class' => (isset($errors['pages_empty_title'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))
|
||||
);
|
||||
if (isset($errors['pages_empty_title'])) echo Html::nbsp(3).'<span style="color:red">'.$errors['pages_empty_title'].'</span>';
|
||||
|
||||
@@ -42,7 +39,7 @@
|
||||
echo Form::hidden('page_name', $slug_to_edit);
|
||||
} else {
|
||||
echo (
|
||||
Form::input('page_name', $slug_to_edit, array('class' => (isset($errors['pages_empty_name'])) ? 'span6 error-field' : 'span6'))
|
||||
Form::input('page_name', $slug_to_edit, array('class' => (isset($errors['pages_empty_name'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))
|
||||
);
|
||||
}
|
||||
|
||||
@@ -56,10 +53,10 @@
|
||||
<?php
|
||||
echo (
|
||||
Form::label('page_keywords', __('Keywords', 'pages')).
|
||||
Form::input('page_keywords', $keywords_to_edit, array('class' => 'span8')).
|
||||
Form::input('page_keywords', $keywords_to_edit, array('class' => 'input-xxlarge')).
|
||||
Html::br(2).
|
||||
Form::label('page_description', __('Description', 'pages')).
|
||||
Form::textarea('page_description', $description_to_edit, array('class' => 'span8'))
|
||||
Form::textarea('page_description', $description_to_edit, array('class' => 'input-xxlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
@@ -141,7 +138,7 @@
|
||||
<div class="span6">
|
||||
<?php
|
||||
echo (
|
||||
Form::submit('edit_page_and_exit', __('Save and exit', 'pages'), array('class' => 'btn')).Html::nbsp(2).
|
||||
Form::submit('edit_page_and_exit', __('Save and Exit', 'pages'), array('class' => 'btn')).Html::nbsp(2).
|
||||
Form::submit('edit_page', __('Save', 'pages'), array('class' => 'btn'))
|
||||
);
|
||||
?>
|
||||
@@ -151,5 +148,3 @@
|
||||
<?php echo Form::close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,6 +1,3 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<h2><?php echo __('Pages', 'pages'); ?></h2>
|
||||
<br />
|
||||
|
||||
@@ -8,8 +5,8 @@
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Html::anchor(__('Create new page', 'pages'), 'index.php?id=pages&action=add_page', array('title' => __('Create new page', 'pages'), 'class' => 'btn default btn-small')). Html::nbsp(3).
|
||||
Html::anchor(__('Edit 404 page', 'pages'), 'index.php?id=pages&action=edit_page&name=error404', array('title' => __('Create new page', 'pages'), 'class' => 'btn default btn-small'))
|
||||
Html::anchor(__('Create New Page', 'pages'), 'index.php?id=pages&action=add_page', array('title' => __('Create new page', 'pages'), 'class' => 'btn btn-small')). Html::nbsp(3).
|
||||
Html::anchor(__('Edit 404 Page', 'pages'), 'index.php?id=pages&action=edit_page&name=error404', array('title' => __('Create new page', 'pages'), 'class' => 'btn btn-small'))
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -20,11 +17,11 @@
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td><?php echo __('Name', 'pages'); ?></td>
|
||||
<td><?php echo __('Author', 'pages'); ?></td>
|
||||
<td><?php echo __('Status', 'pages'); ?></td>
|
||||
<td><?php echo __('Access', 'pages'); ?></td>
|
||||
<td><?php echo __('Date', 'pages'); ?></td>
|
||||
<td width="40%"><?php echo __('Actions', 'pages'); ?></td>
|
||||
<td class="hidden-phone"><?php echo __('Author', 'pages'); ?></td>
|
||||
<td class="hidden-phone"><?php echo __('Status', 'pages'); ?></td>
|
||||
<td class="hidden-phone"><?php echo __('Access', 'pages'); ?></td>
|
||||
<td class="hidden-phone"><?php echo __('Date', 'pages'); ?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -58,23 +55,23 @@
|
||||
echo $dash.Html::anchor(Html::toText($page['title']), $site_url.$parent.$page['slug'], array('target' => '_blank', 'rel' => 'children_'.$_parent));
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $page['author']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $page['status']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $page['access']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo Date::format($page['date'], "j.n.Y"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-toolbar">
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<?php echo Html::anchor(__('Edit', 'pages'), 'index.php?id=pages&action=edit_page&name='.$page['slug'], array('class' => 'btn btn-actions')); ?>
|
||||
<a class="btn dropdown-toggle btn-actions" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
|
||||
<?php echo Html::anchor(__('Edit', 'pages'), 'index.php?id=pages&action=edit_page&name='.$page['slug'], array('class' => 'btn btn-small')); ?>
|
||||
<a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($page['parent'] == '') { ?>
|
||||
<li><a href="index.php?id=pages&action=add_page&parent_page=<?php echo $page['slug']; ?>" title="<?php echo __('Create new page', 'pages'); ?>"><?php echo __('Add', 'pages'); ?></a></li>
|
||||
@@ -83,7 +80,7 @@
|
||||
</ul>
|
||||
<?php echo Html::anchor(__('Delete', 'pages'),
|
||||
'index.php?id=pages&action=delete_page&name='.$page['slug'].'&token='.Security::token(),
|
||||
array('class' => 'btn btn-actions btn-actions-default', 'onclick' => "return confirmDelete('".__("Delete page: :page", 'pages', array(':page' => Html::toText($page['title'])))."')"));
|
||||
array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__("Delete page: :page", 'pages', array(':page' => Html::toText($page['title'])))."')"));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -101,6 +98,3 @@
|
||||
<form>
|
||||
<input type="hidden" name="url" value="<?php echo Option::get('siteurl'); ?>admin/index.php?id=pages">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user