Commits

tjama committed a31b6c4

some javascript

  • Participants
  • Parent commits 75b9ad9

Comments (0)

Files changed (2)

idealcontact/core/views.py

 
 class IndexView(TemplateView):
     template_name = 'index.html'
+
+    def post(self, request):
+        pass

idealcontact/idealcontact/templates/index.html

                         <span class="icon-bar"></span>
                     </a>
                     <a class="brand" href="#">Idealcontact</a>
-                    <div class="nav-collapse collapse">
-                        <ul class="nav">
-                            <li class="active"><a href="#">Home</a></li>
-                            <li><a href="#about">About</a></li>
-                            <li><a href="#contact">Contact</a></li>
-                            <li class="dropdown">
-                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
-                                <ul class="dropdown-menu">
-                                    <li><a href="#">Action</a></li>
-                                    <li><a href="#">Another action</a></li>
-                                    <li><a href="#">Something else here</a></li>
-                                    <li class="divider"></li>
-                                    <li class="nav-header">Nav header</li>
-                                    <li><a href="#">Separated link</a></li>
-                                    <li><a href="#">One more separated link</a></li>
-                                </ul>
-                            </li>
-                        </ul>
-                        <form class="navbar-form pull-right">
-                            <input class="span2" type="text" placeholder="Email">
-                            <input class="span2" type="password" placeholder="Password">
-                            <button type="submit" class="btn">Sign in</button>
-                        </form>
-                    </div><!--/.nav-collapse -->
                 </div>
             </div>
         </div>
 
             <!-- Main hero unit for a primary marketing message or call to action -->
             <div class="hero-unit">
-                <h1>Hello, world!</h1>
-                <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
-                <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
+
+                <form>
+                    {% csrf_token %}
+                    <input type="text" id="first" placeholder="First">
+                    <input type="text" id="last" placeholder="Last">
+                    <input type="text" id="company" placeholder="Company">
+                    <select id="ext">
+                        <option>.com</option>
+                    </select>
+                    <p>
+                        <button type="submit" class="btn btn-primary btn-large">Find!</button>
+                        <div class="progress progress-striped active">
+                          <div class="bar" style="width: 60%;"></div>
+                        </div>
+                    </p>
+
+                    <a id="reset" class="btn btn-danger">Reset</a>
+                </form>
             </div>
 
-            <!-- Example row of columns -->
             <div class="row">
                 <div class="span4">
-                    <h2>Heading</h2>
-                    <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
-                    <p><a class="btn" href="#">View details &raquo;</a></p>
-                </div>
-                <div class="span4">
-                    <h2>Heading</h2>
-                    <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
-                    <p><a class="btn" href="#">View details &raquo;</a></p>
-               </div>
-                <div class="span4">
-                    <h2>Heading</h2>
-                    <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
-                    <p><a class="btn" href="#">View details &raquo;</a></p>
+                  <h2>Result:</h2>
+                  <span id="result"></span>
                 </div>
             </div>
-
             <hr>
 
             <footer>
-                <p>&copy; Company 2012</p>
+                <p>&copy; Idealcontact 2013</p>
             </footer>
 
         </div> <!-- /container -->