%inherit file="/template.html" />
<%namespace name="components" file="/components.html"/>
<%namespace name="sidebar_defs" file="/sidebar.html"/>
<%namespace name="comment_tiles" file="/comment/tiles.html"/>
<%namespace name="state" file="/poll/state.html"/>
<%def name="title()">${c.proposal.title|n}%def>
<%def name="breadcrumbs()">${h.proposal.breadcrumbs(c.proposal)|n}%def>
<%block name="admin_controls">
<%components:admin_controls>
## FIXME: Reenable for adopt poll
##%if can.proposal.adopt(proposal):
##${_("call a vote")}
##%endif
%if h.config.get_bool('adhocracy.proposal.split_badge_edit'):
%if can.proposal.edit_badges(c.proposal):
${_("Edit Badges")}
%endif
%endif
%if can.proposal.delete(c.proposal):
${_("delete")}
%endif
%components:admin_controls>
%block>
<%block name="main_content">
<%
url = h.base_url('/delegation/new?scope=%s' % str(c.proposal.id))
delegate_url = url if can.delegation.create(c.proposal) else None
%>
%if not c.proposal.is_adopt_polling() and c.proposal.rate_poll is not None:
${tiles.poll.widget(c.proposal.rate_poll, cls='big', delegate_url=delegate_url)}
%endif
%if c.proposal.is_adopt_polling():
${tiles.poll.widget(c.proposal.adopt_poll, cls='big', delegate_url=delegate_url)}
%endif
${h.delegateable.link(c.proposal, link=False)|n}
${_('Comments') if h.comment.wording() else _('Discussions')}
## comments are attached to the description which is a
## :class:`adhocracy.model.Page`
## proposal descriptions have no other variant than head.
${tiles.comment.list(c.proposal.description,
variant=c.proposal.description.head.variant)}
${_("Proposed Implementations")}
%for selection in c.sorted_selections:
<% h.need.adhocracy_ko %>
${tiles.selection.row(selection)}
%endfor
<%doc> FIXME: Enable change existing norm option
%if norm.can.create
${_("propose new norm")}
%endif
%doc>
${_('tutorial_proposal_show_vote')}
${_('tutorial_proposal_show_follow')}
${_('tutorial_proposal_show_information')}
${_('tutorial_proposal_show_tags')}
${_('tutorial_proposal_show_share')}
${_('tutorial_proposal_show_vote_comment')}
${_('tutorial_proposal_show_answers')}
${_('tutorial_proposal_show_answer')}
${_('tutorial_proposal_show_new_discussion')}
${_('tutorial_proposal_show_propose_variant')}