From 2e6f4307e430a9d9ba50eae2a70576027d42e0ea Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Mon, 23 May 2022 14:40:33 +0200
Subject: [PATCH] Add comments

---
 ckanext-theme_hft/ckanext/theme_hft/templates/base.html        | 2 ++
 ckanext-theme_hft/ckanext/theme_hft/templates/footer.html      | 3 ++-
 .../ckanext/theme_hft/templates/home/snippets/search.html      | 2 ++
 .../ckanext/theme_hft/templates/home/snippets/stats.html       | 2 ++
 .../templates/package/snippets/package_basic_fields.html       | 2 ++
 .../templates/package/snippets/package_metadata_fields.html    | 2 ++
 .../theme_hft/templates/package/snippets/resource_form.html    | 2 ++
 .../ckanext/theme_hft/templates/snippets/activity_stream.html  | 2 ++
 .../ckanext/theme_hft/templates/user/dashboard.html            | 2 ++
 9 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/base.html b/ckanext-theme_hft/ckanext/theme_hft/templates/base.html
index 2184648..17a85c5 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/base.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/base.html
@@ -1,5 +1,7 @@
 {% 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">
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/footer.html b/ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
index 9a38d97..28ba32b 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/footer.html
@@ -1,6 +1,7 @@
 {% 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">
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html b/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html
index 1274b9d..7da0854 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/search.html
@@ -1,5 +1,7 @@
 {% 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>
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html b/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html
index 4b2b877..0270175 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/home/snippets/stats.html
@@ -1,5 +1,7 @@
 {% ckan_extends %}
 
+{# Remove Organization #}
+
       {% block stats_group %}
       <li>
         <a href="{{ h.url_for('dataset.search') }}">
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html
index ea0c632..730df1f 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_basic_fields.html
@@ -1,5 +1,7 @@
 {% 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 %}
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html
index 4ef9f4c..3bf1281 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/package_metadata_fields.html
@@ -1,5 +1,7 @@
 {% 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) }}
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html
index 5cb72df..a7ef224 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/package/snippets/resource_form.html
@@ -1,5 +1,7 @@
 {% 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',
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html b/ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html
index ece09c2..bf8074e 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/snippets/activity_stream.html
@@ -1,5 +1,7 @@
 {% ckan_extends %}
 
+{# Remove all activity records #}
+
 {% macro actor(activity) %}
 {% endmacro %}
 
diff --git a/ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html b/ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html
index 61b02e7..b21438c 100644
--- a/ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html
+++ b/ckanext-theme_hft/ckanext/theme_hft/templates/user/dashboard.html
@@ -1,5 +1,7 @@
 {% ckan_extends %}
 
+{# Remove activity stream tab #}
+
 {% block page_header %}
    <header class="module-content page-header hug">
       {% block content_primary_nav %}    
-- 
GitLab