Commit 2e6f4307 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

Add comments

parent 76bb2c42
Pipeline #6456 passed with stage
in 19 seconds
{% ckan_extends %}
{# Add HFT assets (figures, footer, css, etc.) #}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
......
{% ckan_extends %}
{# override footer.html #}
{# Override footer.html to put M4_LAB footer #}
{% block footer_content %}
<div class="row">
<div class="col-md-4 attribution">
......
{% set placeholder = _('E.g. environment') %}
{# Remove tags #}
<div class="module module-search module-narrow module-shallow box">
<form class="module-content search-form" method="get" action="{% url_for 'dataset.search' %}">
<h3 class="heading">{{ _("Search data") }}</h3>
......
{% ckan_extends %}
{# Remove Organization #}
{% block stats_group %}
<li>
<a href="{{ h.url_for('dataset.search') }}">
......
{% ckan_extends %}
{# Simplifies the form for adding datasets by removing Tags. Titel field is marked as *Pflichtfeld (mandatory) #}
{% block package_basic_fields_title %}
{{ form.input('title', id='field-title', label=_('Title'), placeholder=_('eg. A descriptive title'), value=data.title, error=errors.title, classes=['control-full', 'control-large'], attrs={'data-module': 'slug-preview-target', 'class': 'form-control'}, is_required=true) }}
{% endblock %}
......
{% ckan_extends %}
{# Remove Custom Fields and marks Autor, Verantwortlicher, and their emails fields as *Pflichtfeld (mandatory) #}
{% block package_metadata_author %}
{{ form.input('author', label=_('Author'), id='field-author', placeholder=_('Joe Bloggs'), value=data.author, error=errors.author, classes=['control-medium'], is_required=true) }}
{{ form.input('author_email', label=_('Author Email'), id='field-author-email', placeholder=_('joe@example.com'), value=data.author_email, error=errors.author_email, classes=['control-medium'], is_required=true) }}
......
{% ckan_extends %}
{# Add a label: maximum data size #}
{% block basic_fields_url %}
{% set is_upload = (data.url_type == 'upload') %}
{{ form.image_upload(data, errors, field_url='url', field_upload='upload', field_clear='clear_upload',
......
{% ckan_extends %}
{# Remove all activity records #}
{% macro actor(activity) %}
{% endmacro %}
......
{% ckan_extends %}
{# Remove activity stream tab #}
{% block page_header %}
<header class="module-content page-header hug">
{% block content_primary_nav %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment