root/app/views/account/manage.html.erb @ 1

Revision 1, 2.2 kB (checked in by falcon, 17 years ago)

Version one -> initial work from the laptop.

Line 
1<%= stylesheet_link_tag 'style' %>
2<%= stylesheet_link_tag 'scaffold' %>
3
4<%= javascript_include_tag :defaults %>
5
6<div style="background-color: white; padding: 15px; margin: 10px; padding-bottom: 50px;">
7        <h2 style="color: white; background-color: #333; padding: 2px; border: 2px solid #dedede;">Users:</h2>
8        <span style="width: 150px; float: left; margin-left: 120px;">
9                <b>Login</b>
10        </span>
11        <span style="width: 150px; float: left;">
12                <b>Role</b>
13        </span>
14        <span style="width: 200px; float: left;">
15                <b>E-mail</b>
16        </span>
17        <span style="width: 150px; float: left;">
18                <b>Password</b>
19        </span>
20        <div style="clear: both; clear: left; "></div>
21               
22        <% for user in @users -%>
23                <div id="temp" value="<%=user.id%>" style="background-color: #efefef; border: 1px solid black; padding: 2px; margin: 2px; font-size: 14px;">
24                        <span style="width: 55px; float: left; padding: 2px; font-size: 12px; padding-top: 4px;">
25                                <%= link_to( image_tag("icon-delete.gif") + 'Delete', { :action => 'destroy', :id => user.id },
26                                { :confirm => "Are you sure?", :method => :delete }) %>         
27                        </span>
28                        <span style="width: 42px; float: left; padding: 2px; font-size: 12px; padding-top: 4px;">
29                                <%= link_to_remote 'Modify',
30                                                                   :update => 'change',
31                                                                   :url => { :action => :modify, :id => user.id } %>
32                        </span>
33                        <span style="width: 150px; float: left; padding: 2px;">
34                                <%= user.login %>
35                        </span>
36                        <span style="width: 150px; float: left; padding: 2px;">
37                                <%= user.roles %>
38                        </span>
39                        <span style="width: 200px; float: left; padding: 2px;">
40                                <%= user.email %>
41                        </span>
42                        <span style="width: 150px; float: left; padding: 2px;">
43                                <%= link_to_remote 'Reset/Change',
44                                                                        :update => 'change',
45                                                                        :url => { :action => :reset_password, :id => user.id } %>
46                        </span>
47                </div>
48                <div style="clear: both; clear: left; "></div>
49        <% end -%>
50
51        <div id="change" sytle=" padding-top: 50px; background-color: #efefef; border: 1px solid black;">       
52        </div>
53</div>
54
55<div style="background-color: white; padding: 5px; margin: 10px; font-weight: bold;">
56        <%= link_to 'Back to Main', :controller => 'main', :action => 'main' %>
57        <%= link_to 'Add an Account', :controller => 'account', :action => 'signup' %> 
58</div>
Note: See TracBrowser for help on using the browser.