ContactView.mxml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:VBox
  3. xmlns:mx="http://www.adobe.com/2006/mxml"
  4. xmlns:helpers="com.imt.intimamedia.helpers.*"
  5. label="{resourceManager.getString('labels', 'contact')}"
  6. horizontalAlign="left" verticalAlign="top"
  7. verticalScrollPolicy="auto" horizontalScrollPolicy="off"
  8. creationComplete="initListeners()"
  9. paddingTop="10" paddingLeft="50" paddingRight="10">
  10. <mx:Script source="../../../scripts/general/home/contactView.as" />
  11. <mx:EmailValidator id="mailValidator" source="{mailTextInput}" property="text" trigger="{mailTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
  12. <mx:StringValidator id="lastNameValidator" source="{lastNameTextInput}" property="text" trigger="{lastNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
  13. <mx:StringValidator id="firstNameValidator" source="{firstNameTextInput}" property="text" trigger="{firstNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
  14. <!--mx:StringValidator id="phoneValidator" source="{phoneTextInput}" property="text" trigger="{phoneTextInput}" triggerEvent="focusOut" /-->
  15. <mx:StringValidator id="organizationValidator" source="{organizationTextInput}" property="text" trigger="{organizationTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
  16. <mx:StringValidator id="messageValidator" source="{formMessageTextInput}" property="text" trigger="{formMessageTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
  17. <mx:HBox width="100%" horizontalAlign="middle" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  18. <mx:VBox width="30%" paddingTop="65" height="270" styleName="containerRedContent" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  19. <mx:Label visible="false" includeInLayout="false" text="{resourceManager.getString( 'labels', 'title.businessService' )}" styleName="titleContactPanel" />
  20. <mx:Label visible="false" includeInLayout="false" text="{resourceManager.getString( 'labels', 'phone.businessService' )}" styleName="redText" />
  21. </mx:VBox>
  22. <mx:VBox id="formContact" paddingTop="5" label="{resourceManager.getString('labels', 'formContact')}" width="45%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  23. <mx:Canvas styleName="containerRedCompact" height="475" width="100%">
  24. <mx:Image source="@Embed('images/general/leftTitle.png')" />
  25. <mx:Label text="{resourceManager.getString( 'labels', 'formContact' )}" styleName="titlePanel" hideEffect="Fade" showEffect="Fade" />
  26. <mx:VBox styleName="contactContainerRedContent" horizontalAlign="left" height="400" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  27. <mx:FormItem required="true" label="{resourceManager.getString('labels', 'lastName')}" paddingTop="5" width="80%" labelWidth="140">
  28. <helpers:TextInputWithSkin id="lastNameTextInput" maxChars="49" tabIndex="1" width="70%" styleName="textInput" />
  29. </mx:FormItem>
  30. <mx:FormItem required="true" label="{resourceManager.getString('labels', 'firstName')}" paddingTop="5" width="80%" labelWidth="140">
  31. <helpers:TextInputWithSkin id="firstNameTextInput" maxChars="49" tabIndex="2" width="70%" styleName="textInput" />
  32. </mx:FormItem>
  33. <mx:FormItem required="true" label="{resourceManager.getString('labels', 'organization')}" paddingTop="5" width="80%" labelWidth="140">
  34. <helpers:TextInputWithSkin id="organizationTextInput" maxChars="49" tabIndex="3" width="70%" styleName="textInput" />
  35. </mx:FormItem>
  36. <mx:FormItem required="true" label="{resourceManager.getString('labels', 'email')}" paddingTop="5" labelWidth="140" width="80%">
  37. <helpers:TextInputWithSkin id="mailTextInput" maxChars="49" tabIndex="4" restrict="A-Z a-z\\0-9\\@\\.\\_\-\\" width="70%" styleName="textInput" />
  38. </mx:FormItem>
  39. <mx:FormItem required="false" label="{resourceManager.getString('labels', 'phone')}" paddingTop="5" width="80%" labelWidth="140">
  40. <helpers:TextInputWithSkin id="phoneTextInput" tabIndex="5" maxChars="14" width="70%" styleName="textInput" />
  41. </mx:FormItem>
  42. <mx:FormItem required="true" label="{resourceManager.getString('labels', 'formMessage')}" paddingTop="5" width="80%" labelWidth="140">
  43. <helpers:TextAreaWithSkin id="formMessageTextInput" maxChars="500" tabIndex="6" width="70%" height="150" styleName="textInput" />
  44. </mx:FormItem>
  45. <mx:VBox width="100%" paddingTop="20" horizontalAlign="center">
  46. <mx:Button id="sendButton" label="{resourceManager.getString('labels', 'sendForm')}" width="120" click="onPost(event)" buttonMode="true" useHandCursor="true"/>
  47. </mx:VBox>
  48. </mx:VBox>
  49. </mx:Canvas>
  50. </mx:VBox>
  51. </mx:HBox>
  52. </mx:VBox>