diff options
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/partner_list.html')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/partner_list.html | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/partner_list.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/partner_list.html new file mode 100644 index 00000000..091f4234 --- /dev/null +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/partner_list.html @@ -0,0 +1,111 @@ +{% extends "ndf/base.html" %} +{% load i18n %} +{% load ndf_tags %} +{% load pagination_tags %} +{% get_group_name groupid as group_name_tag %} + +{% block title %} Partner {% endblock %} + +{% block meta_content %} +<h2 class="subheader">{% trans "Partners" %}</h2> +{% endblock %} + + +{% block help_content %} + +{% endblock %} + + +{% block search_content %} + {% include "ndf/node_search_base.html" %} +{% endblock %} + + +{% block related_content %} + {% if user.is_authenticated %} + {% user_access_policy groupid request.user as user_access %} + {% if user_access == "allow" %} + <br/> + <div class="create card"> + <div class="group"> + <br/> + <a class="button medium" href="{% url 'create_partner' group_name_tag %}"> + <span class="fi-plus"> {% trans "New Partner" %}</span> + </a> + </div> + </div> + {% endif %} + {% endif %} +{% endblock %} + + +{% block body_content %} +<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4"> + + <!-- Existing card list--> + {% get_group_type request.path request.user as group_type %} + {% group_type_info groupid request.user as grouptype %} + + {% autopaginate group_nodes 23 %} + + {% for node in group_nodes %} + {% if node.name != request.user.username %} + + <li class="card"> + {% if grouptype == "Moderated" %} + {% if node.status == "DRAFT" %} + <div class="draft group"> + {% elif node.status == "PUBLISHED" %} + <div class="published group"> + {% endif %} + {% else %} + <div class='{% if node.status == "PUBLISHED" %}published{% endif %} group'> + {% endif %} + + <a href="{% url 'groupchange' node.pk %}"> + <div class="row"> + <div class="small-10 columns"> + <b> + {{ node.name }}{% if node.collection_set %} <i class="fi-page-multiple"></i> {% endif %} + </b> + </div> + </div> + + <span style="font-size:12px;">{{ node.html_content|default_if_none:"Add some description."|safe|striptags|truncatechars:75 }}</span><br/> + + <footer> + <div class="age"> + {{ node.agency_type}} created {{node.created_at|timesince}} ago by <span class="user" href="" data-gnow="">{{node.user_details_dict.created_by}}</span> + </div> + <span><strong>{{node.author_set|length}}</strong> Members</span> + {% get_group_resources node as obj_count %} + <span class="right"><strong>{{obj_count}}</strong> Objects</span> + </footer> + </a> + + <div class="label-list small-12 columns"> + {% for tag in node.tags|slice:":3" %} + <a href="{% url 'tag_info' groupid tag %}"><span class="label" style="background-color:yellow;">{{tag}}</span></a> + {% endfor %} + </div> + + </div> + </li> + {% endif %} + + {% empty %} + {% if not searching %} + <div class="row"> + <div class="small-12 columns"> + {% blocktrans %} <h5>There are no partners created yet. <b>Be the first to create a Partner!</b></h5> {% endblocktrans %} + </div> + </div> + {% endif %} + + {% endfor %} + +</ul> + +{% paginate %} + +{% endblock %} |