cirandas.net

ref: master

app/views/profile_editor/_person.html.erb


<%= _('Personal information') %>

<%= required_fields_message %>
<%= required f.text_field(:name) %>
<%= unchangeable_privacy_field @profile %>
<%= required f.text_field(:email) %>
<%= profile_field_privacy_selector @profile, 'email' %>
<%= render :partial => 'shared/profile_kinds', :locals => {:form_field => 'profile_data'} %> <%= render :partial => 'change_identifier', :locals => {feature_name: :enable_profile_url_change} %> <%= select_editor(_('Editor'), 'profile_data', 'editor', {}) %> <%= safe_join(@plugins.dispatch(:profile_info_extra_contents).collect { |content| instance_exec(&content) }, "") %>
<%= label_tag("private_token", _("Private Token")) %>
<%= text_field_tag("a", @profile.user.private_token, :size => 30) %>
<%= link_to("Reset token", {:controller => :profile_editor, :action => :reset_private_token, :id => @profile.id}, :class => "button with-text") %> <%= render :partial => 'person_form', :locals => {:f => f, :editing_profile => true} %> <%= render :partial => 'shared/custom_fields', :locals => {:f => f, :profile => @profile, :editing_profile => true} %>

<%= _('Notification options') %>

<%= select_tag 'profile_data[notification_time]', options_for_select([[_('Disabled'), 0], [_('Hourly'), 1], [_('Half Day'), 12], [_('Daily'), 24]], @profile.notification_time) %>