diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee
index 7ff7175a7..09aaab3d1 100644
--- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee
+++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee
@@ -1593,4 +1593,16 @@ class mergeCustomerRef extends App.ControllerContent
App.Config.set( 'layout_ref/merge_customer', mergeCustomerRef, 'Routes' )
+class PrimaryEmailRef extends App.ControllerContent
+
+ constructor: ->
+ super
+ @render()
+
+ render: ->
+ @html App.view('layout_ref/primary_email')
+
+App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, 'Routes' )
+
+
App.Config.set( 'LayoutRef', { prio: 1700, parent: '#current_user', name: 'Layout Reference', translate: true, target: '#layout_ref', role: [ 'Admin' ] }, 'NavBarRight' )
\ No newline at end of file
diff --git a/app/assets/javascripts/app/views/layout_ref/index.jst.eco b/app/assets/javascripts/app/views/layout_ref/index.jst.eco
index 16801a592..728954e10 100644
--- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco
+++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco
@@ -4,6 +4,7 @@
+ - Primary Email (New/Edit User)
- Merge Customer
- ✏ Inputs
- 👇 All the Buttons
diff --git a/app/assets/javascripts/app/views/layout_ref/primary_email.jst.eco b/app/assets/javascripts/app/views/layout_ref/primary_email.jst.eco
new file mode 100644
index 000000000..10b577b84
--- /dev/null
+++ b/app/assets/javascripts/app/views/layout_ref/primary_email.jst.eco
@@ -0,0 +1,450 @@
+
\ No newline at end of file
diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss
index dfcaa316d..c71cb1180 100644
--- a/app/assets/stylesheets/zammad.css.scss
+++ b/app/assets/stylesheets/zammad.css.scss
@@ -955,6 +955,15 @@ fieldset > *:not(.form-group) .form-control {
.bookmark.icon {
margin-bottom: -1px;
}
+
+ .formGroup-metaControl {
+ @extend .u-clickable;
+ padding: 6px 4px;
+ margin: -6px 0 -6px auto;
+ font-size: 20px;
+ line-height: 1;
+ color: hsl(198, 19%, 72%);
+ }
}
.formGroup-bookmark {
@@ -1186,7 +1195,47 @@ input.time.time--12 {
display: flex;
align-items: center;
}
+ }
+ .controls--emailSwitch {
+ display: flex;
+
+ .form-control {
+ flex: 1;
+ border-right: none;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+
+ &:focus + .primary-email-switch-holder {
+ label {
+ border-color: hsl(200,71%,59%);
+ }
+
+ /*
+
+ fake the form-control outline
+
+ */
+ &:before {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: -3px;
+ right: -3px;
+ bottom: -3px;
+ background: hsl(201,62%,90%);
+ border-radius: 0 7px 7px 0;
+ }
+ }
+ }
+
+ .primary-email-switch-holder label {
+ padding: 0 9px;
+ background: white;
+ position: relative;
+ border: 1px solid hsl(0, 0%, 90%);
+ border-radius: 0 3px 3px 0;
+ }
}
.searchfield {