You are here: Home > Latest news from Darcs > Stylesheet cleaning

Revision 20080429215127-9043f-2d0255...

Stylesheet cleaning

app/views/account/_authorization.rhtml
public/stylesheets/motiro.css

Changes to _authorization.rhtml

9
    <table>
    <table>
9
10
      <tbody>
      <tbody>
10
11
        <tr>
        <tr>
11
12
          <td class="authorization_cell">
          <td>
12
13
            <%= content_tag :label, 'User'.t, :for=> 'user_login'%><br />
            <%= content_tag :label, 'User'.t, :for=> 'user_login'%><br />
13
14
            <%= text_field 'user', 'login', :size => 12,
            <%= text_field 'user', 'login', :size => 12,
14
15
                                            :value => flash[:desired_login] %>
                                            :value => flash[:desired_login] %>
15
16
          </td>
          </td>
16
17
          <td class="authorization_cell">
          <td>
17
18
            <%= content_tag :label, 'Password'.t, :for=> 'user_password'%><br />
            <%= content_tag :label, 'Password'.t, :for=> 'user_password'%><br />
18
19
            <%= password_field 'user', 'password', :size => 12 %>
            <%= password_field 'user', 'password', :size => 12 %>
19
20
          </td>
          </td>
20
21
          <td id="password_confirm" class="authorization_cell" style="display: none;">
          <td id="password_confirm" style="display: none;">
21
22
            <%= content_tag :label, 'Confirmation'.t, :for=> 'user_password_confirmation'%><br />
            <%= content_tag :label, 'Confirmation'.t, :for=> 'user_password_confirmation'%><br />
22
23
            <%= password_field 'user', 'password_confirmation',
            <%= password_field 'user', 'password_confirmation',
23
24
                               :size => 12,
                               :size => 12,
24
25
                               :disabled => true %>
                               :disabled => true %>
25
26
          </td>
          </td>
26
27
          <td class="authorization_cell">
          <td>
27
28
            <input type="checkbox" id="chk_new_user"
            <input type="checkbox" id="chk_new_user"
28
29
                   name="chk_new_user" class="checkbox"
                   name="chk_new_user" class="checkbox"
29
30
                   onClick="tooglePasswordConfirmation(document.forms[0].chk_new_user.checked)" />
                   onClick="tooglePasswordConfirmation(document.forms[0].chk_new_user.checked)" />
30

Changes to motiro.css

28
    position: relative;
    position: relative;
28
29
}
}
29
30
30
31
div.authorization_cell {
 
32
    width: 9.1em;
 
33
    float: left;
 
34
}
 
35
 
36
#rightside {
#rightside {
31
37
    float: right;
    float: right;
32
38
}
}
33