<p>
  <span class="label"><%= label_tag l('select_easy_page_module_project_info.label') -%></span>
  <span class="select"><%= select_tag "#{block_name}[action]", options_for_select([[l('select_easy_page_module_project_info.description'), 'description'], [l('select_easy_page_module_project_info.customfields'), 'customfields']], settings["action"]) -%></span>
  <span id="<%= "#{block_name}_group" %>">
    <span class="label"><%= label_tag l(:label_group_plural) -%></span>
    <span class="select"><%= select_tag "#{block_name}[group]", options_for_select(@easy_page_modules_data[block_name][:groups], settings["group"]) -%></span>
  </span>
</p>
<script>
    $("#<%= block_name %>_action").on("change", function(){
      var $group = $("#<%= "#{block_name}_group" %>");
        $group.toggle(this.value === "customfields");
  }).change();
</script>
