Ignore:
Timestamp:
Dec 8, 2013, 2:53:40 PM (11 years ago)
Author:
mistic100
Message:

photo owner has access to quick edit and delete !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/template/public_controller.tpl

    r25839 r25845  
    3333{footer_script require='admintools.controller'}
    3434AdminTools.urlWS = '{$ROOT_URL}ws.php?format=json&method=';
     35
     36{if isset($ato.MULTIVIEW)}
    3537AdminTools.multiView = {
    3638  view_as: {$ato.MULTIVIEW.view_as},
     
    3840  lang: '{$ato.MULTIVIEW.lang}'
    3941};
     42{/if}
    4043
    4144{if $ato.DELETE_CACHE}
     
    6770  <ul>
    6871    <li><a href="#" class="icon-ato-cancel close-panel"></a></li>
     72  {if isset($ato.U_SITE_ADMIN)}
    6973    <li class="parent"><a href="#" class="icon-menu ato-hide-1">{'Administration'|translate}</a>
    7074      <ul>
     
    7781      </ul>
    7882    </li>
    79   {if isset($ato.U_EDIT)}
     83  {/if}
     84  {if isset($ato.U_ADMIN_EDIT)}
    8085    <li class="parent"><a href="#" class="icon-pencil ato-hide-2">{'Edit'|translate}</a>
    8186      <ul>
    8287        <li><a href="#ato_quick_edit" class="icon-ato-flash edit-quick">{'Quick edit'|translate}</a></li>
    83         <li><a class="icon-ato-doc-text-inv" href="{$ato.U_EDIT}">{'Properties page'|translate}</a></li>
    84       {if isset($ato.IS_PICTURE)}
    85                                 <li style="margin-top:1em;"><a class="icon-ato-cancel" href="{$ato.U_SELF}delete&amp;pwg_token={$ato.PWG_TOKEN}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
     88        <li><a class="icon-ato-doc-text-inv" href="{$ato.U_ADMIN_EDIT}">{'Properties page'|translate}</a></li>
     89      {if isset($ato.U_DELETE)}
     90                                <li style="margin-top:1em;"><a class="icon-ato-cancel" href="{$ato.U_DELETE}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
    8691      {/if}
    8792      </ul>
    8893    </li>
     94  {else if isset($ato.QUICK_EDIT)}
     95    <li><a href="#ato_quick_edit" class="icon-pencil edit-quick ato-hide-2">{'Edit'|translate}</a></li>
     96    {if isset($ato.U_DELETE)}
     97      <li><a class="icon-ato-cancel ato-hide-2" href="{$ato.U_DELETE}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
     98    {/if}
    8999  {/if}
    90100  {if isset($ato.U_SET_REPRESENTATIVE)}
     
    99109    <li class="saved"><span class="icon-ato-ok ato-hide-1">{'Saved'|translate}</span></li>
    100110
     111  {if isset($ato.MULTIVIEW)}
    101112    <li class="parent right multiview"><a class="icon-cog-alt ato-hide-1" href="#">{'Tools'|translate}</a>
    102113      <ul>
     
    118129      </ul>
    119130    </li>
    120   {if $ato.USER.id != $ato.MULTIVIEW.view_as}
     131    {if $ato.USER.id != $ato.MULTIVIEW.view_as}
    121132    <li class="right">
    122133      &nbsp;&nbsp;{'Viewing as <b>%s</b>.'|translate:$ato.CURRENT_USERNAME}
    123134      <a href="{$ato.U_SELF}ato_view_as={$ato.USER.id}">{'Revert'|translate}</a>
    124135    </li>
     136    {/if}
    125137  {/if}
    126138  </ul>
     
    156168        </select>
    157169
     170        {if isset($available_permission_levels)}
    158171        <label for="quick_edit_level">{'Who can see this photo?'|@translate}</label>
    159172        <select name="level" size="1">
    160173          {html_options options=$available_permission_levels selected=$ato.QUICK_EDIT.level}
    161174        </select>
     175        {/if}
    162176      {/if}
    163177
Note: See TracChangeset for help on using the changeset viewer.