Skip to content

Instantly share code, notes, and snippets.

@inossidabile
Last active December 25, 2015 08:29
Show Gist options
  • Save inossidabile/6947588 to your computer and use it in GitHub Desktop.
Save inossidabile/6947588 to your computer and use it in GitHub Desktop.
%section
%form#new_url.form-horizontal{:role => 'form'}
%div.form-group
%label.col-lg-2.control-label{:for => 'urlAddress'} Адресс
%div.col-lg-10
%input#urlAddress.form-control{:placeholder => 'Введите адресс ссылки'}
%div.form-group
%label.col-lg-2.control-label{:for => 'comment'} Комментарий
%div.col-lg-10
%textarea.col-lg-10#comment.form-control{:placeholder => 'Введите комментарий'}
%div.form-group
%button.btn.btn-default Добавить ссылку
Joosy.namespace 'Urls', ->
class @NewPage extends ApplicationPage
@layout ApplicationLayout
@view 'new'
@mapElements
'form': '#new_url'
@mapEvents
'submit $form': ($element, event) ->
event.preventDefault()
console.log($element)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment