summaryrefslogtreecommitdiff
path: root/app/views/users/_change_service_level.html.haml
blob: 42315a2afd45b79385213041aba76070e30a3653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-# TODO: probably won't want here, but here for now. Also, we will need way to ensure payment if they pick a non-free plan.
-#
-# SERVICE LEVEL
-#
- if APP_CONFIG[:service_levels]
  - form_options = {:html => {:class => user_form_class('form-horizontal'), :id => 'update_service_level', :data => {token: session[:token]}}, :validate => true}
  = simple_form_for @user, form_options do |f|
    %legend= t(:service_level)
    - if @user != current_user
      = t(:desired_service_level)
    = f.select :desired_service_level_code, ServiceLevel.select_options, :selected => @user.desired_service_level.id
    - if @user != current_user
      %p
      = t(:effective_service_level)
      = f.select :effective_service_level_code, ServiceLevel.select_options, :selected => @user.effective_service_level.id
    .control-group
      .controls
        = f.submit t(:save), :class => 'btn', :data => {"loading-text" => "Saving..."}