| <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> |
| <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' |
| xmlns:g='urn:import:com.google.gwt.user.client.ui' |
| xmlns:a='urn:import:com.google.gwt.app.client' > |
| <ui:style> |
| .fields { |
| margin-top: 0.5em; |
| margin-left: 1em; |
| } |
| .label { |
| font-weight: bold; |
| min-height: 25px; |
| } |
| .button { |
| margin-right: 1em; |
| } |
| .bar { |
| margin-left: 1em; |
| } |
| .header { |
| margin-left: 1em; |
| color: #4B4A4A; |
| text-shadow: #ddf 1px 1px 0; |
| margin-bottom: 0; |
| } |
| .underline { |
| border-bottom: 2px solid #6F7277; |
| } |
| </ui:style> |
| |
| <g:HTMLPanel> |
| <div class='{style.underline}'> |
| <h3 class='{style.header}' ui:field='editTitle'> |
| <ui:msg>Employee <g:InlineLabel ui:field='id'></g:InlineLabel> (v<g:InlineLabel ui:field='version'/>)</ui:msg> |
| </h3> |
| <h3 class='{style.header}' ui:field='createTitle'><ui:msg>New Employee</ui:msg></h3> |
| </div> |
| <div ui:field='errors' style='background-color: red;'></div> |
| |
| <table class='{style.fields}'> |
| <tr><td><div class='{style.label}'>Display Name:</div></td><td><g:TextBox ui:field='displayName'></g:TextBox></td></tr> |
| <tr><td><div class='{style.label}'>User Name:</div></td><td><g:TextBox ui:field='userName'></g:TextBox></td></tr> |
| <tr><td><div class='{style.label}'>Supervisor:</div></td><td><g:ValueListBox ui:field='supervisor'></g:ValueListBox></td></tr> |
| <tr><td><div class='{style.label}'>Password:</div></td><td><g:PasswordTextBox ui:field='password'></g:PasswordTextBox></td></tr> |
| </table> |
| |
| <div class='{style.bar}'> |
| <g:Button addStyleNames='{style.button}' ui:field='save'>Save</g:Button> |
| <g:Button addStyleNames='{style.button}' ui:field='cancel'>Cancel</g:Button> |
| </div> |
| |
| </g:HTMLPanel> |
| </ui:UiBinder> |