You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/28 19:30:10 UTC

[whimsy] branch master updated: Show common name and family name

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new f223566  Show common name and family name
f223566 is described below

commit f223566739d8af5e51f3a708f2941996131991bf
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jul 28 20:30:08 2018 +0100

    Show common name and family name
---
 www/roster/views/person/fullname.js.rb | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/www/roster/views/person/fullname.js.rb b/www/roster/views/person/fullname.js.rb
index 81e59b4..b992034 100644
--- a/www/roster/views/person/fullname.js.rb
+++ b/www/roster/views/person/fullname.js.rb
@@ -28,11 +28,23 @@ class PersonName < Vue
             end
 
             _div do
+              _label 'common name', for: 'commonname'
+              _input.commonname! name: 'commonname', required: true,
+                value: name.ldap
+            end
+
+            _div do
               _label 'given name', for: 'givenname'
               _input.legalname! name: 'givenname', required: true,
                 value: name.given_name
             end
 
+            _div do
+              _label 'family name', for: 'familyname'
+              _input.familyname! name: 'familyname', required: true,
+                value: name.family_name
+            end
+
             _button.btn.btn_primary 'submit'
           end