summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/mis_base.html
blob: 5b861d3c3ca5f58133346f513a8e88fc35db8537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}

{% block title %} {{ title }} {% endblock %}

{% block style %}
  {{block.super}}
  
  /* Setting css-properties for app-set in left panel */
    .active-app-set, .active-app-set-edit, .active-app-set-view {
      /*padding:0.5em 0 0.5em 0.5em; */
      /*margin-left: -10px !important;*/
      background-color:#efefef;
    }

    .active-app-set-edit {
      border-right: 4px solid #808080;
      font-weight: bold;
    }

    .active-app-set-view {
      border-left: 4px solid #808080;
      font-weight: bold;
    }
{% endblock %}

{% block meta_content %}

  {% if not hide_mis_meta_content %}
    {% check_is_gstaff groupid request.user as gstaff_access %}
    {% comment %}
    <!-- 
      get_features_with_special_rights: Returns list of feature(s) for which creation rights should not be given
    -->
    {% endcomment %}
    {% get_features_with_special_rights groupid request.user as features_list %}


    <ul class="side-nav"> 
      {% for each in app_collection_set %}
      {% get_memberof_objects_count each.pk groupid as count %}

      {% if app_set_id == each|safe %}
        {% if '/new/' in request.path %}
        <li class="active-app-set-edit">
        {% else %}
        <li class="active-app-set-view">
        {% endif %}
      {% else %}
      <li>
      {% endif %}
      
        <div class="row">
          {% if each.type_of or each.name == "Caste" or each.name == "NUSSD Course" %}
            <a class="small-8 columns" href="{% url 'mis:mis_app_detail' groupid app_id each.pk %}" title="View all {{each.name}}'s">
              {{each.name}} ({{count}})
            </a>

            {% if gstaff_access and each.name not in features_list %}
            <a class="small-4 columns" href="{% url 'mis:mis_app_instance_create' groupid app_id each.pk %}" title="Add {{each.name}}">
              +&nbsp; {% trans "Add" %}
            </a>
            {% endif %}

          {% else %}
            {{each.name}}
          {% endif %}
        </div>
    	</li>

    	{% endfor %}

    </ul>
  {% endif %}


{% endblock %}