"Fossies" - the Fresh Open Source Software Archive

Member "metadot/sitedata/skins/base_skin/templates/admin_bar.tt2" (23 Feb 2005, 1904 Bytes) of package /linux/www/old/Metadot6.4.5.4.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% IF portal_context.get_user.is_logged_in && portal_context.get_session.admin_mode -%]
    2   [%- # get id & is_a, after checking that it's possible
    3       IF self;
    4         IF self.can('get_id');
    5           id = self.get_id;
    6         END;
    7         IF self.can('is_a');
    8           is_a = self.is_a;
    9         END;
   10       END;
   11   -%]
   12   <div id="admin_bar">
   13    <form action="index.pl" name="portal_panel">
   14       <input type=hidden name="isa">
   15       <input type=hidden name="iid">
   16       <input type=hidden name="op">
   17       [% self.make_hidden %]
   18       [%- IF self && self.isa('Category') %]
   19       <span style="padding-left: 1em;">
   20         [% IF portal_context.op == 'show' %]
   21           [% IF self.is_allowed_to_do('add_child') %]
   22         <a href="[% INCLUDE link_url.tt2 url_id=id url_isa=is_a url_op='add_child' url_options={child_type='Category'} %]" class='text_button'>New page</a>
   23             [% IF self.is_child_type_allowed('Separator') %]
   24         <a href="[% INCLUDE link_url.tt2 url_id=id url_isa=is_a url_op='add_child' url_options={child_type='Separator'} %]" class='text_button'>New section</a>
   25             [% END %]
   26             [%- IF self.get_found_modules.Project %]
   27         <a href="[% INCLUDE link_url.tt2 url_id=id url_isa=is_a url_op='add_child' url_options={child_type='Project'} %]" class='text_button'>New project</a>
   28             [% END -%]
   29           [% END %]
   30         [% END %]
   31       </span>
   32         [%- IF portal_context.op == 'show' && self.is_allowed_to_do('add_child') %]
   33       <span style="padding-left: 1em;">
   34          [% self.generate_add_child_selection_list %]
   35       </span>
   36         [% END -%]
   37       [% END -%]
   38       <span style="padding-left: 1em;">
   39          [% display.generate_manage_selection_list(id) %]
   40       </span>
   41       <span style="padding-left: 1em;">
   42 [% INCLUDE admin_button.tt2 %]
   43       </span>
   44       [% display.generate_submit_me_script() %]
   45     </form>
   46   </div>
   47 [%- END %]
   48