updateStudent.html 3.32 KB
Newer Older
1 2
{% extends 'layouts/base.html' %}

Daniel W Bond's avatar
Daniel W Bond committed
3
{% block title %} SRCT Roomlist | Student | Update {% endblock %}
4

Daniel W Bond's avatar
Daniel W Bond committed
5
{% block message_queue %}
6 7 8 9
{% endblock %}

{% block content %}

10 11
{% include 'room_change_warning.html' %}

12 13 14
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-md-12 text-center">
15
      <h1><strong>SRCT</strong>ROOMLIST</a></strong> Student Update</h1>
16 17 18 19 20
    </div>
  </div>
</div>

<div class="row">
21
  <div class="col-md-12 text-center">
22
    <h2><strong>Welcome, {{ me.get_first_name_or_uname }}!</strong></h2>
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
  </div>
</div>

<br />

{% load socialaccount %} {% providers_media_js %}

<div class="row">
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h1 class="panel-title text-center"><strong>Social Media Settings</strong></h1>
      </div>
      <div class="panel-body">
        <p class="text-center">Verify your social media accounts to link them to other students.</p>
        <div class="row text-center">
          <div class="col-md-6">
          {% if accounts.facebook %}
            <p><i class="fa fa-check-square-o"></i> Verified!</p>
          {% endif %}
          <a href="{% provider_login_url 'facebook' method='js_sdk' process='connect' next='#' %}">
            <h4><i class="fa fa-facebook fa-2x"></i></h4>
            <h4>Facebook</h4>
          </a>
          </div>
          <div class="col-md-6">
          {% if accounts.google %}
            <p><i class="fa fa-check-square-o"></i> Verified!</p>
          {% endif %}
          <a href="{% provider_login_url 'google' method='js_sdk' process='connect' next='#' %}">
            <h4><i class="fa fa-google fa-2x"></i></h4>
            <h4>Google</h4>
          </a>
          </div>
        </div>
        <br />
        <div class="row text-center">
          <div class="col-md-6">
          {% if accounts.twitter %}
            <p><i class="fa fa-check-square-o"></i> Verified!</p>
          {% endif %}
          <a href="{% provider_login_url 'twitter' method='js_sdk' process='connect' next='#' %}">
            <h4><i class="fa fa-twitter fa-2x"></i></h4>
            <h4>Twitter</h4>
          </a>
          </div>
          <div class="col-md-6">
          {% if accounts.instagram %}
            <p><i class="fa fa-check-square-o"></i> Verified!</p>
          {% endif %}
          <a href="{% provider_login_url 'instagram' method='js_sdk' process='connect' next='#' %}">
            <h4><i class="fa fa-instagram fa-2x"></i></h4>
            <h4>Instagram</h4>
          </a>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="col-md-8">
84 85 86

    <div class="panel panel-default">
      <div class="panel-heading">
87
        <h1 class="panel-title text-center"><strong>Student Settings</strong></h1>
88 89 90
      </div>

      <div class="panel-body">
91
        <form class="form-horizontal" autocomplete="off" action="" method="post">{% csrf_token %}
Daniel W Bond's avatar
Daniel W Bond committed
92

93
          {{ my_form.as_p }}
Daniel W Bond's avatar
Daniel W Bond committed
94

95 96 97 98 99 100 101 102 103
          <input type="submit" value="Save" class="btn btn-primary"/>
        </form>
      </div>
    </div>

  </div>
</div>


Daniel W Bond's avatar
Daniel W Bond committed
104 105 106 107 108 109 110 111 112 113
{% endblock content %}

{% block javascript %}
  <script type="text/javascript" src="/static/js/jquery.chained.min.js"></script>
  <script>
    $("#building").chained("#neighborhood");
    $("#floor").chained("#building");
    $("#room").chained("#floor");
  </script>
{% endblock javascript %}