mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 04:37:51 +02:00
Box Plugins: layout fixes.
This commit is contained in:
@@ -10,22 +10,21 @@
|
||||
<a href="javascript:;" style="text-decoration:none; color:#333; border-bottom:1px dashed #333;" data-toggle="modal" onclick="$('#selectPageModal').modal('show').width(270);" ><?php echo __('Select page', 'menu'); ?></a> /
|
||||
<a href="javascript:;" style="text-decoration:none; color:#333; border-bottom:1px dashed #333;" data-toggle="modal" onclick="$('#selectCategoryModal').modal('show').width(270);" ><?php echo __('Select category', 'menu'); ?></a><br /><br />
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
echo Form::label('menu_item_name', __('Item name', 'menu'));
|
||||
echo Form::input('menu_item_name', $menu_item_name, array('class' => (isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'span3 error-field' : 'span3'));
|
||||
echo Form::input('menu_item_name', $menu_item_name, array('class' => (isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'input-xlarge error-field' : 'input-xlarge'));
|
||||
|
||||
if (isset($errors['menu_item_name_empty'])) echo Html::nbsp(4).'<span style="color:red;">'.$errors['menu_item_name_empty'].'</span>';
|
||||
|
||||
echo (
|
||||
Form::label('menu_item_link', __('Item link', 'menu')).
|
||||
Form::input('menu_item_link', $menu_item_link, array('class' => 'span3'))
|
||||
Form::input('menu_item_link', $menu_item_link, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
Form::label('menu_item_category', __('Item category', 'menu')).
|
||||
Form::input('menu_item_category', $menu_item_category, array('class' => 'span3'))
|
||||
Form::input('menu_item_category', $menu_item_category, array('class' => 'input-xlarge'))
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -33,13 +32,13 @@
|
||||
echo (
|
||||
Html::br().
|
||||
Form::label('menu_item_target', __('Item target', 'menu')).
|
||||
Form::select('menu_item_target', $menu_item_target_array, $menu_item_target, array('class' => 'span3'))
|
||||
Form::select('menu_item_target', $menu_item_target_array, $menu_item_target, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
Html::br().
|
||||
Form::label('menu_item_order', __('Item order', 'menu')).
|
||||
Form::select('menu_item_order', $menu_item_order_array, $menu_item_order, array('class' => 'span3'))
|
||||
Form::select('menu_item_order', $menu_item_order_array, $menu_item_order, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
|
@@ -10,22 +10,21 @@
|
||||
<a href="javascript:;" style="text-decoration:none; color:#333; border-bottom:1px dashed #333;" data-toggle="modal" onclick="$('#selectPageModal').modal('show').width(270);" ><?php echo __('Select page', 'menu'); ?></a> /
|
||||
<a href="javascript:;" style="text-decoration:none; color:#333; border-bottom:1px dashed #333;" data-toggle="modal" onclick="$('#selectCategoryModal').modal('show').width(270);" ><?php echo __('Select category', 'menu'); ?></a><br /><br />
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
echo Form::label('menu_item_name', __('Item name', 'menu'));
|
||||
echo Form::input('menu_item_name', $menu_item_name, array('class' => (isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'span3 error-field' : 'span3'));
|
||||
echo Form::input('menu_item_name', $menu_item_name, array('class' => (isset($errors['menu_item_name_empty']) || isset($errors['menu_item_name_empty'])) ? 'input-xlarge error-field' : 'input-xlarge'));
|
||||
|
||||
if (isset($errors['menu_item_name_empty'])) echo Html::nbsp(4).'<span style="color:red;">'.$errors['menu_item_name_empty'].'</span>';
|
||||
|
||||
echo (
|
||||
Form::label('menu_item_link', __('Item link', 'menu')).
|
||||
Form::input('menu_item_link', $menu_item_link, array('class' => 'span3'))
|
||||
Form::input('menu_item_link', $menu_item_link, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
Form::label('menu_item_category', __('Item category', 'menu')).
|
||||
Form::input('menu_item_category', $menu_item_category, array('class' => 'span3'))
|
||||
Form::input('menu_item_category', $menu_item_category, array('class' => 'input-xlarge'))
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -33,13 +32,13 @@
|
||||
echo (
|
||||
Html::br().
|
||||
Form::label('menu_item_target', __('Item target', 'menu')).
|
||||
Form::select('menu_item_target', $menu_item_target_array, $menu_item_target, array('class' => 'span3'))
|
||||
Form::select('menu_item_target', $menu_item_target_array, $menu_item_target, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
Html::br().
|
||||
Form::label('menu_item_order', __('Item order', 'menu')).
|
||||
Form::select('menu_item_order', $menu_item_order_array, $menu_item_order, array('class' => 'span3'))
|
||||
Form::select('menu_item_order', $menu_item_order_array, $menu_item_order, array('class' => 'input-xlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
|
@@ -37,9 +37,9 @@
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?php echo __('Name', 'menu'); ?></td>
|
||||
<td class="span2"><?php echo __('Order', 'menu'); ?></td>
|
||||
<td width="30%"><?php echo __('Actions', 'menu'); ?></td>
|
||||
<th><?php echo __('Name', 'menu'); ?></th>
|
||||
<th class="span2"><?php echo __('Order', 'menu'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -64,11 +64,13 @@
|
||||
<?php echo $item['order']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo Html::anchor(__('Edit', 'menu'), 'index.php?id=menu&action=edit&item_id='.$item['id'], array('class' => 'btn btn-actions')); ?>
|
||||
<div class="pull-right">
|
||||
<?php echo Html::anchor(__('Edit', 'menu'), 'index.php?id=menu&action=edit&item_id='.$item['id'], array('class' => 'btn btn-small')); ?>
|
||||
<?php echo Html::anchor(__('Delete', 'menu'),
|
||||
'index.php?id=menu&delete_item='.$item['id'],
|
||||
array('class' => 'btn btn-actions', 'onclick' => "return confirmDelete('".__('Delete item :name', 'menu', array(':name' => $item['name']))."')"));
|
||||
array('class' => 'btn btn-small', 'onclick' => "return confirmDelete('".__('Delete item :name', 'menu', array(':name' => $item['name']))."')"));
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
Reference in New Issue
Block a user