summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/users/_email_aliases.html.haml20
-rw-r--r--users/app/views/users/edit.html.haml2
2 files changed, 11 insertions, 11 deletions
diff --git a/users/app/views/users/_email_aliases.html.haml b/users/app/views/users/_email_aliases.html.haml
index 54eac0f..41d4f9e 100644
--- a/users/app/views/users/_email_aliases.html.haml
+++ b/users/app/views/users/_email_aliases.html.haml
@@ -1,10 +1,10 @@
-%legend= t(:email_aliases)
-%ul
- - @user.email_aliases.each do |email|
- %li= email
-= email_alias_form do |f|
- =f.input :email, :placeholder => "alias@#{request.domain}"
- .pull-right
- %button{:type => :submit, :class => 'btn'}
- %i.icon-plus
- Add Email Alias
+.span6
+ %ul.unstyled
+ - @user.email_aliases.each do |email_alias|
+ %li.pull-right
+ %code= email_alias.email
+ %i.icon-remove
+ .clearfix
+.clearfix
+= f.simple_fields_for :email_aliases, EmailAlias.new do |e|
+ = e.input :email, :placeholder => "alias@#{request.domain}"
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index eb1bca4..92ab71b 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -14,4 +14,4 @@
.tab-pane#email
= user_form_with 'email_field', :legend => :set_email_address
= user_form_with 'email_forward_field', :legend => :forward_email
- = render 'email_aliases'
+ = user_form_with 'email_aliases', :legend => :add_email_alias