Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1167843
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, Sep 24, 4:46 AM
Size
2 KB
Mime Type
text/html
Expires
Fri, Sep 26, 4:46 AM (1 d, 53 m)
Engine
blob
Format
Raw Data
Handle
756494
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_SetContentType
content_type
=
"text/plain"
/>
<
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