<%
  buttons = page_module.settings['easy_query_end_buttons']
  buttons ||= ['favorite', 'preview', 'edit']
%>

<fieldset>
  <legend><%= l(:legend_easy_query_end_buttons_chooser) %></legend>

  <p class="checkbox">
    <%= hidden_field_tag "#{block_name}[easy_query_end_buttons][]", '' %>

    <%= check_box_tag("#{block_name}[easy_query_end_buttons][]", 'favorite', buttons.include?('favorite'), id: "#{block_name}_easy_query_end_buttons_favorite") %>
    <%= label_tag("#{block_name}_easy_query_end_buttons_favorite", l(:field_favorited)) %>

    <%= check_box_tag("#{block_name}[easy_query_end_buttons][]", 'preview', buttons.include?('preview'), id: "#{block_name}_easy_query_end_buttons_preview") %>
    <%= label_tag("#{block_name}_easy_query_end_buttons_preview", l(:label_preview)) %>

    <%= check_box_tag("#{block_name}[easy_query_end_buttons][]", 'edit', buttons.include?('edit'), id: "#{block_name}_easy_query_end_buttons_edit") %>
    <%= label_tag("#{block_name}_easy_query_end_buttons_edit", l(:button_edit)) %>

    <%= check_box_tag("#{block_name}[easy_query_end_buttons][]", 'iam_on_it', buttons.include?('iam_on_it'), id: "#{block_name}_easy_query_end_buttons_iam_on_it") %>
    <%= label_tag("#{block_name}_easy_query_end_buttons_iam_on_it", l(:button_easy_issue_timer_play)) %>
  </p>
</fieldset>
