1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-12 16:14:28 +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

@@ -26,7 +26,7 @@
<?php echo (Form::label('name', __('Name', 'themes'))); ?>
<div class="input-append">
<?php echo (Form::input('name', $name, array('class' => 'input-xlarge'))); ?>
<?php echo (Form::input('name', $name, array('class' => (isset($errors['file_empty_name']) || isset($errors['file_exists'])) ? 'input-xlarge error-field' : 'input-xlarge'))); ?>
<?php if ($action == 'chunk') { ?><span class="add-on">.chunk.php</span><?php } ?>
<?php if ($action == 'template') { ?><span class="add-on">.template.php</span><?php } ?>
<?php if ($action == 'styles') { ?><span class="add-on">.css</span><?php } ?>