diff options
| author | Christian Fowler <cfowler2@wcpss.net> | 2013-04-24 11:08:39 -0400 |
|---|---|---|
| committer | Christian Fowler <cfowler2@wcpss.net> | 2013-04-24 11:08:39 -0400 |
| commit | cea158e7672ae66b206dd0ba992468fd99a41004 (patch) | |
| tree | 2a043f7e450a3fed4be617f4b8096d6896bb1fd2 /templates | |
| parent | 9ff3f7cb5207262e4e3e02eaa6af00ddb6542375 (diff) | |
| download | liberty-cea158e7672ae66b206dd0ba992468fd99a41004.tar.gz liberty-cea158e7672ae66b206dd0ba992468fd99a41004.tar.bz2 liberty-cea158e7672ae66b206dd0ba992468fd99a41004.zip | |
clean up list content
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/list_content.tpl | 26 | ||||
| -rw-r--r-- | templates/list_content_inc.tpl | 36 |
2 files changed, 25 insertions, 37 deletions
diff --git a/templates/list_content.tpl b/templates/list_content.tpl index 0c2efcb..f34477c 100644 --- a/templates/list_content.tpl +++ b/templates/list_content.tpl @@ -1,18 +1,38 @@ {strip} <div class="listing liberty"> - <div class="header"> + <header> +{form class="form-search pull-right" action=$smarty.server.REQUEST_URI method="get"} + <input type="hidden" name="user_id" value="{$smarty.request.user_id}" /> + <input type="hidden" name="sort_mode" value="{$smarty.request.sort_mode}" /> + + {html_options onchange="submit();" options=$contentTypes name=content_type_guid id=content_type selected=$contentSelect} + + {if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitUser->hasPermission( 'p_liberty_view_all_status' )} + {html_options + options=$content_statuses + values=$content_statuses + name=content_status_id + id=content_status_id + selected=$smarty.request.content_status_id|default:''} + {formhelp note="Limit selection to a given status."} + {/if} + <div class="input-append"> + <input type="text" name="find" value="{$listInfo.find}" class="search-query" placeholder="{tr}Search Within Results{/tr}"> + <input type="submit" class="btn" value="{tr}Search{/tr}" name="search_objects"/> + </div> +{/form} <h1> {foreach from=$contentSelect item=item name=loop} {tr}{$contentTypes[$item]}{/tr} {if !$smarty.foreach.loop.last}, {/if} {foreachelse} - {tr}Content{/tr} + {tr}All Content Types{/tr} {/foreach} </h1> {if $smarty.request.user_id} {tr}User{/tr}: {displayname user_id=$smarty.request.user_id} {/if} - </div> + </header> <div class="body"> {include file="bitpackage:liberty/list_content_inc.tpl"} diff --git a/templates/list_content_inc.tpl b/templates/list_content_inc.tpl index 343b83d..08bf4b0 100644 --- a/templates/list_content_inc.tpl +++ b/templates/list_content_inc.tpl @@ -1,36 +1,4 @@ {strip} -{form legend="Select Content Type" action="`$smarty.server.REQUEST_URI`" method="get"} - <input type="hidden" name="user_id" value="{$smarty.request.user_id}" /> - <input type="hidden" name="sort_mode" value="{$smarty.request.sort_mode}" /> - <div class="control-group"> - {formlabel label="Restrict listing" for="content_type_guid"} - {forminput} - {html_options onchange="submit();" options=$contentTypes name=content_type_guid id=content_type selected=$contentSelect} - {formhelp note="Limit search by content type"} - <noscript> - <div><input type="submit" class="btn" name="content_switch" value="{tr}change content type{/tr}" /></div> - </noscript> - {/forminput} - - {if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitUser->hasPermission( 'p_liberty_view_all_status' )} - {forminput} - {html_options - options=$content_statuses - values=$content_statuses - name=content_status_id - id=content_status_id - selected=$smarty.request.content_status_id|default:''} - {formhelp note="Limit selection to a given status."} - {/forminput} - {/if} - - {forminput} - <input type="text" name="find" value="{$listInfo.find}" /> - <input type="submit" class="btn" value="{tr}Apply Filter{/tr}" name="search_objects" /> - {formhelp note="You can restrict the content listing to a given content type or apply a filter on content title."} - {/forminput} - </div> -{/form} {* assign the correct sort columns for user name sorting *} {if $gBitSystem->getConfig( 'users_display_name' ) eq 'login'} @@ -41,10 +9,10 @@ {assign var=isort_editor value=modifier_real_name} {/if} -<table class="data"> +<table class="table data clear"> <caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption> <tr> - <th class="width2p">{smartlink ititle="ID" isort=lc.content_id list_page=$listInfo.current_page ihash=$listInfo.ihash}</th> + <th class="width2p">{smartlink ititle="ID" isort="lc.content_id" list_page=$listInfo.current_page ihash=$listInfo.ihash}</th> {if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitUser->hasPermission( 'p_liberty_view_all_status' )} <th>{smartlink ititle="Status" isort=content_status_name list_page=$listInfo.current_page ihash=$listInfo.ihash}</th> {/if} |
