{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2019 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.COMMUNITIES_BASE_TEMPLATE -%} {%- block javascript -%} {{ super() }} {%- endblock javascript -%} {% block page_body %}
{% if not is_new %} {% if community.is_deleted %}
This community will be deleted on {{ community.delete_time.strftime('%d-%m-%Y') }}.
{% endif %} {% endif %}

{% if is_new -%} {{ _("New community") }} {%- else -%} {{ _("Edit community") }} {%- endif %}

{{form.csrf_token}}
{% if not is_new %}
{{ community.community_url }}

Above address links directly to your community collection.

{{ community.upload_url }}

Above address will automatically ensure people who use it will have their record added to your community collection.

{{ community.community_provisional_url }}

Above address links to your private curation URL. You will find all uploads pending your curation.

{{ community.oaiset_url }}

Above address links to a OAI-PMH feed, which can be used by other digital repositories to harvest this community.

{% endif %} {%- for title, fieldnames, conf in form.field_sets %}
{%- if title %}
{{conf.state}} {{title}}
{%- endif %}
{%- if conf.description %}

{{ conf.description|urlize }}

{%- endif %} {% if not is_new %}

The identifier cannot be changed after creation of the community.

{% endif %}
{%- for f in fieldnames %} {% if f == '-' %}
{%- else %} {%- set field = form.get_field_by_name(f) %} {% if field %}
{% if form.has_autocomplete(field) %}
    {% if f == "funding_source" %} {% for tag in field.get_tags() %}
  • {{tag.label}}
  • {% endfor %} {% endif %}
{% endif %} {%- if field.type == "Date" %} {{ field(class_="form-control col-md-2 " + field.short_name, placeholder=form.get_field_placeholder(f)) }} {%- else %} {{ field(class_="form-control col-md-5 " + field.short_name, placeholder=form.get_field_placeholder(f)) }} {%- endif %} {% if field.description %}

{{field.description|urlize}}

{% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
{%- endif %} {%- endif %} {%- endfor %} {%- if form.recaptcha %}
{{ form.recaptcha() }} {% if form.recaptcha.errors %} {% for error in form.recaptcha.errors %} {{ error }} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
{%- endif %}
{%- endfor %}
{% if not community.is_deleted %} {% endif %}
{% include "invenio_communities/mycommunities.html" %}
{% endblock %}