Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F924984
articles_edit.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
Tue, May 20, 3:25 AM
Size
7 KB
Mime Type
text/html
Expires
Thu, May 22, 3:25 AM (6 h, 54 m)
Engine
blob
Format
Raw Data
Handle
625204
Attached To
rMINN Modules.In-News
articles_edit.tpl
View Options
<
inp2:adm_SetPopupSize
width
=
"880"
height
=
"680"
/>
<
inp2:m_include
t
=
"incs/header"
/>
<
inp2:m_RenderElement
name
=
"combined_header"
prefix
=
"n"
section
=
"in-portal:browse"
title_preset
=
"articles_edit"
tab_preset
=
"Default"
/>
<!-- 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" escape="1"/>'
,
function
()
{
submit_event
(
'n'
,
'<inp2:n_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'n'
,
'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
(
'n'
,
'<inp2:n_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
'n'
,
'<inp2:n_NextId/>'
);
}
)
);
//a_toolbar.AddButton( new ToolBarSeparator('sep2') );
a_toolbar
.
Render
();
<
inp2
:
m_if
check
=
"n_IsSingle"
>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
//a_toolbar.HideButton('sep2');
<
inp2
:
m_else
/>
<
inp2
:
m_if
check
=
"n_IsLast"
>
a_toolbar
.
DisableButton
(
'next'
);
<
/inp2:m_if>
<
inp2
:
m_if
check
=
"n_IsFirst"
>
a_toolbar
.
DisableButton
(
'prev'
);
<
/inp2:m_if>
<
/inp2:m_if>
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:n_SaveWarning
name
=
"grid_save_warning"
/>
<
inp2:n_ErrorWarning
name
=
"form_error_warning"
/>
<
div
id
=
"scroll_container"
>
<
table
class
=
"edit-form"
>
<
inp2:m_RenderElement
name
=
"subsection"
prefix
=
"n"
title
=
"la_section_Article"
original_title
=
"la_section_OriginalValues"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_id_label"
prefix
=
"n"
field
=
"NewsId"
title
=
"!la_fld_Id!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"Title"
title
=
"!la_fld_Title!"
size
=
"70"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_user"
prefix
=
"n"
field
=
"CreatedById"
title
=
"!la_fld_Author!"
size
=
"25"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_textarea"
prefix
=
"n"
field
=
"Body"
title
=
"!la_fld_Body!"
control_options
=
"{min_height: 100}"
cols
=
"70"
rows
=
"8"
display_original
=
"1"
/>
<!-- excerpt: begin -->
<
inp2:m_if
check
=
"n_FieldVisible"
field
=
"Excerpt"
>
<
tr
class
=
"<inp2:m_odd_even odd='edit-form-odd' even='edit-form-even'/>"
>
<
inp2:m_RenderElement
name
=
"inp_edit_field_caption"
prefix
=
"n"
field
=
"Excerpt"
title
=
"la_fld_Excerpt"
/>
<
td
class
=
"control-cell"
>
<
textarea
tabindex
=
"<inp2:m_get param="
tab_index
"
/>
" id="
<
inp2:n_InputName
field
=
"Excerpt"
/>
" name="
<
inp2:n_InputName
field
=
"Excerpt"
/>
" style="width: 100%; height: 45px" cols="70" rows="3">
<
inp2:n_Field
field
=
"Excerpt"
/></
textarea
><
br
/>
<
script
type
=
"text/javascript"
>
Form
.
addControl
(
'<inp2:n_InputName field="Excerpt"/>'
,
{
min_height
:
100
});
</
script
>
<
input
type
=
"checkbox"
name
=
"generate_excerpt"
id
=
"generate_excerpt"
value
=
"1"
/><
label
for
=
"generate_excerpt"
><
inp2:m_phrase
name
=
"la_prompt_AutoGen_Excerpt"
/></
label
>
</
td
>
<
inp2:m_RenderElement
name
=
"inp_edit_error"
prefix
=
"n"
field
=
"Excerpt"
/>
<
inp2:m_if
check
=
"n_DisplayOriginal"
pass_params
=
"1"
>
<
inp2:m_RenderElement
prefix
=
"n"
field
=
"Excerpt"
name
=
"inp_original_label"
/>
</
inp2:m_if
>
</
tr
>
</
inp2:m_if
>
<!-- excerpt: end -->
<
inp2:m_RenderElement
name
=
"inp_edit_checkbox"
prefix
=
"n"
field
=
"AutomaticFilename"
title
=
"la_fld_AutomaticFilename"
onchange
=
"reflect_filename()"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"Filename"
title
=
"la_fld_Filename"
size
=
"70"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_options"
prefix
=
"n"
field
=
"CategoryId"
title
=
"la_fld_ParentSection"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"subsection"
prefix
=
"n"
title
=
"la_section_Properties"
original_title
=
"la_section_OriginalValues"
display_original
=
"1"
/>
<
inp2:m_if
check
=
"n_DisplayOriginal"
display_original
=
"1"
>
<
inp2:m_if
check
=
"n_FieldVisible"
field
=
"Status"
>
<
tr
class
=
"<inp2:m_odd_even odd='edit-form-odd' even='edit-form-even'/>"
>
<
inp2:m_RenderElement
name
=
"inp_edit_field_caption"
prefix
=
"n"
field
=
"Status"
title
=
"!la_fld_Status!"
/>
<
td
class
=
"control-cell"
>
<
inp2:m_Phrase
label
=
"la_UseGridToApproveDecline"
/>
</
td
>
</
tr
>
</
inp2:m_if
>
<
inp2:m_else
/>
<
inp2:m_RenderElement
name
=
"inp_edit_radio"
prefix
=
"n"
field
=
"Status"
title
=
"!la_fld_Status!"
display_original
=
"1"
/>
</
inp2:m_if
>
<
inp2:m_RenderElement
name
=
"inp_edit_radio"
prefix
=
"n"
field
=
"NewItem"
title
=
"!la_fld_New!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_radio"
prefix
=
"n"
field
=
"HotItem"
title
=
"!la_fld_Hot!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_radio"
prefix
=
"n"
field
=
"PopItem"
title
=
"!la_fld_Pop!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_checkbox"
prefix
=
"n"
field
=
"EditorsPick"
title
=
"!la_fld_EditorsPick!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_checkbox"
prefix
=
"n"
field
=
"LeadStory"
title
=
"!la_fld_LeadStory!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_checkbox"
prefix
=
"n"
field
=
"LeadCatStory"
title
=
"!la_fld_LeadCatStory!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"Priority"
title
=
"!la_fld_Priority!"
size
=
"4"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_date_time"
prefix
=
"n"
field
=
"CreatedOn"
title
=
"!la_fld_CreatedOn!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_date_time"
prefix
=
"n"
field
=
"StartDate"
title
=
"!la_fld_StartDate!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_date_time"
prefix
=
"n"
field
=
"EndOn"
title
=
"!la_fld_EndOn!"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"MetaKeywords"
title
=
"!la_fld_MetaKeywords!"
size
=
"70"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_textarea"
prefix
=
"n"
field
=
"MetaDescription"
title
=
"!la_fld_MetaDescription!"
control_options
=
"{min_height: 100}"
cols
=
"70"
rows
=
"5"
/>
<
inp2:m_RenderElement
name
=
"subsection"
prefix
=
"n"
title
=
"la_section_Counters"
original_title
=
"la_section_OriginalValues"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"CachedRating"
title
=
"!la_fld_Rating!"
hint_label
=
"la_prompt_RatingLimits"
size
=
"4"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"CachedVotesQty"
title
=
"!la_fld_Votes!"
hint_label
=
"la_prompt_VoteLimits"
size
=
"4"
display_original
=
"1"
/>
<
inp2:m_RenderElement
name
=
"inp_edit_box"
prefix
=
"n"
field
=
"Hits"
title
=
"!la_fld_Hits!"
hint_label
=
"la_prompt_HitLimits"
size
=
"4"
display_original
=
"1"
/>
<
input
type
=
"hidden"
name
=
"Hits_original"
id
=
"Hits_original"
value
=
"<inp2:n_Field name="
Hits
"
db
=
"db"
/>
" />
<!-- custom fields: begin -->
<
inp2:m_include
t
=
"incs/custom_blocks"
/>
<
inp2:cf.general_PrintList
render_as
=
"cv_row_block"
SourcePrefix
=
"n"
value_field
=
"Value"
per_page
=
"-1"
grid
=
"Default"
original_title
=
"la_section_OriginalValues"
display_original
=
"1"
/>
<!-- custom fields: end -->
<
inp2:m_RenderElement
name
=
"inp_edit_filler"
/>
</
table
>
</
div
>
<
script
type
=
"text/javascript"
>
$
(
document
).
ready
(
reflect_filename
);
function
reflect_filename
()
{
var
$
checked
=
document
.
getElementById
(
'_cb_<inp2:n_InputName field="AutomaticFilename"/>'
).
checked
;
document
.
getElementById
(
'<inp2:n_InputName field="Filename"/>'
).
readOnly
=
$
checked
;
}
</
script
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment