Changeset 3404 for trunk/system/views

Show
Ignore:
Timestamp:
08/30/2008 09:59:49 PM (3 months ago)
Author:
Shadowhand
Message:

Kohana views:

  • Updated kohana/template inline style
  • Added kohana/form_errors view
  • Updated kohana/form to use form_errors
Location:
trunk/system/views/kohana
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana/form.php

    r3342 r3404  
    11<?php echo form::open($action, $attributes) ?> 
    22 
    3 <?php if ( ! empty($errors)): ?> 
    4 <ul class="errors"> 
    5 <?php foreach ($errors as $error): ?> 
    6 <li><?php echo $error ?></li> 
    7 <?php endforeach ?> 
    8 </ul> 
    9 <?php endif ?> 
     3<?php include Kohana::find_file('views', 'kohana/form_errors') ?> 
    104 
    115<fieldset> 
  • trunk/system/views/kohana/template.php

    r3377 r3404  
    1212        h1 { font-size: 3em; font-weight: normal; text-transform: uppercase; color: #fff; } 
    1313        a { color: inherit; } 
     14        p { padding: 1em 0; margin: 0; } 
    1415        code { font-size: 1.3em; } 
    15         ul { list-style: none; padding: 2em 0; } 
     16        ul { list-style: none; padding: 2em 0; margin: 0; } 
    1617                ul li { display: inline; padding-right: 1em; text-transform: uppercase; } 
    1718                        ul li a { padding: 0.5em 1em; background: #69ad0f; border: 1px solid #569f09; color: #fff; text-decoration: none; } 
    1819                        ul li a:hover { background: #569f09; } 
     20        dl { text-align: left; background: #eee; padding: 0 1em 1em; margin: 0 0 1em; } 
     21                dt { font-weight: bold; font-size: 1em; padding-top: 1em; } 
    1922        form { margin: 0 0 1em; background: #eee; text-align: left; } 
     23                form textarea, 
     24                form input, 
     25                form select { width: 100%; } 
    2026                form fieldset { display: block; border: 0; padding: 1em; } 
    2127                form fieldset.submit { text-align: right; } 
    2228                        form fieldset.submit a { float: left; } 
     29                form fieldset p { padding: 0 0 1em; } 
    2330                form label { display: block; margin: 0 0 0.6em; } 
    2431                        form label span { display: block; font-size: 80%; padding: 0.1em 0; } 
    25                 form ul.errors { list-style: outside square; padding: 1em 2em; } 
    26                 form ul.errors li { display: list-item; text-transform: none; } 
     32                form ul.errors { list-style: outside square; padding: 1em; } 
     33                form ul.errors li { display: list-item; margin-left: 1em; text-transform: none; color: #800; } 
     34        .intro { padding: 0 1em 1em; border-bottom: dotted 1px #569f09; font-size: 1.2em; } 
    2735        .box { padding: 2em; background: #98cc2b; border: 1px solid #569f09; } 
    2836        .copyright { font-size: 0.9em; text-transform: uppercase; color: #557d10; }