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

Add .error-field class on all areas #10

This commit is contained in:
Awilum
2012-10-02 22:29:19 +03:00
parent ce3771c4d2
commit 10d82e98cf
11 changed files with 21 additions and 21 deletions

View File

@@ -14,7 +14,7 @@
<?php echo (Form::label('name', __('Name', 'snippets'))); ?>
<div class="input-append">
<?php echo (Form::input('name', $name, array('class' => 'input-xlarge'))); ?><span class="add-on">.snippet.php</span>
<?php echo (Form::input('name', $name, array('class' => (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xlarge error-field' : 'input-xlarge'))); ?><span class="add-on">.snippet.php</span>
</div>
<?php

View File

@@ -20,7 +20,7 @@
<?php echo (Form::label('name', __('Name', 'snippets'))); ?>
<div class="input-append">
<?php echo (Form::input('name', $name, array('class' => 'input-xlarge'))); ?><span class="add-on">.snippet.php</span>
<?php echo (Form::input('name', $name, array('class' => (isset($errors['snippets_empty_name']) || isset($errors['snippets_exists'])) ? 'input-xlarge error-field' : 'input-xlarge'))); ?><span class="add-on">.snippet.php</span>
</div>
<?php