Changeset 11656 for extensions/Copyrights/admin.tpl
- Timestamp:
- Jul 7, 2011, 1:27:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/admin.tpl
r11624 r11656 3 3 </div> 4 4 5 <!-- Create the form for creating and editing copyrights --> 5 6 <form action='{$COPYRIGHTS_PATH}-{if $edit == 0}create{else}update{/if}' 6 7 method='POST'> … … 8 9 <legend>{if $edit == 0}{'Create copyright'|@translate} 9 10 {else}{'Update copyright'|@translate}{/if}</legend> 11 <!-- If $edit != 0 we should remember the id of the copyright that is 12 edited --> 10 13 {if $edit != 0}<input type='hidden' name='id' id='id' value='{$CRid}' />{/if} 14 <!-- Put all the attributes of the copyright in a nice table --> 11 15 <table> 12 16 <tr> … … 37 41 </fieldset> 38 42 </form> 43 44 <!-- If we are on the 'homepage', show a table of all copyrights --> 39 45 {if $edit == 0} 40 46 <form> … … 43 49 <table> 44 50 <tr> 51 <!-- Create a nice header row --> 45 52 <th>{'Name'|@translate}</th> 46 53 <th>{'URL'|@translate}</th> … … 49 56 <th>{'Actions'|@translate}</th> 50 57 </tr> 58 <!-- Loop over all copyrights --> 51 59 {if not empty($CRs)} 52 60 {foreach from=$CRs item=CR} 53 61 {strip} 54 <tr class="{cycle values="row1,row2"}"> 62 <tr class="{cycle values="row1,row2"}"> <!-- This gives nicely colored 63 table rows --> 55 64 <td>{$CR.name}</td> 56 65 <td><a href="{$CR.url}">{$CR.url}</a></td>
Note: See TracChangeset
for help on using the changeset viewer.