summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-09 13:19:54 +0100
committerAzul <azul@leap.se>2012-12-09 13:19:54 +0100
commit9d99d340cfd3c55f21d38c1ba9f3f4574e40c46c (patch)
tree702e054dd3ba027795cd57ff980311a52a575016 /users/app/views
parent4dffda05477f74c90197948bb6f13bedc8b2a19f (diff)
basic form added to user settings, simple model created
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/users/_email_aliases.html.haml10
-rw-r--r--users/app/views/users/edit.html.haml1
2 files changed, 11 insertions, 0 deletions
diff --git a/users/app/views/users/_email_aliases.html.haml b/users/app/views/users/_email_aliases.html.haml
new file mode 100644
index 0000000..54eac0f
--- /dev/null
+++ b/users/app/views/users/_email_aliases.html.haml
@@ -0,0 +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
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index b33c19b..eb1bca4 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -14,3 +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'