~samba-team/swat/unstable

« back to all changes in this revision

Viewing changes to swat/templates/default/component/account-user-form.mako

  • Committer: Jelmer Vernooij
  • Date: 2010-06-19 00:39:43 UTC
  • mfrom: (216.2.262)
  • Revision ID: jelmer@samba.org-20100619003943-mylkv680m6dq94u0
Merge newer upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
<%namespace name="field" file="/default/component/form-fields.mako" />
20
20
 
21
21
<%def name="write()">
22
 
    ${h.form('', method="post", id="share-form", class_="share-configuration")}
 
22
    ${h.secure_form('', method="post", id="user-account-form", class_="share-configuration")}
23
23
        <ol class="tab-list">
24
24
            <li id="tab1" class="active">
25
25
                <h3><a title="${_('Basic User Configuration')}" class="title-icon basic-tab" href="#">${_('Basic')}</a></h3>                           
26
 
            </li>              
 
26
            </li>
 
27
            <li id="tab2">
 
28
                <h3><a title="${_('Account Status')}" class="title-icon status-tab" href="#">${_('Status')}</a></h3>                           
 
29
            </li>
 
30
            <li id="tab3">
 
31
                <h3><a title="${_('User Profile Storage')}" class="title-icon profile-tab" href="#">${_('Profile')}</a></h3>                           
 
32
            </li>
 
33
            <li id="tab4">
 
34
                <h3><a title="${_('Assigned Groups')}" class="title-icon groups-tab" href="#">${_('Groups')}</a></h3>                           
 
35
            </li>
27
36
        </ol>
28
37
    
29
38
        <ul class="tab-list-items"> 
30
39
            <li id="content-tab1" class="active tab">
31
40
                <ol class="col-1">
32
 
                    <li>${field.put("username", "x")}</li>
33
 
                    <li>${field.put("fullname", "y")}</li>
34
 
                    <li>${field.put("description", "y")}</li>
35
 
                    <li>${field.put("password", "y")}</li>
36
 
                    <li>${field.put("confirmpassword", "y")}</li>
 
41
                    <li>${field.put("username", c.user.username)}</li>
 
42
                    <li>${field.put("fullname", c.user.fullname)}</li>
 
43
                    <li>${field.put("description", c.user.description)}</li>
 
44
                    <li>${field.put("password", "")}</li>
 
45
                    <li>${field.put("confirmpassword", "")}</li>
 
46
                </ol>
 
47
            </li>
 
48
            
 
49
            <li id="content-tab2" class="tab">
 
50
                <ol class="col-1">
 
51
                    <li>${field.put("mustchange", c.user.must_change_password)}</li>
 
52
                    <li>${field.put("cannotchange", c.user.cannot_change_password)}</li>
 
53
                    <li>${field.put("neverexpires", c.user.password_never_expires)}</li>
 
54
                    <li>${field.put("disabled", c.user.account_disabled)}</li>
 
55
                    <li>${field.put("locked", c.user.account_locked_out)}</li>
 
56
                </ol>
 
57
            </li>
 
58
            
 
59
            <li id="content-tab3" class="tab">
 
60
                <ol class="col-1">
 
61
                    <li>${field.put("profilepath", c.user.profile_path)}</li>
 
62
                    <li>${field.put("logonscriptname", c.user.logon_script)}</li>
 
63
                    <li>${field.put("homedirpath", c.user.homedir_path)}</li>
 
64
                    <li>${field.put("maphomedirdrive", c.user.map_homedir_drive)}</li>
 
65
                </ol>
 
66
            </li>
 
67
 
 
68
            <li id="content-tab4" class="tab">
 
69
                <ol class="col-1">
 
70
                    <li>${field.put("groups", c.user.group_list)}</li>
37
71
                </ol>
38
72
            </li>
39
73
        </ul>
 
74
        
 
75
        <div class="widget share-comment round-2px">
 
76
            <div class="title-bar">
 
77
                <h2 class="title-icon" style="background-image:url('/default/images/icons/balloon.png');">${_('Additional Information')} -- (placeholder only for now)</h2>
 
78
            </div>
 
79
            <div class="content" style="font-size:85%;">
 
80
                <ul>
 
81
                    <style type="text/css">
 
82
 
 
83
                        div.share-comment ul li{float:left;width:220px;display:block;margin-bottom:10px;}
 
84
                    </style>
 
85
                    
 
86
                    <li><b>Created Date:&nbsp;</b>01/01/2010</li>
 
87
                    <li><b>Last Logon:&nbsp;</b>01/01/2010</li>
 
88
                    <li><b>Last Logoff:&nbsp;</b>01/01/2010</li>
 
89
                    <li><b>Logon Count:&nbsp;</b>1</li>
 
90
                    <li><b>Bad Password Tries:&nbsp;</b>100</li>
 
91
                </ul>
 
92
            </div>
 
93
        </div>
 
94
     
 
95
        <div>
 
96
            ${h.hidden("task", request.environ['pylons.routes_dict']['subaction'])}
 
97
            ${h.hidden("name", c.user.username)}
 
98
            ${h.hidden("id", c.user.rid)}
 
99
            ${h.hidden("type", "user")}
 
100
        </div>
40
101
    ${h.end_form()}
41
102
</%def>