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:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r14:eeff05df9da1 - - 2 files changed: 76 inserted, 17 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,34 +1,61
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;
6 - border-bottom: thin solid grey;
12 + border-bottom: thin solid grey;
7 - text-align: right
13 + text-align: right
8 }
14 }
9
15
10 div.probname {
16 div.probname {
11 - background-color: #66aaaa;
17 + background-color: #66aaaa;
12 - font-weight: bold;
18 + font-weight: bold;
13 - color: white;
19 + color: white;
14 - padding: 2px;
20 + padding: 2px;
15 }
21 }
16
22
17 div.subinfo {
23 div.subinfo {
18 - margin-left: 20px;
24 + margin-left: 20px;
19 - margin-top: 2px;
25 + margin-top: 2px;
20 - border-bottom: thin solid grey;
26 + border-bottom: thin solid grey;
21 - border-left: thin solid grey
27 + border-left: thin solid grey
22 }
28 }
23
29
24 div.compilermsgbody {
30 div.compilermsgbody {
25 - font-family: monospace;
31 + font-family: monospace;
26 }
32 }
27
33
28 div.submitbox {
34 div.submitbox {
29 - border: thin solid black;
35 + border: thin solid black;
30 - padding: 5px;
36 + padding: 5px;
31 - color: white;
37 + color: white;
32 - background-color: #777777;
38 + background-color: #777777;
39 + }
40 +
41 +
42 + table.uinfo {
43 + border-collapse: collapse;
44 + border: 1px solid black;
45 + font-size: 13px;
33 }
46 }
34
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