% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "validator" %> <% end %>
| <%= t('act.field_name') %> | <% @site_in_use_locales.each do |locale| %><%= t('act.field_label') %> (<%= t(locale.to_s) %>) | <% end %><%= t('act.field_enabled') %> | <%= t('act.required') %> |
|---|---|---|---|
| <%= t("act.has_#{key}") %> | <% @site_in_use_locales.each do |locale| %><%= f.fields_for "signup_label_#{key}_translations" do |lf| %> <%= lf.text_field locale, value: (@act.send("signup_label_#{key}_translations")[locale.to_s].presence || I18n.with_locale(locale){ I18n.t("act_signup.#{key}") }), placeholder: I18n.with_locale(locale){ I18n.t("act_signup.#{key}") }, class: "input-medium" %> <% end %> | <% end %><%= f.check_box enabled_field, class: "act-enabler", data: { target: "required_#{key}" } %> | > |
<%= hidden_field_tag 'act_link_field_count', @act.act_links.count %> <%= t(:add) %>
<%= hidden_field_tag 'act_file_field_count', @act.act_files.count %> <%= t(:add) %>