mailr/app/views/user/setup.html.haml

21 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-03-10 21:03:56 +01:00
- content_for :title do
\-
= t(:setup,:scope=>:user)
2012-03-24 13:23:34 +01:00
%div{:class=>"alert alert-info"}
= t(:no_config,:scope=>:user)
2012-03-10 21:03:56 +01:00
%form{:class=>"form-horizontal top-pix18",:action=>"#{url_for(:controller => 'user', :action => 'create')}",:method=>"post"}
%legend
= t(:setup,:scope=>:user)
%fieldset
2012-03-24 13:23:34 +01:00
= render :partial => "common/input_form_desc_field",:locals => {:object => @user,:attr => 'login',:label => nil,:example => 'joe.doe',:value => params[:user] ? params[:user][:login] : "" }
= render :partial => "common/input_form_desc_field",:locals => {:object => @user,:attr => 'first_name',:label => nil,:example => 'Joe',:value => params[:user] ? params[:user][:first_name] : ""}
= render :partial => "common/input_form_desc_field",:locals => {:object => @user,:attr => 'last_name',:label => nil,:example => 'Doe',:value => params[:user] ? params[:user][:last_name] : ""}
= render :partial => "common/input_form_desc_field",:locals => {:object => @server,:attr => 'name',:label => nil,:example => 'server.domain',:value => params[:server] ? params[:server][:name] : ""}
2012-03-24 18:09:31 +01:00
.control-group
.controls
= render :partial => "common/button",:locals => { :name=>'send',
:caption => t(:send_config,:scope=>:user),
:icon =>'icon-ok icon-white'}
%hr/