cirandas.net

ref: master

app/views/features/index.html.erb


<%= _('System features') %>

<%= _('Enable/Disable features') %>

<%= _('Here you can enable or disable several features of your environment. Each feature represents some funcionality that your environment can use if you enable it. Check all the features you want to enable for your environment, uncheck all the ones you don\'t want, and use the "Save changes" button to confirm your changes.').html_safe %>

<%= labelled_form_for(:environment, :url => {:action => 'update'}) do |f| %> <%= hidden_field_tag('environment[enabled_features][]', '') %> <% @features.each do |feature, text| %> <% end %>
<%= _('Feature') %> <%= _('Enabled?') %>
<%= text %> <%= check_box_tag "environment[enabled_features][]", feature, @environment.enabled?(feature) %>

<%= _('Configure features') %>

<%= _('Page to redirect after signup') %>

<%= select 'environment', 'redirection_after_signup', Environment.signup_redirection_options.map{|key,value|[value,key]} %>

<%= _('Page to redirect after login') %>

<%= select 'environment', 'redirection_after_login', Environment.login_redirection_options.map{|key,value|[value,key]} %>

<%= _('Organization Approval Method') %>

<%= select_organization_approval_method('environment', 'organization_approval_method') %>

<%= _('Members Whitelist') %>

<%= check_box :environment, :members_whitelist_enabled %>
<%= _('Allow these people to access this environment:') %>
<% tokenized_members = prepare_to_token_input(environment.people.where(id: environment.members_whitelist)) %> <%= token_input_field_tag('environment[members_whitelist]', 'search-members', {:action => 'search_members'}, {:focus => false, :hint_text => _('Type in a search term for a user'), :pre_populate => tokenized_members}) %>

<%= _('Feed') %>

<%= check_box :environment, :enable_feed_proxy %>
<%= _('HTTP feed proxy address:') %>
<%= text_field :environment, :http_feed_proxy %>
<%= _('HTTPS feed proxy address:') %>
<%= text_field :environment, :https_feed_proxy %>
<%= check_box :environment, :disable_feed_ssl %>

<%= button_bar do %> <%= submit_button('save', _('Save changes')) %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> <% end %>
<% end %>