OSDN Git Service

afterをタグで括る
authorCake <cake_67@users.sourceforge.jp>
Mon, 11 Jan 2010 14:46:00 +0000 (23:46 +0900)
committerCake <cake_67@users.sourceforge.jp>
Mon, 11 Jan 2010 14:46:00 +0000 (23:46 +0900)
app/views/users/add.ctp
app/views/users/admin_add.ctp
app/views/users/admin_change_password.ctp
app/views/users/change_password.ctp
app/webroot/css/base.css

index 5a85871..042aadf 100644 (file)
                echo $form->input('username', array(
                                'label' => __('UserId', true),
                                'maxlength' => $idLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('password1', array(
+                               'type' => 'password',
                                'label' => __('Password', true),
                                'maxlength' => $passwordLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
-                               'type' => 'password',
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('password2', array(
+                               'type' => 'password',
                                'label' => __('Password [confirm]', true),
                                'maxlength' => $passwordLength['max'],
-                               'type' => 'password',
                        )
                );
        ?>
index 579733c..443c680 100644 (file)
                echo $form->input('username', array(
                                'label' => __('UserId', true),
                                'maxlength' => $idLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('group_id', array(
                        )
                );
                echo $form->input('password1', array(
+                               'type' => 'password',
                                'label' => __('Password', true),
                                'maxlength' => $passwordLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
-                               'type' => 'password',
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('password2', array(
+                               'type' => 'password',
                                'label' => __('Password [confirm]', true),
                                'maxlength' => $passwordLength['max'],
-                               'type' => 'password',
                        )
                );
                echo $token->create();
index 8e2aab1..4103a1e 100644 (file)
@@ -4,16 +4,20 @@
                <legend><?php __('Change Password');?></legend>
        <?php
                echo $form->input('password1', array(
+                               'type' => 'password',
                                'label' => __('New Password', true),
                                'maxlength' => $passwordLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
-                               'type' => 'password',
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('password2', array(
+                               'type' => 'password',
                                'label' => __('New Password [confirm]', true),
                                'maxlength' => $passwordLength['max'],
-                               'type' => 'password',
                        )
                );
                echo $token->create();
index 87e101f..d7e202c 100644 (file)
@@ -4,22 +4,26 @@
                <legend><?php __('Change Password');?></legend>
        <?php
                echo $form->input('password', array(
+                               'type' => 'password',
                                'label' => __('Old Password', true),
                                'maxlength' => $passwordLength['max'],
-                               'type' => 'password',
                        )
                );
                echo $form->input('password1', array(
+                               'type' => 'password',
                                'label' => __('New Password', true),
                                'maxlength' => $passwordLength['max'],
-                               'after' => sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max']),
-                               'type' => 'password',
+                               'after' => $html->tag(
+                                       'div',
+                                       sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
+                                       array('class' => 'attention')
+                               )
                        )
                );
                echo $form->input('password2', array(
+                               'type' => 'password',
                                'label' => __('New Password [confirm]', true),
                                'maxlength' => $passwordLength['max'],
-                               'type' => 'password',
                        )
                );
                echo $token->create();
index 03408b8..546ce4c 100644 (file)
@@ -293,8 +293,9 @@ dt {
 }
 dd {
        margin-left: 10em;
-       margin-top: -2em;
+       margin-top: -1.8em;
        vertical-align: top;
+       line-height: 1.4em;
 }
 
 /* Forms */
@@ -347,6 +348,12 @@ form div.submit {
        margin-top: 10px;
        margin-left: 140px;
 }
+form div.attention {
+       font-weight: bold;
+       margin-bottom: 0;
+       padding: 0.5em 0.5em 0;
+}
+
 label {
        display: block;
        font-size: 110%;