Permalink
Browse files

Move layout out from global templtase (we use gs now)

fix icon on form errors
  • Loading branch information...
1 parent e6b430a commit 7cfcccc629176b9f230a70c36e0a0e04b40cbdc2 @romaninsh romaninsh committed Mar 24, 2011
Showing with 7 additions and 19 deletions.
  1. +1 −13 templates/jui/css/agile.css
  2. +4 −4 templates/jui/form.html
  3. +2 −2 templates/jui/form_empty.html
@@ -1,5 +1,5 @@
/* Agile Toolkit // www.agiletoolkit.org */
-/* Updated on 18/03/11 */
+/* Updated on 24/03/11 */
/* ------------ Resetting elements */
@@ -117,18 +117,6 @@ hr {margin:3em 0;padding:0;border:none;height:1px;background:#ccc;}
.atk-button {padding:0;margin:0;background:#eee;border:none;background:none;}
.atk-button::-moz-focus-inner{padding:0;border:none}
-.atk-layout>div {float:left;margin-left:40px;}
-.atk-layout.fluid>div {margin-left:4%;}
-.atk-layout>div:first-child {margin-left:0!important;}
-.atk-layout.c2>div {width:470px;}
-.atk-layout.c3>div {width:300px;}
-.atk-layout.c4>div {width:215px;}
-.atk-layout.fluid.c2>div {width:48%}
-.atk-layout.fluid.c3>div {width:30.6%}
-.atk-layout.fluid.c4>div {width:22%}
-.atk-layout:after {content:".";display:block;height:0;clear:both;visibility:hidden;font-size:0;}
-.atk-layout {.zoom:1;.display:block;}
-
.atk-hint {padding:.5em;}
.atk-hint>div {margin-bottom:.5em;}
.atk-hint>div>.ui-icon {display:inline-block;margin-right:.3em;position:relative;top:.2em}
View
@@ -9,8 +9,8 @@
<dt><label for="<?$field_name?>" <?field_mandatory?>class="mandatory"<?/?>><?$field_caption?></label></dt>
<dd class="form_field"><?$before_field?><?field_input?><input/><?/?><?$after_field?><?$field_hint?></dd>
<?field_error?>
- <dd class="atk-error">
- <div class="ui-state-error ui-corner-all"><span class="ui-icon"></span><?$field_error_str?></div>
+ <dd class="field-error-template atk-form-error">
+ <i class="ui-icon ui-icon-alert"></i><span class="field-error-text"><?$field_error_str?></span>
</dd>
<?/?>
</dl>
@@ -27,8 +27,8 @@
<?/form_body?>
- <dd style="display:none" class="field-error-template atk-form-error field-error-text">
- <i class="ui-icon ui-icon-alert"></i>Sample Error
+ <dd style="display:none" class="field-error-template atk-form-error">
+ <i class="ui-icon ui-icon-alert"></i><span class="field-error-text">Sample Error</span>
</dd>
</fieldset>
<dl class="atk-form-buttons">
@@ -1,6 +1,6 @@
<?form?>
-<div id="<?$form_name?>">
-<form class="<?$form_class?>" name="<?$form_name?>" action="<?$form_action?>" method="POST" <?$enctype?>>
+<div id="<?$form_name?>" class="<?$form_class?>">
+<form name="<?$form_name?>" action="<?$form_action?>" method="POST" <?$enctype?>>
<?$Hint?>

0 comments on commit 7cfcccc

Please sign in to comment.