Skip to content

Commit

Permalink
added faculty dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aka-jain committed Apr 30, 2016
1 parent c6fb573 commit accf832
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions HTTP_200/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1106,11 +1106,11 @@ button.no-delete:hover{
}
.contact-container form{
width: 500px;
padding-top: 40px;
padding-top: 60px;
text-align: center;
margin-right: auto;
margin-left: auto;
margin-bottom: 90px;
margin-bottom: 130px;

}
.contact-container form textarea{
Expand Down
6 changes: 4 additions & 2 deletions HTTP_200/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ <h3> JSS Academy Of Technical Educatiom</h3>
<a href="{% url "user-profile" user_id=request.user.username %}">
<i class="fa fa-user"></i> &nbsp;My profile</a>
</li>

{% ifequal request.user.groups.all.0.name 'FacultyGroup' %}
<li class="index-list">
<a href="{% url "my-uploaded-notices" %}">
<i class="fa fa-cloud-upload"></i> &nbsp;My uploaded notices</a>
</li>
{% endifequal %}
<li class="index-list move-in">
<a href="{% url "password_change" %}">
<i class="fa fa-key"></i> &nbsp;Change Password</a>
Expand Down Expand Up @@ -102,7 +103,8 @@ <h3> JSS Academy Of Technical Educatiom</h3>

<div class="index-head">
<div class="index-logo">
<img src="{% static "images/logo-dark.png" %}">
<a href="{% url "home" %}">
<img src="{% static "images/logo-dark.png"%}"></a>
</div>
<h3 class="tag-line">Be updated anywhere and anytime!</h3>
<h3 class="index-welcome"><span class="index-bars"><i class="fa fa-bars"></i></span>About Us</h3>
Expand Down
3 changes: 2 additions & 1 deletion HTTP_200/templates/account/password_change.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ <h3> JSS Academy Of Technical Educatiom</h3>
<a href="{% url "user-profile" user_id=request.user.username %}">
<i class="fa fa-user"></i> &nbsp;My profile</a>
</li>

{% ifequal request.user.groups.all.0.name 'FacultyGroup' %}
<li class="index-list">
<a href="{% url "my-uploaded-notices" %}">
<i class="fa fa-cloud-upload"></i> &nbsp;My uploaded notices</a>
</li>
{% endifequal %}
<li class="active index-list move-in">
<a href="{% url "password_change" %}">
<i class="fa fa-key"></i> &nbsp;Change Password</a>
Expand Down
11 changes: 7 additions & 4 deletions HTTP_200/templates/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ <h3> JSS Academy Of Technical Educatiom</h3>
<a href="{% url "user-profile" user_id=request.user.username %}">
<i class="fa fa-user"></i> &nbsp;My profile</a>
</li>

{% ifequal request.user.groups.all.0.name 'FacultyGroup' %}
<li class="index-list">
<a href="{% url "my-uploaded-notices" %}">
<i class="fa fa-cloud-upload"></i> &nbsp;My uploaded notices</a>
</li>
{% endifequal %}
<li class="index-list move-in">
<a href="{% url "password_change" %}">
<i class="fa fa-key"></i> &nbsp;Change Password</a>
Expand Down Expand Up @@ -101,7 +102,9 @@ <h3> JSS Academy Of Technical Educatiom</h3>

<div class="index-head">
<div class="index-logo">
<img src="{% static "images/logo-dark.png" %}">

<a href="{% url "home" %}">
<img src="{% static "images/logo-dark.png"%}"></a>
</div>
<h3 class="tag-line">Be updated anywhere and anytime!</h3>
<h3 class="index-welcome"><span class="index-bars"><i class="fa fa-bars"></i></span>Contact Us</h3>
Expand Down Expand Up @@ -243,9 +246,9 @@ <h4><a href="http://www.hackncs.com" target="_blank"> Nibble Computer Society</a
// handle a non-successful response
error : function(xhr,errmsg,err) {
$('#submit-contact_id').prop('disabled', false);
$('#main_form').append('<div class="alert alert-danger"><strong>Sorry!</strong> Failed.</div>');
$('#main_form').html('<div class="alert alert-danger"><strong>Sorry!</strong> Failed.</div>');

$(".contact-container form").hide();
// $(".contact-container form").hide();
}
});
};
Expand Down

0 comments on commit accf832

Please sign in to comment.