{% import 'macros/autoform.html' as autoform %} {% extends "admin/base.html" %} {% import 'macros/form.html' as form %} {% block primary_content_inner %} {{ form.errors(error_summary) }}
{% block admin_form %} {{ h.csrf_input() }} {{ form.input('ckan.site_title', id='field-ckan-site-title', label=_('Site Title'), value=data['ckan.site_title'], error=error, classes=['control-medium']) }} {{ form.input('ckan.theme', id='field-ckan-main-css', label=_('Custom Stylesheet'), value=data['ckan.theme'], error=error, classes=['control-medium']) }} {{ form.input('ckan.site_description', id='field-ckan-site-description', label=_('Site Tag Line'), value=data['ckan.site_description'], error=error, classes=['control-medium']) }} {% set field_url = 'ckan.site_logo' %} {% set is_upload = data[field_url] and not data[field_url].startswith('http') %} {% set is_url = data[field_url] and data[field_url].startswith('http') %} {{ form.image_upload(data, errors, is_upload_enabled=h.uploads_enabled(), is_url=is_url, is_upload=is_upload, upload_label = _('Site logo'), url_label=_('Site logo'), field_url=field_url, field_upload='logo_upload', field_clear='clear_logo_upload' )}} {{ form.markdown('ckan.site_about', id='field-ckan-site-about', label=_('About'), value=data['ckan.site_about'], error=error, placeholder=_('About page text')) }} {{ form.markdown('ckan.site_intro_text', id='field-ckan-site-intro-text', label=_('Intro Text'), value=data['ckan.site_intro_text'], error=error, placeholder=_('Text on home page')) }} {{ form.textarea('ckan.site_custom_css', id='field-ckan-site-custom-css', label=_('Custom CSS'), value=data['ckan.site_custom_css'], error=error, placeholder=_('Customisable css inserted into the page header')) }} {{ form.select('ckan.homepage_style', id='field-homepage-style', label=_('Homepage'), options=homepages, selected=data['ckan.homepage_style'], error=error) }} {% endblock %}
{{ _('Reset') }}
{% endblock %} {% block secondary_content %}

{{ _('CKAN config options') }}

{% block admin_form_help %} {% set about_url = h.url_for('home.about') %} {% set home_url = h.url_for('home.index') %} {% set docs_url = "https://docs.ckan.org/en/{0}/theming".format(g.ckan_doc_version) %} {% trans %}

Site Title: This is the title of this CKAN instance It appears in various places throughout CKAN.

Custom Stylesheet: Define an alternative main CSS file.

Site Tag Logo: This is the logo that appears in the header of all the CKAN instance templates.

About: This text will appear on this CKAN instances about page.

Intro Text: This text will appear on this CKAN instances home page as a welcome to visitors.

Custom CSS: This is a block of CSS that appears in <head> tag of every page. If you wish to customize the templates more fully we recommend reading the documentation.

Homepage: This is for choosing a predefined layout for the modules that appear on your homepage.

{% endtrans %} {% endblock %}
{% endblock %}