{% extends "cosinnus/base.html" %} {% load i18n static cosinnus_tags widget_tweaks thumbnail %} {% block extrahead %} {{ block.super }} {% include 'cosinnus/common/simplemde_dependencies.html' with element_id=form.forms.obj.description.id_for_label %} {% include 'cosinnus/common/simplemde_dependencies.html' with element_id=form.forms.obj.description_long.id_for_label noinclude=1 %} {% endblock %} {% block page_title %} {% if object %} {% blocktrans with team_name=object.name %}Edit “{{ team_name }}”{% endblocktrans %} {% else %} {% if group_model == "CosinnusSociety" %}{% trans "Create Group" %}{% else %}{% trans "Create Project" %}{% endif %} {% endif %} {% endblock %} {% block leftnav %} {% if object %} {% captureas current_page %}editgroup{% endcaptureas %} {% include "cosinnus/group/leftnav_group.html" with current_page=current_page %} {% else %} {% captureas current_page %}{% if group_model == "CosinnusSociety" %}addsociety{% else %}addgroup{% endif %}{% endcaptureas %} {% include "cosinnus/group/leftnav_all_groups.html" with current_page=current_page %} {% endif %} {% if group_model == "CosinnusSociety" %} {% trans "Help about groups" as help_label %} {% include 'cosinnus/common/help_button_leftnav_for_popup.html' with help_text_id="helptext_1_group" label=help_label %} {% else %} {% trans "Help about projects" as help_label %} {% include 'cosinnus/common/help_button_leftnav_for_popup.html' with help_text_id="helptext_2_project" label=help_label %} {% endif %} {% trans "Help about the microsite" as help_label %} {% include 'cosinnus/common/help_button_leftnav_for_popup.html' with help_text_id="helptext_6_microsite" label=help_label no_space=True %} {% endblock leftnav %} {% block breadcrumb %} {{ block.super }} {% if object %}
  • {% if group_model == "CosinnusSociety" %}{% trans "Edit Group" %}{% else %}{% trans "Edit Project" %}{% endif %}
  • {% else %}
  • {% if group_model == "CosinnusSociety" %}{% trans "Create Group" %}{% else %}{% trans "Create Project" %}{% endif %}
  • {% endif %} {% endblock %} {% block content %} {% if form.forms.obj.errors or form.forms.media_tag.errors or inlines.0.errors or inlines.1.errors or inlines.2.errors %}

    {% trans "There was an error in one of the fields you entered. Please correct it before saving!" %}

    {% endif %}
    {% csrf_token %} {{ form.forms.obj.media }} {{ form.forms.obj.non_field_errors }} {{ form.forms.media_tag.non_field_errors }}
    {% block group_form_tab_panes %}
    {% captureas name_label %}{% if group_model == "CosinnusSociety" %}{% trans "Group name" %}{% else %}{% trans "Project name" %}{% endif %}{% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with label=name_label field_id=form.forms.obj.name.id_for_label first=True %} {# Name Field #} {% block group_form_name_field %} {% captureas name_placeholder %}{% if group_model == "CosinnusSociety" %}{% trans "Enter a name for the group." %}{% else %}{% trans "Enter a name for the project." %}{% endif %}{% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.name placeholder=name_placeholder %} {% endblock group_form_name_field %} {# SimpleMDE Description Field (gets initialized in extrahead) #} {% trans "Short description" as desc_label %} {% if group_model == "CosinnusSociety" %} {% captureas group_legend %}{% trans "Describe the group in a few sentences." %} {% trans "This description will be publicly visible." %}{% endcaptureas %} {% else %} {% captureas group_legend %}{% trans "Describe the project in a few sentences." %} {% trans "This description will be publicly visible." %}{% endcaptureas %} {% endif %} {% include 'cosinnus/fields/default_field.html' with label=desc_label legend=group_legend field_id=form.forms.obj.description.id_for_label %} {% block group_form_description_field %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.description large_field=True placeholder=desc_label %} {% endblock group_form_description_field %} {# Avatar Field #} {% trans "Avatar" as avatar_label %} {% captureas avatar_legend %}{% trans "A picture for better recognition." %} {% trans "File Size" %}: {% trans "max. 10 MB" %}{% endcaptureas %} {% captureas preview_html %} {% captureas preview_style %}width:{{SETTINGS.AWESOME_AVATAR.width}}px;height:{{SETTINGS.AWESOME_AVATAR.height}}px{% endcaptureas %} {% captureas group_avatar_type %}{% if group_model == "CosinnusSociety" %}group{% else %}project{% endif %}{% endcaptureas %}
    {% include "cosinnus/group/group_avatar_image.html" with group=object extra_style=preview_style type=group_avatar_type %}
    {% endcaptureas %} {% include 'cosinnus/fields/avatar_field.html' with avatar_field=form.forms.obj.avatar label=avatar_label legend=avatar_legend preview_html=preview_html %} {# Website Field #} {% trans "Website" as website_label %} {% trans "Example: http://mywebsite.com" as website_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.website label=website_label placeholder=website_placeholder %} {% include "cosinnus/media_tags_group.html"%} {# Locations Inlineform #} {% trans "Where are you active?" as locations_label %} {% trans "Remove location" as loc_rm_label %} {% captureas loc_ab_label %}{% trans "Add location" %}{% endcaptureas %} {% include 'cosinnus/fields/inlineform_field.html' with inline_form=inlines.0 label=locations_label content_template='cosinnus/fields/inlineform_group_locations_content.html' unique_id='locations' add_button_label=loc_ab_label remove_button_label=loc_rm_label extra_id_div="location-map" %} {% if form.forms.obj.parent %} {# Parent Field #} {% trans "Which Group does the group belong to?" as parent_label %} {% trans "Select Group" as parent_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.parent label=parent_label placeholder=parent_placeholder %} {% endif %} {% if form.forms.obj.related_groups %} {# Related Groups Field #} {% trans "Are there any projects/groups related to this one?" as related_label %} {% trans "Select related Projects/Groups" as related_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.related_groups label=related_label placeholder=related_placeholder large_field=True %} {% endif %} {# Group Visibility Field #} {% trans "Privacy settings" as visibility_label %} {% trans "This will be the default setting for all content created by members." as visibility_legend %} {% captureas visibility_warning_html %}
    {% if group_model == "CosinnusSociety" %} {% trans "This group will be set to be publicly visible!" %} {% else %} {% trans "This project will be set to be publicly visible!" %} {% endif %}

    {% trans "This means that any registered user can access and see it, although only members can create content. In addition, all content will be set to be publicly visible by default (this can be changed for each item on creation). Publicly visible content can be seen by ANYONE on the internet and it may potentially be included in search engine results!" %}

    {% trans "As administrator of a group or project, it is your responsibility to ensure that the content posted by its members does not infringe any copyright or other laws. Please keep this in mind, especially when enabling the public visibility setting!" %}

    {% trans "If you do not wish this, you can change the visibility setting above." %}
    {% endcaptureas %} {% captureas visibility_field_html %} {% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with field_html=visibility_field_html field=form.forms.media_tag.visibility field_id="group-public-field" label=visibility_label legend=visibility_legend extra_html=visibility_warning_html %} {# Apps selector fields #} {% trans "Which apps should be activated?" as apps_label %} {% captureas apps_html %}
    {% for app_option in deactivated_app_selection %} {% captureas cosinnus_css_class %}{% if app_option.app == 'todo' %}app-todos{% elif app_option.app == 'note' %}app-main{% elif app_option.app == 'file' %}app-files{% elif app_option.app == 'event' %}app-calendar{% elif app_option.app %}app-{{ app_option.app }}{% else %}app-main{% endif %}{% endcaptureas %} {% if app_option.app_not_activatable %} {{ app_option.label }} {% else %} {{ app_option.label }} {% endif %} {% endfor %}
    {% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with extra_html=apps_html label=apps_label large_field=True %}
    {% block group_form_microsite_tab %} {# Microsite Wallpaper Field #} {% captureas wallpaper_label %}{% trans "Microsite Wallpaper" %} (1140px x 240px, {% trans "max. 10 MB" %}){% endcaptureas %} {% captureas wallpaper_html %} {{ form.forms.obj.wallpaper.errors }} {% if object.wallpaper %}
    {% endif %}
    {% if object.wallpaper %}
    {% endif %} {% endcaptureas %} {% captureas wallpaper_extra_html %} {% if object.wallpaper %}
    • {% trans "Reset" %}
    {% endif %} {% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with label=wallpaper_label field_html=wallpaper_html extra_html=wallpaper_extra_html first=True large_field=True %} {# SimpleMDE Description Long Field (gets initialized in extrahead) #} {% trans "Description and Infos" as description_long_label %} {% captureas description_long_legend %} {% if group_model == "CosinnusSociety" %}{% trans "Describe the group in a few sentences." %}{% else %}{% trans "Describe the project in a few sentences." %}{% endif %} {% trans "This is a public description that can be seen by anyone and will be shown on the microsite." %} {% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with label=description_long_label legend=description_long_legend %} {% block group_form_microsite_description_field %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.description_long large_field=True %} {% endblock group_form_microsite_description_field %} {# Contact Info Field #} {% trans "Contact info" as contact_info_label %} {% captureas contact_info_legend %} {% trans "How you can be reached, addresses, social media, etc..." %} {% trans "This is a public description that can be seen by anyone and will be shown on the microsite." %} {% endcaptureas %} {% trans "Contact Information" as contact_info_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.contact_info label=contact_info_label legend=contact_info_legend placeholder=contact_info_placeholder large_field=True %} {# Microsite Public Apps Field #} {% trans "From which apps should public items be shown on the microsite?" as microsite_apps_label %} {% captureas microsite_apps_html %}
    {% for app_option in microsite_public_apps_selection %} {% if not app_option.app == 'note' %} {% comment %} Fix "MICROSITE_DOUBLE_NEWSBOX": hide note checkbox {% endcomment %} {% captureas cosinnus_css_class %}{% if app_option.app == 'todo' %}app-todos{% elif app_option.app == 'note' %}app-main{% elif app_option.app == 'file' %}app-files{% elif app_option.app == 'event' %}app-calendar{% elif app_option.app %}app-{{ app_option.app }}{% else %}app-main{% endif %}{% endcaptureas %} {{ app_option.label }} {% endif %} {% endfor %}
    {% endcaptureas %} {% include 'cosinnus/fields/default_field.html' with extra_html=microsite_apps_html label=microsite_apps_label large_field=True %} {# Video URL field #} {% captureas video_label %} {% trans "Video" %} {% endcaptureas %} {% trans "Youtube or Vimeo URL" as video_legend %} {% trans "https://www.youtube.com/watch?v=example-video" as video_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.video legend=video_legend label=video_label placeholder=video_placeholder %} {# Twitter Username Embed field #} {% trans "Twitter: Embedded User Timeline" as twitter_label %} {% trans "Twitter Username (example: @username)" as twitter_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.twitter_username label=twitter_label placeholder=twitter_placeholder %} {# Twitter widget Field #} {% trans "Twitter: Embedded Hashtag or Custom Timeline" as twitter_widget_label %} {% captureas twitter_widget_legend %} {% trans "You can create a custom twitter timeline here:" %} https://twitter.com/settings/widgets {% endcaptureas %} {% trans "Widget-id (example: 744907261810618721) or embed-code (HTML)" as twitter_widget_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.twitter_widget_id label=twitter_widget_label legend=twitter_widget_legend placeholder=twitter_widget_placeholder large_field=True %} {# Twitter Username Embed field #} {% trans "Embed Flickr Gallery" as flickr_label %} {% trans 'Flickr Gallery URL (example: "https://www.flickr.com/photos/username/sets/1234567890")' as flickr_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.flickr_url label=flickr_label placeholder=flickr_placeholder %} {# Microsite Gallery Images Inlineform #} {% captureas mcg_label %}{% trans "Microsite Gallery Images" %} ({% trans "File Size" %}: {% trans "max. 10 MB" %}){% endcaptureas %} {% trans "Remove gallery image" as mcg_rm_label %} {% captureas mcg_ab_label %}{% trans "Add gallery image" %}{% endcaptureas %} {% include 'cosinnus/fields/inlineform_field.html' with inline_form=inlines.1 label=mcg_label content_template='cosinnus/fields/inlineform_group_microsite_gallery_content.html' unique_id='mcg' add_button_label=mcg_ab_label remove_button_label=mcg_rm_label %} {# Microsite Checkbox field #} {% trans "Show Microsite Call to Action Box" as mc_label %} {% trans "A box shown on the microsite that contains buttons to your external campaigns or websites" as mc_legend %} {% trans "Show Call to Action Box" as mc_box_label %} {% include 'cosinnus/fields/checkbox_field.html' with field=form.forms.obj.call_to_action_active label=mc_label legend=mc_legend checkbox_label=mc_box_label %}
    {# Call to Action Title field #} {% trans "Call to Action Box Title" as cta_label %} {% trans "Title of the box header" as cta_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.call_to_action_title label=cta_label placeholder=cta_placeholder %} {# Contact Info Field #} {% trans "Call to Action Box Description" as cta2_label %} {% trans "Description text inside the box" as cta2_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.call_to_action_description label=cta2_label placeholder=cta2_placeholder large_field=True %} {# Microsite Gallery Images Inlineform #} {% trans "Remove button" as ctab_rm_label %} {% captureas ctab_ab_label %}{% trans "Add button" %}{% endcaptureas %} {% include 'cosinnus/fields/inlineform_field.html' with inline_form=inlines.2 content_template='cosinnus/fields/inlineform_group_call_to_action_button_content.html' unique_id='ctab' add_button_label=ctab_ab_label remove_button_label=ctab_rm_label %}
    {% endblock group_form_microsite_tab %}
    {# end microsite tab #} {% if SETTINGS.COSINNUS_FACEBOOK_INTEGRATION_ENABLED %}
    {% if group %} {% include 'cosinnus/utils/facebook_integration_group_form.html' %} {% else %} {% if group_type == 1 %} {% trans "Facebook integration is available after you created the group!" %} {% else %} {% trans "Facebook integration is available after you created the project!" %} {% endif %} {% endif %}
    {% endif %} {% endblock group_form_tab_panes %}
    {% endblock %} {% block extrafooter %} {{ block.super }} {% comment %} This is needed to hide the awesomeavatar selection frame for the tabbed form. {% endcomment %} {% endblock extrafooter %}