Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Homepage/AmbassadorController
- $this->addFlash('success', $this->get('translator')->trans('register.flush.success', [], 'user'));
- ------------------------------------------------------------
- Form/Homepage/AmbassadorType
- <div class="col-md-7">
- <p class="txt-bold text-secondary mb-4"> Apply today to become an influence vision ambassador</p>
- {% if app.session.flashbag.peekAll|length > 0 %}
- {% for type, messages in app.session.flashbag.all %}
- {% for message in messages %}
- {% if type == 'success' %}
- <div class="alert alert-success mt-4">
- {{ 'register.flush.success' | trans({}, 'user') | raw }}
- </div>
- {% include ':seo/tracking:_registration_ambassador.html.twig' %}
- {% endif %}
- {% endfor %}
- {% endfor %}
- {% endif %}
- {{ form_start(form) }}
- <div class="form-group">
- <p class="txt-bold"><label for="name"> First Name </label></p>
- {{ form_row(form.name) }}
- </div>
- <div class="form- mt-4">
- <p class="txt-bold"><label for="email">E-mail</label></p>
- {{ form_row(form.email) }}
- </div>
- <div class="form-group mt-4">
- <p class="txt-bold"><label for="exampleInputPassword1">Country</label></p>
- {{ form_row(form.country) }}
- </div>
- <div class="form-check">
- <input type="checkbox" class="form-check-input terms-checkbox" id="exampleCheck1">
- <p><label class="form-check-label" for="exampleCheck1"> By submitting, entrants agree they are
- over the
- age of 13 and agree with our <a href='{{ path('homepage_agb') }}'
- class="text-secondary underline-thin"> Terms and
- Conditions </a> </label></p>
- </div>
- <input type="submit" class="btn px-6 btn-secondary btn-sm btn-round mt-4" value="Submit"/>
- {{ form_end(form) }}
- </div>
- </div>
- --------------------
- translatio
- Resourse/translations/users/user.en
- register:
- flush:
- success: 'You are successfully registered! <br> Please log in...'
- email_exists: Email already in use!
- error: Something went wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement