blob: 1713266bf6b062ebfe67ae51795b2761ef1f4c04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<show-page>
<append-content:>
<form if="&this.editable_by?(current_user, :agenda) and this.agenda.nil?">
<input value="&Agenda.current.id" type="hidden" name="agenda_item[agenda_id]"/>
<submit label="Add to current agenda"/>
</form>
<form if="&this.editable_by?(current_user, :rejected)">
<input value="&!this.rejected?" type="hidden" name="agenda_item[rejected]"/>
<submit label="Reject" unless="&this.rejected"/>
<submit label="Un-reject" if="&this.rejected"/>
</form>
</append-content:>
<after-collection:>
<form if="&VotingOption.new.creatable_by?(current_user)" action="&create_voting_option_path">
<input id="voting_option_description" name="voting_option[description]" type="text"/>
<input id="voting_option_agenda_item_id" name="voting_option[agenda_item_id]" type="hidden" value="&this.id"/>
<after-submit stay-here/>
<submit label="Add a voting option"/>
</form>
</after-collection:>
</show-page>
|