Changeset 1348
- Timestamp:
- 06/01/15 17:57:34 (9 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm
r1329 r1348 227 227 'label' => 'Expire le' 228 228 }, 229 'endcircuit' => { 230 'label' => 'Fin de Circuit d\'entrée' 231 }, 229 232 'postalCode' => { 230 233 'label' => 'Code postal' -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r1346 r1348 26 26 mail initials nickname 27 27 expire 28 endcircuit 28 29 locked 29 30 create … … 42 43 contratType 43 44 expire 45 endcircuit 44 46 snNative 45 47 givenNameNative -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrFormsA.pm
r1329 r1348 288 288 my ($self, $value) = @_; 289 289 return sprintf(q| 290 $('[name="%s"]').datepicker( { dateFormat: 'dd/mm/yy' } ); 290 $('[name="%s"]').datepicker( { 291 changeMonth: true, 292 changeYear: true, 293 dateFormat: 'dd/mm/yy' 294 } ); 291 295 |, $self->escape($self->htmlname)); 292 296 } -
trunk/LATMOS-Accounts/bin/la-sql-upgrade.in
r1346 r1348 509 509 EXECUTE PROCEDURE rev_tg_f(); 510 510 }, 511 ], 512 }, 513 { 514 ver => 11, 515 sql => [ 516 q{ 517 ALTER TABLE "user" ADD COLUMN endcircuit timestamp with time zone 518 } 511 519 ], 512 520 }, -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1347 r1348 192 192 monitored => 1, 193 193 }, 194 expire => { inline => 1, formtype => 'DATE', monitored => 1, }, 194 expire => { inline => 1, formtype => 'DATE', monitored => 1, }, 195 endcircuit => { inline => 1, formtype => 'DATE', monitored => 1, }, 195 196 cn => { 196 197 inline => 1, ro => 1, … … 595 596 my $sth = $obj->db->prepare_cached( 596 597 sprintf( 597 q{select extract(epoch from expire) + 11644474161 as expire598 q{select extract(epoch from COALESCE(endcircuit, expire)) + 11644474161 as expire 598 599 from %s where %s = ?}, 599 600 $obj->db->quote_identifier($obj->_object_table), … … 615 616 my $sth = $obj->db->prepare_cached( 616 617 sprintf( 617 q{select justify_hours( expire- '1/1/1970'::timestamp) as expire618 q{select justify_hours(COALESCE(endcircuit, expire) - '1/1/1970'::timestamp) as expire 618 619 from %s where %s = ?}, 619 620 $obj->db->quote_identifier($obj->_object_table), … … 726 727 my $sth = $obj->db->prepare_cached( 727 728 sprintf( 728 q{select to_char( expire, 'YYYY/MM/DD') as expire729 q{select to_char(COALESCE(endcircuit, expire), 'YYYY/MM/DD') as expire 729 730 from %s where %s = ?}, 730 731 $obj->db->quote_identifier($obj->_object_table), … … 745 746 my $sth = $self->object->db->prepare_cached( 746 747 sprintf( 747 q{select date_part('epoch', expire)::int as expire748 q{select date_part('epoch', COALESCE(endcircuit, expire))::int as expire 748 749 from %s where %s = ?}, 749 750 $self->object->db->quote_identifier($self->object->_object_table), … … 780 781 my $sth = $obj->db->prepare_cached( 781 782 sprintf( 782 q{select to_char( expireAT TIME ZONE 'Z', 'YYYYMMDDHH24MISSZ') as expire783 q{select to_char(COALESCE(endcircuit, expire) AT TIME ZONE 'Z', 'YYYYMMDDHH24MISSZ') as expire 783 784 from %s where %s = ? and expire < now()}, 784 785 $obj->db->quote_identifier($obj->_object_table), -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Maintenance.pm
r1275 r1348 38 38 39 39 my $sth= $base->db->prepare(q{ 40 select name, justify_hours(expire - now()) as delay from "user" where 41 expire < now() + ?::interval 40 select name, 41 justify_hours(coalesce(endcircuit, expire) - now()) as delay, 42 endcircuit 43 from "user" 44 where 45 coalesce(endcircuit, expire) < now() + ?::interval 42 46 and expire > now() 43 and expireis not null47 and coalesce(endcircuit, expire) is not null 44 48 and exported = True 45 49 order by expire -
trunk/LATMOS-Accounts/man/man8/latmos-accounts-base-sql.pod
r1323 r1348 50 50 NS, TXT...). 51 51 52 =head2 User endcircuit 53 54 The C<endcircuit> attribute contain the deadline for people to make 55 admnistrative task when starting to work. 56 If set this attribute take precedence to C<expire> attribute for computed 57 attributes (C<accountExpires> for Active Directory). 58 52 59 =head2 Group AutoMemberFilter 53 60 -
trunk/LATMOS-Accounts/templates/mail/account_expire.mail
r1279 r1348 7 7 En aucun cas vos fichiers ne seront détruits. 8 8 9 Si ce dernier devait être prolongé, merci de dire à votre responsable 10 de contacter svp@latmos.ipsl.fr afin de nous donner la nouvelle date. 9 [% IF endcircuit %] 10 Pour que votre compte soit prolongé vous finir le circuit d'accueil et remettre 11 la fiche à Brigitte Fromager (Guyancourt - bureau 2421) ou Irina Tchoumakova 12 (Jussieu - bureau 409). 11 13 12 13 Cas d'un nouvel arrivant:14 15 Si vous êtes un nouvel arrivant, veuillez réaliser votre circuit d'entrée et16 remettre la fiche à Brigitte Fromager (Guyancourt - bureau 2421) ou Irina17 Tchoumakova (Jussieu - bureau 409).18 14 Si vous rencontrez des difficultés, n'hésitez pas à vous adresser à votre 19 15 responsable, ou à Brigitte et Irina. 20 16 17 [% ELSE %] 18 19 Si ce dernier devait être prolongé, merci de dire à votre responsable 20 de contacter svp@latmos.ipsl.fr afin de nous donner la nouvelle date. 21 [% END %] 21 22 22 23 Votre statut: 23 24 24 25 Société: [% obj.get_c_field('company') %] 26 25 27 Département: [% obj.get_c_field('department') %] 28 26 29 Contrat: [% obj.get_c_field('contratType') %] 27 30 … … 37 40 In no case your files will be destroyed. 38 41 39 If your account had to be extended, please ask your manager to contact 40 svp@latmos.ipsl.fr to give us a new expiration date. 41 42 43 If you are new in laboratory: 44 45 If you are a newcomer, please make your entrance circuit and pass on the sheet 46 to Brigitte Fromager (Guyancourt - office 2421) or Irina Tchoumakova (Jussieu - 47 office 409). 42 [% IF endcircuit %] 43 To have your account renew please end make your entrance circuit and pass on the 44 sheet to Brigitte Fromager (Guyancourt - office 2421) or Irina Tchoumakova 45 (Jussieu - office 409). 48 46 If you meet difficulties, don't hesitate to deal with your manager, or with 49 47 Brigitte and Irina. 50 48 49 [% ELSE %] 50 51 If your account had to be extended, please ask your manager to contact 52 svp@latmos.ipsl.fr to give us a new expiration date. 53 [% END %] 51 54 52 55 Your status: 53 56 54 57 Company: [% obj.get_c_field('company') %] 58 55 59 Department: [% obj.get_c_field('department') %] 60 56 61 Contract: [% obj.get_c_field('contratType') %] 57 62
Note: See TracChangeset
for help on using the changeset viewer.