diff options
author | azul <azul@riseup.net> | 2013-12-09 10:14:17 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-12-09 10:14:17 -0800 |
commit | 0f2e1316894cdffac47448b6ddbf2cfaf5f93a55 (patch) | |
tree | ae2577c3584e66ffa2937ad9807e32cc6ff49db3 /users/app/views | |
parent | e7e5dac36127a36cac9ed35054767d04b2e5ae17 (diff) | |
parent | 6ebf095bc553345a3e0b8c48cadc3e1440c59ca5 (diff) |
Merge pull request #119 from jessib/feature/service_level
Feature/service level
Diffstat (limited to 'users/app/views')
-rw-r--r-- | users/app/views/users/_edit.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/users/app/views/users/_edit.html.haml b/users/app/views/users/_edit.html.haml index b86172e..0b36d6e 100644 --- a/users/app/views/users/_edit.html.haml +++ b/users/app/views/users/_edit.html.haml @@ -37,6 +37,25 @@ .controls = f.submit t(:save), :class => 'btn', :data => {"loading-text" => "Saving..."} + +-# 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.authenticated_select_options, :selected => @user.desired_service_level.id + - if @user != current_user + %p + = t(:effective_service_level) + = f.select :effective_service_level_code, ServiceLevel.authenticated_select_options, :selected => @user.effective_service_level.id + .control-group + .controls + = f.submit t(:save), :class => 'btn', :data => {"loading-text" => "Saving..."} -# -# DESTROY ACCOUNT -# |