소스 검색

Updating twilio template and view method for twilio

David Leonard 10 년 전
부모
커밋
43f381d11f
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hackathon_starter/hackathon/templates/hackathon/twilio.html
  2. 1 0
      hackathon_starter/hackathon/views.py

+ 2 - 2
hackathon_starter/hackathon/templates/hackathon/twilio.html

@@ -18,9 +18,9 @@
           {% csrf_token %}
           {% load bootstrap %}
           <br>
-          <input type="text" name="number" class="form-control" placeholder="Phone Number" value="" required autofocus>
+          <input type="text" name="number" class="form-control" placeholder="Phone Number - e.g: +13473282978" value="" required autofocus>
           <br>
-          <input type="text" name="message" class="form-control" placeholder="Message" value="" required>
+          <input type="text" name="message" class="form-control" placeholder="Message - e.g: Hello World!" value="" required>
           <br>
           <button class="btn btn-lg btn-primary btn-block" type="submit">Send Message</button>
           <input type="hidden" name="submit" value="submit" />

+ 1 - 0
hackathon_starter/hackathon/views.py

@@ -235,6 +235,7 @@ def snippet_list(request):
 ##################
 
 def twilio(request):
+    # Test credentials
     # sendSMS('Meow', '+13473282978', '+13473781813')
     if request.method == 'POST':
         number = request.POST.get('number')