aboutsummaryrefslogtreecommitdiff
blob: b0b425dd9a05c4fe2652a42d9a17d6ad1a71431d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<show-page>
  <append-content-body:>
    <div>
    <span class="one-button-form">
    <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>
    </span>

    <span class="one-button-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>
    </span>
    </div>
  </append-content-body:>

  <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>