<%
  project, projects = @easy_page_modules_data[block_name][:project], @easy_page_modules_data[block_name][:projects]
%>
<div class="tabular">
  <p>
    <%= hidden_field_tag "#{block_name}[only_me]", '0', :id => '' %>
    <%= check_box_tag "#{block_name}[only_me]", '1', settings['only_me'] == '1' %>
    <%= label_tag "#{block_name}[only_me]", l(:label_personal_easy_agile_board_only_me) %>
  </p>
  <p>
    <%= label_tag "#{block_name}[heading]", l(:label_personal_easy_agile_board_heading) %>
    <%= text_field_tag "#{block_name}[heading]", settings['heading'].to_s %>
  </p>
  <% unless project %>
  <p>
    <%= label_tag "#{block_name}[project_id]", l(:field_project) %>
    <%= select_tag "#{block_name}[project_id]", options_for_select(projects.pluck(:name, :id), settings['project_id'].to_i), {:include_blank => false, :label => l(:label_project)} %>
  </p>
  <% end %>
</div>
