Description:
+user template, +some style
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@38 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r14:eeff05df9da1 - - 2 files changed: 60 inserted, 1 deleted
@@ -0,0 +1,32 | |||||
|
|
1 | + | ||
|
|
2 | + %h1 Your account settings | ||
|
|
3 | + | ||
|
|
4 | + %p | ||
|
|
5 | + You can edit your full name and alias. Just click on the text and edit it. | ||
|
|
6 | + | ||
|
|
7 | + | ||
|
|
8 | + %table.uinfo | ||
|
|
9 | + %tr | ||
|
|
10 | + %th.uinfo Login | ||
|
|
11 | + %td.uinfo= @user.login | ||
|
|
12 | + %tr | ||
|
|
13 | + %th.uinfo Full name | ||
|
|
14 | + %td.uinfo= in_place_editor_field :user, 'full_name', {}, :rows => 1 | ||
|
|
15 | + %tr | ||
|
|
16 | + %th.uinfo Alias | ||
|
|
17 | + %td.uinfo= in_place_editor_field :user, 'alias', {}, :rows => 1 | ||
|
|
18 | + %tr | ||
|
|
19 | + %th.uinfo Password | ||
|
|
20 | + %td.uinfo | ||
|
|
21 | + - form_tag :action => 'chg_passwd', :method => 'post' do | ||
|
|
22 | + %table | ||
|
|
23 | + %tr | ||
|
|
24 | + %td= password_field_tag 'passwd' | ||
|
|
25 | + %td (new) | ||
|
|
26 | + %tr | ||
|
|
27 | + %td= password_field_tag 'passwd_verify' | ||
|
|
28 | + %td (verify) | ||
|
|
29 | + %tr | ||
|
|
30 | + %td{:colspan => "2"} | ||
|
|
31 | + = submit_tag 'change password' | ||
|
|
32 | + |
@@ -1,5 +1,11 | |||||
|
|
1 | + p { | ||
|
|
2 | + font-size: 12px; | ||
|
|
3 | + } | ||
|
1 |
|
4 | ||
|
2 | - div.problist-each { margin-top: 2px; margin-bottom: 2px} |
|
5 | + div.problist-each { |
|
|
6 | + margin-top: 2px; | ||
|
|
7 | + margin-bottom: 2px | ||
|
|
8 | + } | ||
|
3 |
|
9 | ||
|
4 | div.usermenu { |
|
10 | div.usermenu { |
|
5 | border-top: thin solid grey; |
|
11 | border-top: thin solid grey; |
@@ -32,3 +38,24 | |||||
|
32 | background-color: #777777; |
|
38 | background-color: #777777; |
|
33 | } |
|
39 | } |
|
34 |
|
40 | ||
|
|
41 | + | ||
|
|
42 | + table.uinfo { | ||
|
|
43 | + border-collapse: collapse; | ||
|
|
44 | + border: 1px solid black; | ||
|
|
45 | + font-size: 13px; | ||
|
|
46 | + } | ||
|
|
47 | + | ||
|
|
48 | + | ||
|
|
49 | + td.uinfo { | ||
|
|
50 | + vertical-align: top; | ||
|
|
51 | + border: 1px solid black; | ||
|
|
52 | + padding: 5px; | ||
|
|
53 | + } | ||
|
|
54 | + | ||
|
|
55 | + th.uinfo { | ||
|
|
56 | + background: lightgreen; | ||
|
|
57 | + vertical-align: top; | ||
|
|
58 | + text-align: right; | ||
|
|
59 | + border: 1px solid black; | ||
|
|
60 | + padding: 5px; | ||
|
|
61 | + } |
You need to be logged in to leave comments.
Login now