summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-10 10:38:48 +0100
committerAzul <azul@leap.se>2012-12-10 10:38:48 +0100
commite4c7f2fb8fa2833037508f1b88f802944855fd77 (patch)
tree0514506d3b64861b8a5877145e1a3212c76af4b9 /users/app/views
parent9d99d340cfd3c55f21d38c1ba9f3f4574e40c46c (diff)
actually allow adding email aliases
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