ref: master
app/views/admin_panel/_site_info.html.erb
<%= required labelled_form_field(_('Site name'), text_field(:environment, :name)) %> <%= labelled_form_field(_('Contact email'), text_field(:environment, :contact_email)) %> <%= labelled_form_field(_('No reply email'), text_field(:environment, :noreply_email)) %> <% themes_options = Theme.system_themes.map {|theme| [theme.name, theme.id] }.sort %> <%= labelled_form_field(_('Theme'), select(:environment, :theme, options_for_select(themes_options, environment.theme))) %> <%= labelled_form_field( _("Article's date format"), select(:environment, :date_format, options_for_select([ [ _('mm/dd/yyyy'), 'numbers_with_year'], [ _('mm/dd'), 'numbers'], [ _('Month dd, yyyy'), 'month_name_with_year'], [ _('Month dd'), 'month_name'], [ _('X minutes/hours/days/months/years ago'), 'past_time'] ], environment.date_format ) ) ) %> <%= required f.text_field(:reports_lower_bound, :size => 3) %> <%= labelled_form_field(_('Default language'), select(:environment, :default_language, environment.locales.invert, { :selected => environment.default_locale, :include_blank => true })) %> <%= label_tag :languages, _('Available languages') %>
<% fields = Noosfero.locales.map do |value, name| labelled_check_box(name, "environment[languages][#{value}]", true, environment.available_locales.include?(value)) end %> <%= balanced_table(fields)%>
<%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%', :class => current_editor) %>