summaryrefslogtreecommitdiff
path: root/templates/center_list_generic.tpl
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-03-28 21:09:48 +0000
committerwjames5 <will@tekimaki.com>2008-03-28 21:09:48 +0000
commitd1c9c79cb9d443da1c2db0a49c91a7baaaa57714 (patch)
tree5786fce1b295e4a9e51cc4fde173674e4017b9e7 /templates/center_list_generic.tpl
parent99278e6d6c6ced688f86db63e7c721a9b1666777 (diff)
downloadliberty-d1c9c79cb9d443da1c2db0a49c91a7baaaa57714.tar.gz
liberty-d1c9c79cb9d443da1c2db0a49c91a7baaaa57714.tar.bz2
liberty-d1c9c79cb9d443da1c2db0a49c91a7baaaa57714.zip
new getViewTemplates for asking for center templates from any content type - content classes can override to use their templates - liberty provides generic center templates by default
Diffstat (limited to 'templates/center_list_generic.tpl')
-rw-r--r--templates/center_list_generic.tpl83
1 files changed, 83 insertions, 0 deletions
diff --git a/templates/center_list_generic.tpl b/templates/center_list_generic.tpl
new file mode 100644
index 0000000..beed221
--- /dev/null
+++ b/templates/center_list_generic.tpl
@@ -0,0 +1,83 @@
+{strip}
+<div class="floaticon">{bithelp}</div>
+
+<div class="listing {$contentType|strtolower}">
+ <div class="header">
+ <h1>{tr}{if $contentType}{$contentType}s{else}Content Listing{/if}{/tr}</h1>
+ </div>
+
+ {formfeedback error=$errors}
+
+ <div class="body">
+ {form class="minifind" legend="find in entries"}
+ <input type="hidden" name="sort_mode" value="{$sort_mode}" />
+ {biticon ipackage="icons" iname="edit-find" iexplain="Search"} &nbsp;
+ <label>{tr}Title{/tr}:&nbsp;<input size="16" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> &nbsp;
+ <label>{tr}Author{/tr}:&nbsp;<input size="10" type="text" name="find_author" value="{$find_author|default:$smarty.request.find_author|escape}" /></label> &nbsp;
+ <label>{tr}Last Editor{/tr}:&nbsp;<input size="10" type="text" name="find_last_editor" value="{$find_last_editor|default:$smarty.request.find_last_editor|escape}" /></label> &nbsp;
+ <input type="submit" name="search" value="{tr}Find{/tr}" />&nbsp;
+ <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&amp;{/foreach}'" value="{tr}Reset{/tr}" />
+ {/form}
+
+ {form id="checkform"}
+ <div class="navbar">
+ <ul>
+ <li>{biticon ipackage="icons" iname="emblem-symbolic-link" iexplain="sort by"}</li>
+ <li>{smartlink ititle="Title" isort="title" icontrol=$listInfo}</li>
+ <li>{smartlink ititle="Last Modified" iorder="desc" idefault=1 isort="last_modified" icontrol=$listInfo}</li>
+ <li>{smartlink ititle="Author" isort="creator_user" icontrol=$listInfo}</li>
+ <li>{smartlink ititle="Last Editor" isort="modifier_user" icontrol=$listInfo}</li>
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_sort' serviceHash=$gContent->mInfo}
+ </ul>
+ </div>
+
+ <input type="hidden" name="offset" value="{$offset}" />
+ <input type="hidden" name="sort_mode" value="{$sort_mode}" />
+
+ <div class="clear"></div>
+
+ <table class="data">
+ <caption>{tr}{if $contentType}{$contentType}s{else}Content{/if} Listing{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
+ <tr>
+ {counter name=cols start=-1 print=false}
+ <th style="width:2%;">{smartlink ititle="ID" isort=content_id list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ <th>{smartlink ititle="Title" isort=title list_page=$listInfo.current_page idefault=1 ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ <th>{smartlink ititle="Content Type" isort=content_type_guid list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ <th>{smartlink ititle="Author" isort=$isort_author list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ <th>{smartlink ititle="Most recent editor" isort=$isort_editor list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ <th>{smartlink ititle="Last Modified" isort=last_modified list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ {if $gBitUser->hasPermission('p_liberty_view_all_status')}
+ <th>{smartlink ititle="IP" isort=ip list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
+ {counter name=cols assign=cols print=false}
+ {/if}
+ </tr>
+ {foreach from=$contentList item=item}
+ <tr class="{cycle values='odd,even'}">
+ <td style="text-align:center;">{$item.content_id}</td>
+ <td>{$item.display_link}</td>
+ <td>{assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid}</td>
+ <td>{displayname real_name=$item.creator_real_name user=$item.creator_user}</td>
+ <td>{displayname real_name=$item.modifier_real_name user=$item.modifier_user}</td>
+ <td>{$item.last_modified|bit_short_date}</td>
+ {if $gBitUser->hasPermission('p_liberty_view_all_status')}
+ <td style="text-align:center;">{$item.ip}</td>
+ {/if}
+ </tr>
+ {foreachelse}
+ <tr class="norecords"><td style="text-align:center;" colspan="{$cols}">
+ {tr}No records found{/tr}
+ </td></tr>
+ {/foreach}
+ </table>
+ {/form}
+
+ {pagination}
+ </div><!-- end .body -->
+</div><!-- end .listing -->
+{/strip}