1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Frontend Improvements

This commit is contained in:
Awilum
2013-12-17 11:01:24 +02:00
parent 2fbb4c30c3
commit 2c3d224e62
6 changed files with 53 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
<h2><?php echo __('Edit Snippet', 'snippets'); ?></h2>
<br />
<br>
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
@@ -18,8 +18,8 @@
<?php echo (Form::label('name', __('Name', 'snippets'))); ?>
<div class="input-append">
<?php echo (Form::input('name', $name, array('class' => (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))); ?><span class="add-on">.snippet.php</span>
<div class="input-group">
<?php echo (Form::input('name', $name, array('class' => (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'form-control error-field' : 'form-control'))); ?><span class="input-group-addon">.snippet.php</span>
</div>
<?php
@@ -27,10 +27,11 @@
if (isset($errors['snippets_exists'])) echo '&nbsp;&nbsp;&nbsp;<span style="color:red">'.$errors['snippets_exists'].'</span>';
?>
<br>
<?php
echo (
Html::br(2).
Form::label('content', __('Snippet content', 'snippets')).
Form::textarea('content', Html::toText($content), array('style' => 'width:100%;height:400px;', 'class' => 'source-editor')).
Html::br(2).
@@ -40,6 +41,6 @@
);
} else {
echo '<div class="message-error">'.__('This snippet does not exist').'</div>';
echo '<div class="message-error">'.__('This snippet does not exist', 'snippets').'</div>';
}
?>