Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{ form_start(form, { 'attr': {'id': 'test'}}) }}
- {{ form_label(form.translations, null, {'label': 'Jauns stāsts'}) }}
- {{ form_widget(form.translations) }}
- {{ form_errors(form.translations) }}
- {{ form_widget(form.Submit, { 'label': 'Saglabāt', 'attr': {'class': 'btn martinmajas-submit'}}) }}
- {# #}
- {{ form_end(form) }}
- <div id="testdivs"></div>
- <a id="testsubm" class="btn martinmajas-submit" href="#">Saglabāt!</a>
- {#
- { username: $(this).name.value,
- password: $(this).password.value }
- #}
- <script>
- $( document ).ready(function() {
- console.log( "ready!" );
- });
- $('#testsubm').click(function(e) {
- console.log('sadfasdfsadfsadf');
- $('#testsubm').preventDefault();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement