Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1170155
polls.elm.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
Sat, Sep 27, 12:18 AM
Size
3 KB
Mime Type
text/html
Expires
Mon, Sep 29, 12:18 AM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
758239
Attached To
rTADV Themes.Advanced
polls.elm.tpl
View Options
<!-- POllS -->
<
inp2:poll_InitList
list_name
=
"list_polls"
per_page
=
"-1"
/>
<
inp2:m_Capture
to_var
=
"header"
>
<
inp2:m_phrase
name
=
"lu_title_Polls"
/>
</
inp2:m_Capture
>
<
inp2:m_DefineElement
name
=
"answer_element"
>
<
li
style
=
"margin-bottom:5px;"
>
<
input
type
=
"radio"
name
=
"poll_<inp2:Field name="
PollId
"
/>
" onclick="getElementById('selected_opt_
<
inp2:Field
name
=
"PollId"
/>
').value='
<
inp2:Field
name
=
"AnswerId"
/>
';getElementById('vote_button').disabled=false;">
<
inp2:Field
name
=
"Answer"
/>
</
li
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"poll_element"
>
<
div
style
=
"margin-bottom:25px;"
>
<
div
style
=
"text-align:left;"
>
<
strong
><
inp2:Field
name
=
"Question"
/></
strong
>
</
div
>
<
inp2:m_if
check
=
"Field"
name
=
"Image"
>
<
br
/>
<
a
href
=
"<inp2:Field name='Image' format='resize:640x480'/>"
class
=
"form-manager-window"
title
=
"<inp2:Field field='Question'/>"
>
<
img
src
=
"<inp2:Field name='Image' format='resize:100x100'/>"
border
=
"0"
alt
=
"<inp2:Field field='Question'/>"
>
</
a
>
</
inp2:m_if
>
<
div
id
=
"pollvote_<inp2:Field name="
PollId
"
/>
" style="text-align:left; margin-top:10px; margin-bottom:10px">
<
inp2:m_if
check
=
"Field"
name
=
"RequireLogin"
db
=
"1"
>
<
inp2:m_include
t
=
"in-bulletin/elements/side_boxes/poll_results.elm"
/>
<
div
style
=
"padding-top:5px; font-style: italic; font-weight: bold; text-align: center"
>
<
inp2:m_phrase
name
=
"lu_text_GuestsLoginToVote"
/>
</
div
>
<
inp2:m_else
/>
<
inp2:m_if
check
=
"HasVoted"
>
<
inp2:m_include
t
=
"in-bulletin/elements/side_boxes/poll_results.elm"
/>
<
div
style
=
"padding-top:5px; font-style: italic; font-weight: bold; text-align: center"
>
<
inp2:m_phrase
name
=
"lu_text_AlreadyVoted"
/>
</
div
>
<
inp2:m_else
/>
<
ul
style
=
"list-style-type: none; padding-left: 0px;"
><
inp2:Field
name
=
"PollId"
result_to_var
=
"poll_id"
/>
<
inp2:poll-answer_PrintList
list_name
=
"list_answers"
render_as
=
"answer_element"
direction
=
"H"
poll_id
=
"
$
poll_id"
requery
=
"1"
/>
</
ul
>
<
div
style
=
"text-align: center; margin-top:8px; "
>
<
input
type
=
"hidden"
id
=
"selected_opt_<inp2:Field name="
PollId
"
/>
" name="selected_opt_
<
inp2:Field
name
=
"PollId"
/>
"/>
<
input
class
=
"button"
type
=
"button"
id
=
"vote_button"
disabled
onclick
=
"aPollManager.makeVote('poll', <inp2:Field name="
PollId
"
/>
, getElementById('selected_opt_
<
inp2:Field
name
=
"PollId"
/>
').value); return false;" value="
<
inp2:m_Phrase
label
=
"lu_btn_Vote"
no_editing
=
"1"
/>
"/>
</
div
>
</
inp2:m_if
>
</
inp2:m_if
>
</
div
>
<!--## USER COMMENTS ##-->
<
inp2:m_if
check
=
"Field"
name
=
"AllowComments"
>
<
div
style
=
"text-align:center;"
>
<
inp2:m_ifnot
check
=
"HasCommented"
>
<
a
href
=
"<inp2:CommentsLink t='in-bulletin/elements/content_boxes/add_poll_comment.elm' height='480' width='480'/>"
title
=
"<inp2:Field name='Question'/>"
class
=
"form-manager-window"
/><
inp2:m_phrase
name
=
"lu_title_AddComment"
/></
a
><
br
>
</
inp2:m_ifnot
>
<
a
href
=
"<inp2:CommentsLink t='in-bulletin/elements/content_boxes/poll_comments.elm' height='480' width='480'/>"
title
=
"<inp2:Field name='Question'/>"
class
=
"form-manager-window"
/><
inp2:m_phrase
name
=
"lu_title_ViewComments"
/></
a
>
</
div
>
</
inp2:m_if
>
<!--## //USER COMMENTS ##-->
</
div
>
</
inp2:m_DefineElement
>
<
div
style
=
"width:100%; text-align:center;"
>
<
inp2:poll_PrintList
list_name
=
"list_polls"
render_as
=
"poll_element"
direction
=
"H"
/>
</
div
>
<!-- //POllS -->
Event Timeline
Log In to Comment