Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1374450
stylesheets_edit_block.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
Sun, Feb 1, 1:42 AM
Size
4 KB
Mime Type
text/html
Expires
Tue, Feb 3, 1:42 AM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
883926
Attached To
rINP In-Portal
stylesheets_edit_block.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_style"
title
=
"!la_title_Stylesheets!"
/>
<
inp2:m_include
t
=
"in-commerce/stylesheets/stylesheets_tabs"
/>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"css"
title_preset
=
"block_styles"
module
=
"in-commerce"
icon
=
"icon46_style"
/>
<!-- ToolBar --->
<
table
class
=
"toolbar"
height
=
"30"
cellspacing
=
"0"
cellpadding
=
"0"
width
=
"100%"
border
=
"0"
>
<
tbody
>
<
tr
>
<
td
>
<
script
type
=
"text/javascript"
>
a_toolbar
=
new
ToolBar
();
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'select'
,
'<inp2:m_phrase label="la_ToolTip_Save"/>'
,
function
()
{
submit_event
(
'css'
,
'<inp2:css_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel"/>'
,
function
()
{
submit_event
(
'css'
,
'OnCancelEdit'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep1'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'prev'
,
'<inp2:m_phrase label="la_ToolTip_Prev"/>'
,
function
()
{
go_to_id
(
'css'
,
'<inp2:css_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next"/>'
,
function
()
{
go_to_id
(
'css'
,
'<inp2:css_NextId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
//Relations related:
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'new_selector'
,
'<inp2:m_phrase label="la_ToolTip_NewBlockStyle"/>'
,
function
()
{
set_hidden_field
(
'remove_specials[selectors.block]'
,
1
);
std_new_item
(
'selectors.block'
,
'in-commerce/stylesheets/block_style_edit'
)
}
)
);
function
edit
()
{
set_hidden_field
(
'remove_specials[selectors.block]'
,
1
);
std_edit_temp_item
(
'selectors.block'
,
'in-commerce/stylesheets/block_style_edit'
);
}
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'edit'
,
'<inp2:m_phrase label="la_ToolTip_Edit"/>'
,
edit
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'delete'
,
'<inp2:m_phrase label="la_ToolTip_Delete"/>'
,
function
()
{
std_delete_items
(
'selectors.block'
)
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep3'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'clone'
,
'<inp2:m_phrase label="la_ToolTip_Clone"/>'
,
function
()
{
set_hidden_field
(
'remove_specials[selectors.block]'
,
1
);
submit_event
(
'selectors.block'
,
'OnMassClone'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'reset_to_base'
,
'<inp2:m_phrase label="la_ToolTip_ResetToBase"/>'
,
function
()
{
set_hidden_field
(
'remove_specials[selectors.block]'
,
1
);
submit_event
(
'selectors.block'
,
'OnMassResetToBase'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep4'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'view'
,
'<inp2:m_phrase label="la_ToolTip_View"/>'
,
function
()
{
show_viewmenu
(
a_toolbar
,
'view'
);
}
)
);
a_toolbar
.
Render
();
<
inp2
:
m_if
prefix
=
"css"
function
=
"IsSingle"
/>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
//a_toolbar.HideButton('sep2');
<
inp2
:
m_else
/>
<
inp2
:
m_if
prefix
=
"css"
function
=
"IsLast"
/>
a_toolbar
.
DisableButton
(
'next'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_if
prefix
=
"css"
function
=
"IsFirst"
/>
a_toolbar
.
DisableButton
(
'prev'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_endif
/>
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_block
name
=
"grid_description_td"
/>
<
td
valign
=
"top"
class
=
"text"
><
inp2:
$
PrefixSpecial_field
field
=
"
$
fi
eld"
grid
=
"
$
grid"
no_special
=
"
$
no_special"
cut_first
=
"100"
/></
td
>
<
inp2:m_blockend
/>
<
inp2:m_ParseBlock
name
=
"grid"
PrefixSpecial
=
"selectors.block"
IdField
=
"SelectorId"
grid
=
"BlockStyles"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
<
script
type
=
"text/javascript"
>
Grids
[
'selectors.block'
].
SetDependantToolbarButtons
(
new
Array
(
'edit'
,
'delete'
,
'clone'
)
);
</
script
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment