Ignore:
Timestamp:
09/21/12 13:05:17 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Extend location view on the record page to either show a dropdown
when adding/editing if the user has record_locchg permission, or
just show the location's short description if not. See #10.
Also add the new permission to the permissions subtemplate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/record.tmpl

    r383 r388  
    7373        <tr class="datalinelight">
    7474                <td>Location/view</td>
     75<TMPL_IF record_locchg>
    7576                <td><select name="location">
    7677<TMPL_LOOP name=loclist>                <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
    7778</TMPL_LOOP>
    7879                </select></td>
     80<TMPL_ELSE>
     81                <td><TMPL_VAR NAME=loc_name></td>
     82</TMPL_IF>
    7983        </tr>
    8084</TMPL_IF>
Note: See TracChangeset for help on using the changeset viewer.