diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-01-17 13:40:50 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-01-17 13:40:50 +0000 |
| commit | fbd7236704470e9faf6e0c6ad9faaa9fe38cec77 (patch) | |
| tree | b860ba81248cb17b3f200496c35a645c2bf555d3 /templates | |
| parent | 35bab2b8201cba59a0bb53fdd1111ce49abb1573 (diff) | |
| download | pigeonholes-fbd7236704470e9faf6e0c6ad9faaa9fe38cec77.tar.gz pigeonholes-fbd7236704470e9faf6e0c6ad9faaa9fe38cec77.tar.bz2 pigeonholes-fbd7236704470e9faf6e0c6ad9faaa9fe38cec77.zip | |
bring getList() up to the new standards and use pagination when listing categories
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_pigeonholes.tpl | 1 | ||||
| -rw-r--r-- | templates/list.tpl | 62 | ||||
| -rw-r--r-- | templates/view_structure_inc.tpl | 2 |
3 files changed, 30 insertions, 35 deletions
diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index df30670..854961d 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -68,7 +68,6 @@ <div class="row submit"> <input type="submit" name="pigeonhole_store" value="{tr}Save Category{/tr}" /> - <input type="submit" name="pigeonhole_store_and_create" value="{tr}Save and Insert a new Category{/tr}" /> </div> {/form} diff --git a/templates/list.tpl b/templates/list.tpl index dbb2d0c..f4e18ae 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -1,7 +1,7 @@ {strip} <div class="listing pigeonholes"> <div class="header"> - <h1>{tr}Categories Listing{/tr}</h1> + <h1>{tr}Categories Listing{/tr} <span class="total">[ {$listInfo.cant} ]</span></h1> </div> {* user sort related assigning *} @@ -15,40 +15,36 @@ <div class="body"> {minifind} + <div class="navbar"> + <ul> + <li>{biticon ipackage=liberty iname=sort iexplain=sort}</li> + <li>{smartlink ititle="Title" isort=title page=$page idefault=1}</li> + <li>{smartlink ititle="Description" isort=data page=$page}</li> + </ul> + </div> + <div class="clear"></div> - <table class="data"> - <caption>{tr}Available Categories{/tr} <span class="total">[ {$pigeonCount} ]</span></caption> - <tr> - <th style="width:45%;">{smartlink ititle="Title" isort=title page=$page idefault=1} / {smartlink ititle="Description" isort=data page=$page}</th> - <th style="width:42%;">{tr}Categories{/tr}</th> - {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} - <th style="width:9%;">{tr}Actions{/tr}</th> - {/if} - </tr> - - {foreach from=$pigeonList item=item} - <tr class="{cycle values='odd,even'}"> - <td> - <h2>{$item.display_link}</h2> - {$item.data} - </td> - <td style="white-space:nowrap">{include file="bitpackage:pigeonholes/view_structure_inc.tpl" no_edit=TRUE subtree=$item.subtree}</td> - {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} - <td class="actionicon"> - {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" ibiticon="liberty/new" structure_id=`$item.structure_id` action=create} - {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" ibiticon="liberty/edit" structure_id=`$item.structure_id`} - {smartlink ititle="Change Structure" ifile="edit_structure.php" ibiticon="pigeonholes/organise" structure_id=`$item.structure_id`} - {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" ibiticon="liberty/delete" action="remove" structure_id=`$item.structure_id`} - </td> - {/if} - </tr> - {foreachelse} - <tr class="norecords"> - <td colspan="5">{tr}No Records Found{/tr}</td> - </tr> - {/foreach} - </table> + <hr /> + {foreach from=$pigeonList item=item} + {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} + <div class="floaticon"> + {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" ibiticon="liberty/new" structure_id=`$item.structure_id` action=create} + {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" ibiticon="liberty/edit" structure_id=`$item.structure_id`} + {smartlink ititle="Change Structure" ifile="edit_structure.php" ibiticon="pigeonholes/organise" structure_id=`$item.structure_id`} + {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" ibiticon="liberty/delete" action="remove" structure_id=`$item.structure_id`} + </div> + {/if} + <h2>{$item.display_link}</h2> + {$item.data} + {include file="bitpackage:pigeonholes/view_structure_inc.tpl" no_edit=TRUE subtree=$item.subtree no_details=true} + <hr /> + {foreachelse} + <div class="norecords"> + <td colspan="5">{tr}No Records Found{/tr}</td> + </div> + {/foreach} + {pagination} {libertypagination numPages=$numPages page=$curPage sort_mode=$sort_mode content_type=$contentSelect user_id=$user_id} </div><!-- end .body --> </div><!-- end .liberty --> diff --git a/templates/view_structure_inc.tpl b/templates/view_structure_inc.tpl index e8b3a88..1b4bf26 100644 --- a/templates/view_structure_inc.tpl +++ b/templates/view_structure_inc.tpl @@ -1,5 +1,5 @@ {strip} -<ul class="toc"> +<ul> <li> {section name=ix loop=$subtree} {assign var=structId value=$subtree[ix].structure_id} |
