{% extends "admin/base.html" %} {%- set modal_id = ui.util.id() -%} {% block primary_content_inner %} {%- call ui.util.call(ui.heading, level=1) -%} {% block page_heading %}{{ _('Edit Config') }}{% endblock %} {%- endcall %} {{ ui.form_errors(error_summary) }} {%- call ui.util.call(ui.form, method="POST", enctype="multipart/form-data") -%} {% block admin_form %} {{ ui.input(name='ckan.site_title', id='field-ckan-site-title', label=_('Site Title'), value=data['ckan.site_title'], errors=error) }} {{ ui.input(name='ckan.theme', id='field-ckan-main-css', label=_('Custom Stylesheet'), value=data['ckan.theme'], errors=error) }} {{ ui.input(name='ckan.site_description', id='field-ckan-site-description', label=_('Site Tag Line'), value=data['ckan.site_description'], errors=error) }} {% 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') %} {{ ui.image_upload(data, errors, is_upload_enabled=h.uploads_enabled("admin"), 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' )}} {{ ui.markdown(name='ckan.site_about', id='field-ckan-site-about', label=_('About'), value=data['ckan.site_about'], errors=error, placeholder=_('About page text')) }} {{ ui.markdown(name='ckan.site_intro_text', id='field-ckan-site-intro-text', label=_('Intro Text'), value=data['ckan.site_intro_text'], errors=error, placeholder=_('Text on home page')) }} {{ ui.textarea(name='ckan.site_custom_css', id='field-ckan-site-custom-css', label=_('Custom CSS'), value=data['ckan.site_custom_css'], errors=error, placeholder=_('Customisable css inserted into the page header')) }} {% endblock %} {%- call ui.util.call(ui.form_actions) -%} {{ ui.modal_handle(_('Reset'), id=modal_id, style="danger") }} {{ ui.button(_('Update Config'), type="submit", attrs={"name": "save"}) }} {%- endcall %} {%- endcall %} {{ ui.confirm_modal(_('Are you sure you want to reset the config?'), id=modal_id, href=h.url_for('admin.reset_config')) }} {% endblock %} {% block secondary_content %} {%- call ui.util.call(ui.sidebar_section, icon="info-circle", title=_('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.

{% endtrans %} {% endblock %} {%- endcall %} {% endblock %}