Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
added a new preset
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Souhei committed Sep 27, 2024
1 parent b70d00c commit 52d5d0c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h3>Approved</h3>
36 changes: 36 additions & 0 deletions ckanext/zarr/templates/scheming/form_snippets/confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% import 'macros/form.html' as form %}

<style>
fieldset.checkboxes label {
font-weight: normal;
display: block;
}
fieldset.checkboxes label:after {
content: none;
}
fieldset.checkboxes label input {
width: auto;
top: 0;
}
</style>

{%- call form.input_block(
label=h.scheming_language_text(field.label),
classes=field.classes if 'classes' in field else ['control-medium'],
error=errors[field.field_name],
is_required=h.scheming_field_required(field)) -%}

{% set placeholder = h.scheming_language_text(field.form_placeholder) %}

<fieldset class="checkboxes">
<label for="field-{{ field.field_name }}">
<input id="field-{{ field.field_name }}"
type="checkbox"
name="{{ field.field_name }}"
value="approved"
/>
{{ data[field.field_name] }}
</label>
</fieldset>
{%- snippet 'scheming/form_snippets/help_text.html', field=field -%}
{%- endcall -%}

0 comments on commit 52d5d0c

Please sign in to comment.