Advertisement
djuro95

flashMassage

Mar 15th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. Homepage/AmbassadorController
  2.  
  3. $this->addFlash('success', $this->get('translator')->trans('register.flush.success', [], 'user'));
  4.  
  5.  
  6. ------------------------------------------------------------
  7. Form/Homepage/AmbassadorType
  8.  
  9.  
  10.  
  11.  
  12. <div class="col-md-7">
  13. <p class="txt-bold text-secondary mb-4"> Apply today to become an influence vision ambassador</p>
  14.  
  15.  
  16. {% if app.session.flashbag.peekAll|length > 0 %}
  17. {% for type, messages in app.session.flashbag.all %}
  18. {% for message in messages %}
  19. {% if type == 'success' %}
  20.  
  21. <div class="alert alert-success mt-4">
  22. {{ 'register.flush.success' | trans({}, 'user') | raw }}
  23. </div>
  24.  
  25. {% include ':seo/tracking:_registration_ambassador.html.twig' %}
  26.  
  27.  
  28. {% endif %}
  29. {% endfor %}
  30. {% endfor %}
  31. {% endif %}
  32.  
  33.  
  34. {{ form_start(form) }}
  35. <div class="form-group">
  36. <p class="txt-bold"><label for="name"> First Name </label></p>
  37. {{ form_row(form.name) }}
  38. </div>
  39. <div class="form- mt-4">
  40. <p class="txt-bold"><label for="email">E-mail</label></p>
  41. {{ form_row(form.email) }}
  42. </div>
  43. <div class="form-group mt-4">
  44. <p class="txt-bold"><label for="exampleInputPassword1">Country</label></p>
  45. {{ form_row(form.country) }}
  46. </div>
  47. <div class="form-check">
  48. <input type="checkbox" class="form-check-input terms-checkbox" id="exampleCheck1">
  49. <p><label class="form-check-label" for="exampleCheck1"> By submitting, entrants agree they are
  50. over the
  51. age of 13 and agree with our <a href='{{ path('homepage_agb') }}'
  52. class="text-secondary underline-thin"> Terms and
  53. Conditions </a> </label></p>
  54. </div>
  55. <input type="submit" class="btn px-6 btn-secondary btn-sm btn-round mt-4" value="Submit"/>
  56. {{ form_end(form) }}
  57. </div>
  58. </div>
  59.  
  60.  
  61. --------------------
  62. translatio
  63. Resourse/translations/users/user.en
  64.  
  65. register:
  66. flush:
  67. success: 'You are successfully registered! <br> Please log in...'
  68. email_exists: Email already in use!
  69. error: Something went wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement