message.component.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <div id='message_cover' onClick='closeMessage();'></div>
  2. <section id='message'>
  3. <h3>
  4. <span>{{'MESSAGE.TITLE' | translate}}</span>
  5. <div id='message_close'>
  6. <a onClick='closeMessage();'>
  7. <img src='./img/control/close.svg'/>
  8. </a>
  9. </div>
  10. </h3>
  11. <div id='message_form'>
  12. <p>{{'MESSAGE.INFO' | translate}}</p>
  13. <form #messageForm='ngForm' (ngSubmit)='onSubmit(messageForm)'>
  14. <div>
  15. <label for='name'>{{'MESSAGE.LABEL.NAME' | translate}}</label>
  16. <input type='text' name='name' ngModel required/>
  17. </div>
  18. <div>
  19. <span id='error_name' class='error'>{{'MESSAGE.ERROR.NAME' | translate}}</span>
  20. </div>
  21. <div>
  22. <label for='email'>{{'MESSAGE.LABEL.EMAIL' | translate}}</label>
  23. <input type='text' name='email' ngModel required/>
  24. </div>
  25. <div>
  26. <span id='error_email' class='error'>{{'MESSAGE.ERROR.EMAIL' | translate}}</span>
  27. </div>
  28. <div>
  29. <label for='email'>{{'MESSAGE.LABEL.SUBJECT' | translate}}</label>
  30. <input type='text' name='subject' ngModel required/>
  31. </div>
  32. <div>
  33. <span id='error_subject' class='error'>{{'MESSAGE.ERROR.SUBJECT' | translate}}</span>
  34. </div>
  35. <div>
  36. <label for='message'>{{'MESSAGE.LABEL.MESSAGE' | translate}}</label>
  37. <span id='error_message' class='error'>{{'MESSAGE.ERROR.MESSAGE' | translate}}</span>
  38. <textarea placeholder='Your message' name='text' ngModel required></textarea>
  39. </div>
  40. <div>
  41. <input type='checkbox' name='consent' ngModel required/>
  42. <label for='consent' class='long'>{{'MESSAGE.LABEL.CONSENT' | translate}}</label>
  43. </div>
  44. <div>
  45. <span id='error_consent' class='error'>{{'MESSAGE.ERROR.CONSENT' | translate}}.</span>
  46. </div>
  47. <div><input type='submit' value="{{'MESSAGE.SEND' | translate}}"/></div>
  48. </form>
  49. </div>
  50. <div id='message_confirmation'>
  51. <h4>{{'MESSAGE.SENT' | translate}}</h4>
  52. <p>{{'MESSAGE.SUCCESS' | translate}}</p>
  53. <input type='button' onclick='closeMessage();' value="{{'CLOSE' | translate}}"/>
  54. </div>
  55. </section>