Changeset 2361


Ignore:
Timestamp:
05/26/20 18:01:08 (4 years ago)
Author:
nanardon
Message:

Add templates management pages

Location:
trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/MANIFEST

    r2350 r2361  
    6565lib/LATMOS/Accounts/Web/Controller/Summary/Offices.pm 
    6666lib/LATMOS/Accounts/Web/Controller/Summary/Tree.pm 
     67lib/LATMOS/Accounts/Web/Controller/Templates.pm 
    6768lib/LATMOS/Accounts/Web/Controller/Tools/CSV.pm 
    6869lib/LATMOS/Accounts/Web/Controller/Tools/LoadNew.pm 
     
    160161root/html/summary/rh/index.tt 
    161162root/html/summary/tree/index.tt 
     163root/html/templates/default.tt 
     164root/html/templates/index.tt 
    162165root/html/tools/csv/index.tt 
    163166root/html/tools/csv/parseCSV.tt 
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm

    r2268 r2361  
    273273        )], 
    274274    }, 
     275    templates => { 
     276        name => 'Templates', 
     277        attrs => [ qw( 
     278            objectType 
     279            data 
     280            create 
     281            createdby 
     282            date 
     283            modifiedby 
     284            unexported 
     285        )], 
     286    }, 
    275287}; 
    276288 
  • trunk/LATMOS-Accounts-Web/root/html/includes/sidebar.tt

    r2121 r2361  
    9494<li>[% l('Tools') %] 
    9595    <ul> 
     96    <li> 
     97        <a href="[% c.uri_for('/templates') %]">[% l('Templates list') | html %]</a> 
     98    </li> 
     99    <li> 
     100        <a href="[% c.uri_for('/create/templates') %]">[% l('Create template') | html %]</a> 
     101    </li> 
    96102    [% IF c.model('Accounts').db.check_acl('user', 'userPasswd', 'w') %] 
    97103    <li><a href="[% c.uri_for('/tools', 'loadpasswd') %]"> 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Templates.pm

    r2358 r2361  
    5050            data => { 
    5151                inline => 1, 
    52                 formtype => 'TEXTAREA', 
    5352                multiple => 1, 
    5453                set => sub { 
Note: See TracChangeset for help on using the changeset viewer.