Skip to content

Commit

Permalink
Merge pull request #69 from bastianjoel/add-anchors
Browse files Browse the repository at this point in the history
Add anchors
  • Loading branch information
jsangmeister authored Apr 19, 2024
2 parents f3c481a + 428c049 commit bed1e56
Showing 1 changed file with 40 additions and 80 deletions.
120 changes: 40 additions & 80 deletions models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,33 @@
# The field `restriction_mode` is required for every field. It puts the field into a
# restriction group. See https://github.com/OpenSlides/OpenSlides/wiki/Restrictions-Overview

_meta: # meta field to hold repeatedly used values
languages: &languages
- en
- de
- it
- es
- ru
- cs
- fr
ballot_paper_selection: &ballot_paper_selection
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
poll_backends: &poll_backends
- long
- fast
onehundred_percent_bases: &onehundred_percent_bases
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"

organization:
id:
type: number
Expand Down Expand Up @@ -113,14 +140,7 @@ organization:
default_language:
type: string
restriction_mode: A
enum:
- en
- de
- it
- es
- ru
- cs
- fr
enum: *languages
required: true

# Saml settings
Expand Down Expand Up @@ -764,14 +784,7 @@ meeting:
language:
type: string
restriction_mode: A
enum:
- en
- de
- it
- es
- ru
- cs
- fr
enum: *languages
required: true
constant: true

Expand Down Expand Up @@ -1233,10 +1246,7 @@ meeting:
# Motion poll
motion_poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
default: CUSTOM_NUMBER
restriction_mode: B
motion_poll_ballot_paper_number:
Expand All @@ -1249,16 +1259,7 @@ meeting:
restriction_mode: B
motion_poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: YNA
restriction_mode: B
motion_poll_default_group_ids:
Expand All @@ -1267,9 +1268,7 @@ meeting:
restriction_mode: B
motion_poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B

Expand Down Expand Up @@ -1379,10 +1378,7 @@ meeting:
# Assignment polls
assignment_poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
default: CUSTOM_NUMBER
restriction_mode: B
assignment_poll_ballot_paper_number:
Expand Down Expand Up @@ -1411,16 +1407,7 @@ meeting:
restriction_mode: B
assignment_poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: valid
restriction_mode: B
assignment_poll_default_group_ids:
Expand All @@ -1429,19 +1416,14 @@ meeting:
restriction_mode: B
assignment_poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B

# Polls
poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
restriction_mode: B
poll_ballot_paper_number:
type: number
Expand All @@ -1458,16 +1440,7 @@ meeting:
restriction_mode: B
poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: YNA
restriction_mode: B
poll_default_group_ids:
Expand All @@ -1476,9 +1449,7 @@ meeting:
restriction_mode: B
poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B
poll_couple_countdown:
Expand Down Expand Up @@ -3266,9 +3237,7 @@ poll:
backend:
type: string
required: True
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: A
is_pseudoanonymized:
Expand Down Expand Up @@ -3322,16 +3291,7 @@ poll:
onehundred_percent_base:
type: string
required: true
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: disabled
restriction_mode: A
votesvalid:
Expand Down

0 comments on commit bed1e56

Please sign in to comment.