Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1084272
languages_edit_phrases.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, Aug 6, 11:02 AM
Size
3 KB
Mime Type
text/html
Expires
Fri, Aug 8, 11:02 AM (2 h, 8 m)
Engine
blob
Format
Raw Data
Handle
704290
Attached To
rINP In-Portal
languages_edit_phrases.tpl
View Options
<
inp2:m_set
nobody
=
"yes"
/>
<
inp2:m_include
t
=
"incs/header"
/>
<
body
topmargin
=
"0"
leftmargin
=
"8"
marginheight
=
"0"
marginwidth
=
"8"
bgcolor
=
"#FFFFFF"
>
<
inp2:m_ParseBlock
name
=
"section_header"
icon
=
"icon46_conf_regional"
title
=
"!la_title_RegionalSettings!"
/>
<
inp2:m_include
t
=
"regional/languages_edit_tabs"
/>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"lang"
title_preset
=
"phrases_list"
module
=
"in-portal"
icon
=
"icon46_conf_regional"
/>
<!-- ToolBar --->
<
table
class
=
"toolbar"
height
=
"30"
cellspacing
=
"0"
cellpadding
=
"0"
width
=
"100%"
border
=
"0"
>
<
tbody
>
<
tr
>
<
td
>
<
script
type
=
"text/javascript"
>
function
edit
()
{
std_edit_temp_item
(
'phrases'
,
'regional/phrases_edit'
);
}
a_toolbar
=
new
ToolBar
();
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'select'
,
'<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>'
,
function
()
{
submit_event
(
'lang'
,
'<inp2:lang_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'lang'
,
'OnCancelEdit'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep1'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'prev'
,
'<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>'
,
function
()
{
go_to_id
(
'lang'
,
'<inp2:lang_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
'lang'
,
'<inp2:lang_NextId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'new_language_var'
,
'<inp2:m_phrase label="la_ToolTip_NewLabel" escape="1"/>'
,
function
()
{
std_new_item
(
'phrases'
,
'regional/phrases_edit'
)
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'edit'
,
'<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>'
,
edit
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'delete'
,
'<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>'
,
function
()
{
std_delete_items
(
'phrases'
)
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep3'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'view'
,
'<inp2:m_phrase label="la_ToolTip_View" escape="1"/>'
,
function
()
{
show_viewmenu
(
a_toolbar
,
'view'
);
}
)
);
a_toolbar
.
Render
();
<
inp2
:
m_if
prefix
=
"lang"
function
=
"IsSingle"
/>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
<
inp2
:
m_else
/>
<
inp2
:
m_if
prefix
=
"lang"
function
=
"IsLast"
/>
a_toolbar
.
DisableButton
(
'next'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_if
prefix
=
"lang"
function
=
"IsFirst"
/>
a_toolbar
.
DisableButton
(
'prev'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_endif
/>
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_ParseBlock
name
=
"grid"
PrefixSpecial
=
"phrases"
IdField
=
"PhraseId"
grid
=
"Default"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
has_filters
=
"has_filters"
/>
<
script
type
=
"text/javascript"
>
Grids
[
'phrases'
].
SetDependantToolbarButtons
(
new
Array
(
'edit'
,
'delete'
)
);
</
script
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment