Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804728
reviews_tab.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 4:34 PM
Size
2 KB
Mime Type
text/html
Expires
Fri, Feb 28, 4:34 PM (7 h, 41 m)
Engine
blob
Format
Raw Data
Handle
577158
Attached To
rINP In-Portal
reviews_tab.tpl
View Options
<
inp2:m_RequireLogin
permissions
=
"in-portal:reviews.view"
system
=
"1"
/>
<
inp2:m_DefineElement
name
=
"catalog_tab"
>
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"tab_init"
value
=
""
>
<
inp2:lang.current_Field
name
=
"Charset"
result_to_var
=
"charset"
/>
<
inp2:m_Header
data
=
"Content-type: text/plain; charset=
$
charset"
/>
<
inp2:m_include
t
=
"incs/blocks"
/>
<
inp2:m_include
t
=
"incs/in-portal"
/>
<
inp2:
$
prefix_InitList
grid
=
"
$
grid_name"
/>
$
Catalog.setItemCount('
<
inp2:m_param
name
=
"prefix"
/>
', '
<
inp2:
{$
prefix
}
_CatalogItemCount
/>
');
$
Catalog.setCurrentCategory('
<
inp2:m_param
name
=
"prefix"
/>
', 0);
$
Catalog.saveSearch('
<
inp2:m_Param
name
=
"prefix"
/>
', '
<
inp2:
$
prefix_SearchKeyword
js_escape
=
"1"
/>
', '
<
inp2:m_Param
name
=
"grid_name"
/>
');
<
inp2:m_DefineElement
name
=
"grid_reviewtext_td"
>
<
inp2:Field
field
=
"
$
fi
eld"
cut_first
=
"100"
/>
<
br
/>
<
span
class
=
"small-statistics"
>
<
a
href
=
"<inp2:ItemEditLink/>"
onclick
=
"return direct_edit('<inp2:m_param name="
prefix
"
/>
', this.href);">
<
inp2:Field
field
=
"CatalogItemName"
/></
a
>
</
span
>
</
inp2:m_DefineElement
>
<
inp2:m_RenderElement
name
=
"grid_js"
PrefixSpecial
=
"
$
prefix"
IdField
=
"ReviewId"
grid
=
"
$
grid_name"
/>
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"tab_dependant"
value
=
"yes"
>
Grids['
<
inp2:m_param
name
=
"prefix"
/>
'].AddAlternativeGrid('
<
inp2:m_param
name
=
"cat_prefix"
/>
', true);
</
inp2:m_if
>
Grids['
<
inp2:m_param
name
=
"prefix"
/>
'].SetDependantToolbarButtons( new Array('edit','delete','approve','decline','sep3','cut','copy','move_up','move_down','sep6'));
$
Catalog.reflectPasteButton(
<
inp2:c_HasClipboard
/>
);
$
Catalog.setViewMenu('
<
inp2:m_param
name
=
"prefix"
/>
');
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"tab_mode"
value
=
"single"
>
Grids['
<
inp2:m_param
name
=
"prefix"
/>
'].DblClick = function() {return false};
</
inp2:m_if
>
#separator#
<!-- products tab: begin -->
<
inp2:m_RenderElement
name
=
"kernel_form"
form_name
=
"{
$
tab_name}_form"
/>
<
inp2:m_RenderElement
name
=
"grid"
ajax
=
"1"
PrefixSpecial
=
"
$
prefix"
IdField
=
"ReviewId"
grid
=
"
$
grid_name"
/>
<
inp2:m_RenderElement
name
=
"kernel_form_end"
/>
<!-- products tab: end -->
</
inp2:m_if
>
</
inp2:m_DefineElement
>
<
inp2:m_Get
name
=
"item_prefix"
result_to_var
=
"prefix"
/>
<
inp2:
{$
prefix
}
_InitCatalogTab
render_as
=
"catalog_tab"
default_grid
=
"ReviewsSection"
radio_grid
=
"Radio"
/>
Event Timeline
Log In to Comment