Ignore:
Timestamp:
05/29/15 17:30:52 (9 years ago)
Author:
nanardon
Message:

Add some attribute to service, fixe services definition for other objects

Location:
trunk/LATMOS-Accounts-Web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm

    r1333 r1346  
    180180        name => 'Services', 
    181181        attrs => [ qw( 
    182             description 
    183             comment 
     182            type 
     183            description 
     184            comment 
     185            start 
     186            end 
    184187            manager 
    185188            dependOn 
  • trunk/LATMOS-Accounts-Web/root/html/users/my.tt

    r1211 r1346  
    77 
    88<div id="objectform" class="objectform"> 
    9  
    10 [% FOREACH reqid = db.list_request_by_object('user', username) %] 
    11 [% IF loop.first %] 
    12 <p>Requêtes de modification</p> 
    13 <ul> 
    14 [% END %] 
    15 [% req = db.get_datarequest(reqid) %] 
    16 [% req.accreq.get_attributes('description') || req.accreq.id | 
    17     truncate(20) | html %], 
    18 [% req.apply | html %], 
    19 [% user = req.o_user %] 
    20 [% IF user %] 
    21 [% dsn = user.get_attributes('displayName') %] 
    22 [% IF dsn %] 
    23 [% dsn | truncate(20) | html %] 
    24 ([% user.id | html %]) 
    25 [% ELSE %] 
    26 [% user.id | html %] 
    27 [% END %] 
    28 [% END %] 
    29  
    30  
    31 [% FOREACH attr = req.attributes %] 
    32 [% IF loop.first %] 
    33 <ul> 
    34 [% END %] 
    35 <li>[% attr | html %]: [% req.get_attributes(attr) | html %]</li> 
    36 [% IF loop.last %] 
    37 </ul> 
    38 [% END %] 
    39 [% END %] 
    40 [% IF loop.last %] 
    41 </ul> 
    42 [% END %] 
    43 [% END %] 
    44  
    45  
    46 [% FOREACH reqid = db.list_requests_by_submitter(username) %] 
    47 [% IF loop.first %] 
    48 <p>Mes requêtes en attente</p> 
    49 <table border=1> 
    50 [% END %] 
    51 [% req = db.get_datarequest(reqid) %] 
    52 <tr> 
    53 <td> 
    54 [% req.accreq.get_attributes('description') || req.accreq.id | 
    55     truncate(20) | html %] 
    56 </td> 
    57 <td> 
    58 [% req.apply | html %] 
    59 </td> 
    60 <td> 
    61 [% obj = req.oobject %] 
    62 [% obj.otype | html %] 
    63 [% obj.get_attributes('displayName') | html %] 
    64 </td> 
    65 <td> 
    66 </td> 
    67 </tr> 
    68 [% IF loop.last %] 
    69 </table> 
    70 [% END %] 
    71 [% END %] 
    729 
    7310 
Note: See TracChangeset for help on using the changeset viewer.