Created
July 8, 2014 18:25
-
-
Save guilhermecarvalhocarneiro/955d467fefa8133c50b7 to your computer and use it in GitHub Desktop.
formDjangoAngularJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form" role="form" id="form-send-mail" name="formContact" novalidate> | |
{% csrf_token %} | |
<div class="form-group"> | |
<label for="name">Nome</label> | |
<input type="text" class="form-control" required id="name" name="name" placeholder="Nome" data-ng-model="dataForm.nome"> | |
<br> | |
<label for="phone">Telefone</label> | |
<input type="text" class="form-control" id="phone" name="phone" data-ng-model="dataForm.telefone"> | |
<br> | |
<label for="subject">Assunto</label> | |
<input type="text" class="form-control" required id="subject" name="subject" data-ng-model="dataForm.assunto"> | |
<br> | |
<label for="message">Mensagem</label> | |
<textarea name="message" class="form-control" required id="message" name="message" rows="5" data-ng-model="dataForm.memsagem"></textarea> | |
<br> | |
<button type="button" class="btn btn-default" data-ng-disabled="formContact.$invalid" data-ng-click="sendMail()">Enviar</button> | |
</div> | |
</form> | |
<section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment