- {{ tag('h2', {
- text: submitText,
- class: 'cs-heading'
- }) }}
- {{ forms.textareaField({
- first: true,
- class: 'cs-body-text',
- label: placeholder|t('app'),
- rows: 5
- }) }}
-
- {{ tag('a', {
- class: 'skip-link btn',
- href: '#' ~ buttonWrapperId,
- text: 'Skip to {name}'|t('app', { name: 'Submit'|t('app') }),
- }) }}
-
{{ svg(resultsIcon, sanitize=false) }}
-
{{ resultsHeading }}
-
-
-
-
-
-{% endmacro %}
-
-{% from _self import screen %}
-
-
-
- {% if entries|length %}
-
- {% for entry in entries %}
- -
- {{ entry.title }}
-
- {{ entry.dateCreated|timestamp('short') }}
- {%- if CraftEdition != CraftSolo and entry.getAuthor() %}, {{ entry.getAuthor().username }}{% endif -%}
-
-
- {% endfor %}
-
- {% else %}
-
{{ "No entries exist yet."|t('app') }}
- {% endif %}
+
+ {% if entries|length %}
+
+ {% for entry in entries %}
+ -
+ {{ entry.title }}
+
+ {{ entry.dateCreated|timestamp('short') }}
+
+ {%- if CraftEdition != CraftSolo and entry.getAuthor() %}, {{ entry.getAuthor().username }}{% endif -%}
+
+
+ {% endfor %}
+
+ {% else %}
+
{{ "No entries exist yet."|t('app') }}
+ {% endif %}
diff --git a/resources/templates/_components/widgets/RecentEntries/settings.twig b/resources/templates/_components/widgets/RecentEntries/settings.twig
index 8de4017d612..c538b834c96 100644
--- a/resources/templates/_components/widgets/RecentEntries/settings.twig
+++ b/resources/templates/_components/widgets/RecentEntries/settings.twig
@@ -1,50 +1,38 @@
-{% import "_includes/forms" as forms %}
-
{% if craft.sites.isMultiSite() %}
- {% set editableSites = craft.sites.getEditableSites() %}
-
- {% if editableSites|length > 1 %}
- {% set siteInput %}
-
-
-
- {% endset %}
+ {% set editableSites = craft.sites.getEditableSites() %}
- {{ forms.field({
- id: 'site-id',
- label: "Site"|t('app')
- }, siteInput) }}
- {% endif %}
+ {% if editableSites|length > 1 %}
+
+ {% for site in editableSites %}
+ {{ site.name|t('site') }}
+ {% endfor %}
+
+ {% endif %}
{% endif %}
-{% set sectionInput %}
-
-
-
-{% endset %}
-
-{{ forms.field({
- label: "Section"|t('app'),
- instructions: "Which section do you want to pull recent entries from?"|t('app'),
- id: 'section',
-}, sectionInput) }}
+
+ {{ "All"|t('app') }}
+ {% for section in craft.app.entries.getAllSections() %}
+ {% if section.type != 'single' %}
+ {{ section.name|t('site') }}
+ {% endif %}
+ {% endfor %}
+
-{{ forms.textField({
- label: "Limit"|t('app'),
- id: 'limit',
- name: 'limit',
- value: widget.limit,
- size: 2,
- errors: widget.getErrors('limit')
-}) }}
+
+ {% if widget.getErrors('limit') %}
+
+ {% for error in widget.getErrors('limit') %}
+ -
+ {{ 'Error:'|t('app') }}
+ {{ error|md(inlineOnly=true, encode=true)|raw }}
+
+ {% endfor %}
+
+ {% endif %}
+
diff --git a/resources/templates/_components/widgets/Updates/body.twig b/resources/templates/_components/widgets/Updates/body.twig
index d22bb9a307d..e2edd50d88d 100644
--- a/resources/templates/_components/widgets/Updates/body.twig
+++ b/resources/templates/_components/widgets/Updates/body.twig
@@ -1,15 +1,2 @@
-{% if total %}
-
- {% if total == 1 %}
- {{ "One update available!"|t('app') }}
- {% else %}
- {{ "{total} updates available!"|t('app', { total: total }) }}
- {% endif %}
- {{ "Go to Updates"|t('app') }}
-
-{% else %}
-
{{ "Congrats! You’re up to date."|t('app') }}
-
-
-
-{% endif %}
+
+
diff --git a/resources/templates/_layouts/base.twig b/resources/templates/_layouts/base.twig
index daf6a2df5a8..825751d4fb6 100644
--- a/resources/templates/_layouts/base.twig
+++ b/resources/templates/_layouts/base.twig
@@ -60,7 +60,5 @@
{% include '_layouts/components/notifications' %}
{% block foot %}{% endblock %}
{{ endBody() }}
-
- {{ vite(['resources/css/cp.css', 'resources/js/cp.ts']) }}