Commits

Frederic De Groef committed d4f1f1d

redesigned the form layouts

  • Participants
  • Parent commits bed34f9
  • Tags v0.1.6

Comments (0)

Files changed (1)

File templates/index.html

 {% endblock %}
 
 {% block content %}
+        
+    <div class="span-15">
+        <h3>You want the schedule for a specific course: </h3>
 
-    <h3>Which course do you want the schedule for ? </h3>
+        <form action="/redirect" method="post">
+        <fieldset style="border:none">
+          <p>
+            <label for="course_mnemo">Put the 8 characters (5 letters, 3 numbers) course mnemonic in the input box below:</label>
+            <br/>
+            <input type="text" class="title" name="course_mnemo" id="course_mnemo" style="width:100%;">
+          </p>
+          <p style="text-align:center;">
+            <input type="submit" value="Get schedule" >
+          </p>
+        </fieldset>
+        </form>
 
-      Put the 8 characters (5 letters, 3 numbers) course mnemonic in the input box below:
-    <form action="/redirect" method="post">
-      <div>
-          <label>
-              <input name="course_mnemo" style="width:400px">
-          </label>
-          <input type="submit" value="Get schedule">
-      </div>
-    </form>
-        
-    <br/><br/>
-    <h3>Latest requests:</h3>
-    <ul>
-    {% for course in last_courses %}
-       <li>
-        <a href="/course/{{ course.content|escape }}">{{ course.content|escape|upper }}</a>
-       </li>
-    {% endfor %}
-    </ul>
+        <h3>Latest requests:</h3>
+        <ul>
+        {% for course in last_courses %}
+           <li>
+            <a href="/course/{{ course.content|escape }}">{{ course.content|escape|upper }}</a>
+           </li>
+        {% endfor %}
+        </ul>
+    </div>
     <br/><br/>
     <hr>
+    <br/><br/>
+    <div class="span-15">
+        <h3>You're a student, and you want your entire schedule at once: </h3>
 
-    <h3>You're a student, and you want your entire schedule at once ? </h3>
-    Paste the complete GeHoL URL for your schedule in the input box below (<a href="/student_set_howto.html">Wait, what?</a>):
-    <form action="/redirect" method="post">
-      <div>
-          <label>
-              <input name="gehol_url" style="width:400px">
-          </label>
-          <input type="submit" value="Get schedule">
-      </div>
-    </form>
+        <form action="/redirect" method="post">
+        <fieldset style="border:none">
+          <p>
+            <label for="gehol_url">Paste the complete GeHoL URL for your schedule in the input box below (<a href="/student_set_howto.html">Wait, what?</a>):</label>
+            <br/>
+            <input type="text" id="gehol_url" name="gehol_url" class="title" style="width:100%">
+          </p>
+          <p style="text-align:center;">
+            <input type="submit" value="Get schedule">
+          </p>
+        </fieldset>
+        </form>
 
+            <br/><br/>
+        <h3>Latest requests:</h3>
+        <ul>
+        {% for studentset in last_studentsets %}
+           <li>
+            <a href="{{studentset.url}}">{{ studentset.title|escape }}</a>
+           </li>
+        {% endfor %}
+        </ul>
         <br/><br/>
-    <h3>Latest requests:</h3>
-    <ul>
-    {% for studentset in last_studentsets %}
-       <li>
-        <a href="{{studentset.url}}">{{ studentset.title|escape }}</a>
-       </li>
-    {% endfor %}
-    </ul>
-    <br/><br/>
+    </div>
 
         
 {% endblock %}