Commit d3664a12b2befd3c57ab75620e566f3151d1ef8c
1 parent
24d65f8d
A template for representing a bunch of metadata fields.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3618 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
25 additions
and
0 deletions
templates/ktcore/metadata_fields/editable_metadata_fields.smarty
0 → 100644
| 1 | +<table class="prettysw" cellpadding="0" cellspacing="0"> | |
| 2 | +{if !$metadata_prefix} | |
| 3 | +{assign var="metadata_prefix" value="emd"} | |
| 4 | +{/if} | |
| 5 | +{if $caption} | |
| 6 | +<caption colspan="2">{$caption}</caption> | |
| 7 | +{/if} | |
| 8 | +{if $fields} | |
| 9 | +{ foreach item=oField from=$fields } | |
| 10 | +<tr> | |
| 11 | +<th>{$oField->getName()}</th> | |
| 12 | +<td> | |
| 13 | +{php} | |
| 14 | +$oField = $this->_tpl_vars['oField']; | |
| 15 | +$sPrefix = $this->_tpl_vars['metadata_prefix']; | |
| 16 | +$this->assign('pattern', new PatternMetadata($oField->getName(), $sPrefix . $oField->getID())); | |
| 17 | +{/php} | |
| 18 | +{$pattern->render()} | |
| 19 | +</td> | |
| 20 | +</tr> | |
| 21 | +{ /foreach } | |
| 22 | +{else} | |
| 23 | +<tr><td>No fields found</td></tr> | |
| 24 | +{/if} | |
| 25 | +</table> | ... | ... |