From a6baf5aaaafaab9f30aec0e085af4e3b4af0f324 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 15 Dec 2012 00:36:24 +0200 Subject: [PATCH] Snippets Plugin: layout fixes. --- plugins/box/snippets/views/backend/add.view.php | 6 +++--- plugins/box/snippets/views/backend/edit.view.php | 6 +++--- plugins/box/snippets/views/backend/index.view.php | 15 ++++++++++----- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/plugins/box/snippets/views/backend/add.view.php b/plugins/box/snippets/views/backend/add.view.php index 3f4fb31..0e7917a 100644 --- a/plugins/box/snippets/views/backend/add.view.php +++ b/plugins/box/snippets/views/backend/add.view.php @@ -1,4 +1,4 @@ -

+


@@ -14,7 +14,7 @@
- (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xlarge error-field' : 'input-xlarge'))); ?>.snippet.php + (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))); ?>.snippet.php
'width:100%;height:400px;', 'class'=>'source-editor')). Html::br(2). - Form::submit('add_snippets_and_exit', __('Save and exit', 'snippets'), array('class' => 'btn')).Html::nbsp(2). + Form::submit('add_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn')).Html::nbsp(2). Form::submit('add_snippets', __('Save', 'snippets'), array('class' => 'btn')). Form::close() ); diff --git a/plugins/box/snippets/views/backend/edit.view.php b/plugins/box/snippets/views/backend/edit.view.php index 922aaa2..ceb53b3 100644 --- a/plugins/box/snippets/views/backend/edit.view.php +++ b/plugins/box/snippets/views/backend/edit.view.php @@ -1,4 +1,4 @@ -

+


@@ -20,7 +20,7 @@
- (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xlarge error-field' : 'input-xlarge'))); ?>.snippet.php + (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xxlarge error-field' : 'input-xxlarge'))); ?>.snippet.php
'width:100%;height:400px;', 'class' => 'source-editor')). Html::br(2). - Form::submit('edit_snippets_and_exit', __('Save and exit', 'snippets'), array('class' => 'btn default')).Html::nbsp(2). + Form::submit('edit_snippets_and_exit', __('Save and Exit', 'snippets'), array('class' => 'btn default')).Html::nbsp(2). Form::submit('edit_snippets', __('Save', 'snippets'), array('class' => 'btn default')). Html::nbsp(). Form::close() ); diff --git a/plugins/box/snippets/views/backend/index.view.php b/plugins/box/snippets/views/backend/index.view.php index 41d9422..979ff37 100755 --- a/plugins/box/snippets/views/backend/index.view.php +++ b/plugins/box/snippets/views/backend/index.view.php @@ -5,7 +5,7 @@ __('Create new snippet', 'snippets'), 'class' => 'btn default btn-small')). Html::nbsp(3) + Html::anchor(__('Create New Snippet', 'snippets'), 'index.php?id=snippets&action=add_snippet', array('title' => __('Create New Snippet', 'snippets'), 'class' => 'btn btn-small')). Html::nbsp(3) ); ?> @@ -14,26 +14,31 @@ - + + + +
+
- 'btn btn-actions')); ?> - + 'btn btn-actions btn-small')); ?> + 'btn btn-actions', 'onclick' => "return confirmDelete('".__('Delete snippet: :snippet', 'snippets', array(':snippet' => basename($snippet, '.snippet.php')))."')")); + array('class' => 'btn btn-actions btn-small btn-actions-default', 'onclick' => "return confirmDelete('".__('Delete snippet: :snippet', 'snippets', array(':snippet' => basename($snippet, '.snippet.php')))."')")); ?>
+