Skip to content

Commit

Permalink
some initial form experiment thoughts
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-jones committed Oct 10, 2024
1 parent bed9f50 commit f80d61c
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cms/form/contexts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
admin:
fields:
boai:
validate: false
field_groups:
notes:
label: "Admin Notes"
fieldsets:
basic_compliance:
label: "Check this first"
14 changes: 14 additions & 0 deletions cms/form/field_groups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
notes:
label: "Notes",
repeatable:
initial: 1,
add_button_placement: "top"
fields:
- "note_author",
- "note_date",
- "note",
- "note_id",
- "note_author_id",
template: templates.AF_LIST,
entry_template: templates.AF_ENTRY_GOUP,
merge_disabled: "merge_disabled_notes"
21 changes: 21 additions & 0 deletions cms/form/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
boai:
label: Does the journal adhere to DOAJ’s definition of open access?
input: radio,
options:
- display: Yes
value: y
- display: No
value: n
help:
long_help: "See <a href='https://blog.doaj.org/2020/11/17/"
"what-does-doaj-define-as-open-access/' "
"target='_blank' rel='noopener'>"
"DOAJ’s definition of open access explained "
"in full</a>."
doaj_criteria: "You must answer 'Yes'"
validate:
required:
message: "You must answer <strong>Yes</strong> to continue"
required_value:
value: y

6 changes: 6 additions & 0 deletions cms/form/fieldsets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
basic_compliance:
label: "Open access compliance",
fields:
- boai
- oa_statement_url
- oa_start
5 changes: 5 additions & 0 deletions cms/form/forms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public:
context: public
fieldsets:
- basic_compliance
- about_the_journal

0 comments on commit f80d61c

Please sign in to comment.