From fe7b2442ea950d59550a28c9fc9f9752e49f99d9 Mon Sep 17 00:00:00 2001 From: Agathe Badia Date: Fri, 8 Dec 2023 16:27:52 +0100 Subject: [PATCH] feat(bildungsurlaub): Add accordion and start populating state principles and eligibility --- app/components/accordion/index.hbs | 8 ++ app/components/accordion/index.js | 14 +++ app/components/state/index.hbs | 104 ++++++++++++++++++++++ app/index.html | 2 + app/routes/home/route.js | 97 ++++++++++++++++++++ app/routes/home/template.hbs | 138 +++++++++++++++++++++++++---- mermaid.png | Bin 0 -> 19624 bytes package.json | 2 + tailwind.config.js | 7 +- 9 files changed, 352 insertions(+), 20 deletions(-) create mode 100644 app/components/accordion/index.hbs create mode 100644 app/components/accordion/index.js create mode 100644 app/components/state/index.hbs create mode 100644 app/routes/home/route.js create mode 100644 mermaid.png diff --git a/app/components/accordion/index.hbs b/app/components/accordion/index.hbs new file mode 100644 index 0000000..f11877e --- /dev/null +++ b/app/components/accordion/index.hbs @@ -0,0 +1,8 @@ + +
+ {{#each this.states as |state index|}} + + {{/each}} +
+ +{{log this.states}} diff --git a/app/components/accordion/index.js b/app/components/accordion/index.js new file mode 100644 index 0000000..26c4d6b --- /dev/null +++ b/app/components/accordion/index.js @@ -0,0 +1,14 @@ +import Component from '@glimmer/component'; +import { action, computed } from '@ember/object'; +import { tracked } from '@glimmer/tracking'; + +export default class AccordionComponent extends Component { + + get states() { + //arguments passed from index.hbs @model.data + console.log(this.args.states, 'states'); + return this.args.states; + } + + +} diff --git a/app/components/state/index.hbs b/app/components/state/index.hbs new file mode 100644 index 0000000..256a3ce --- /dev/null +++ b/app/components/state/index.hbs @@ -0,0 +1,104 @@ +{{!--
--}} +

+ +

+ +{{!--
--}} + +{{!--
+

+ +

+ +

+ +

+ +

+ +

+ +
--}} + +{{log @index 'index'}} +{{log @state.eligibility}} +{{log @state.principles}} diff --git a/app/index.html b/app/index.html index ebc11b2..b156bfb 100644 --- a/app/index.html +++ b/app/index.html @@ -10,6 +10,7 @@ + {{content-for "head-footer"}} @@ -18,6 +19,7 @@ + {{content-for "body-footer"}} diff --git a/app/routes/home/route.js b/app/routes/home/route.js new file mode 100644 index 0000000..452d88f --- /dev/null +++ b/app/routes/home/route.js @@ -0,0 +1,97 @@ +import Route from '@ember/routing/route'; + +export default class HomeRoute extends Route { + async model() { + return { + "data": [ + { + "stateName": "Baden-Württemberg (»Bildungszeit«)", + "id": 1, + "principles": [ + " (1) Employees in Baden-Württemberg are entitled to educational leave from their employer. During training leave,they shall be released from work by their employer with continued payment of remuneration.", + "(2) Educational leave may be claimed for vocational or political further training measures and for training for voluntary work.", + "(3) Continuing vocational training serves to maintain, renew, improve or expand job-related knowledge, skills, development opportunities or abilities.", + "(4) Continuing political education serves to provide information about political contexts and the opportunity to participate in political life.", + "(5) The qualification to carry out voluntary activities serves to strengthen voluntary commitment. The areas of voluntary activities for which qualification entitlement to training time exists shall be determined by statutory order. The state government shall be authorized to regulate the areas of voluntary activities for which qualification entitlement to training time exists by statutory order." + ], + "eligibility": [ + "(1) Employees", + "(2) Persons working from home and persons treated as such, as well as other persons who are to be regarded as employee-like persons due to their lack of independence. Persons similar to employees in this sense are also persons with disabilities in the work area of a recognized workshop for disabled persons", + "(3) Those employed for their training and students at the Baden-Württemberg Cooperative State University, insofar as the focus of their activities is in the state of Baden-Württemberg.", + ] + }, + { + "stateName": "Berlin (»Bildungzeit«)", + "id": 2, + "principles": [ + "(1) Employees in the federal state of Berlin shall, while continuing to receive their employer with continued payment of their salary entitled to leave of absence from work for participation in recognized educational educational events (educational leave).", + "(2) Employees within the meaning of this Act are also: persons employed for their vocational training, persons working from home and persons treated as such, other persons who, due to their economic independence, are to be regarded as are to be regarded as employee-like persons, and participants in measures in institutions for the integration of people with disabilities into working and professional life.", + "(3) Educational leave serves the purposes of political education, further vocational training and qualification for the performance of voluntary activities.", + "(4) Political education is intended to promote the ability and motivation to assess political and social social contexts and to perform political and social tasks.", + "(5) Continuing vocational training is intended to maintain, renew and develop professional knowledge, skills, maintain, renew, improve and expand professional knowledge, skills, abilities and expand as well as impart knowledge of operational and social contexts. Educational content that is not directly related to the work performed are included if they have at least an indirect benefit to the employer in the professional activity.", + "(6) Continuing vocational training within the meaning of this Act shall also be deemed to be an additional qualification accompanying vocational training for persons employed for the purpose of their vocational training.", + "(7) The qualification to carry out voluntary activities is intended to promote the promote the strengthening of voluntary commitment.", + "(8) Voluntary activities within the meaning of this Act are only those that are performed in fulfillment of civic duties to strengthen the democratic community or in other special public interest. The provisions of this Act shall not apply to honorary activities for which remuneration, compensation for loss of earnings or compensation for the time spent attending a training event is granted under other regulations. The areas of voluntary work for the qualification of which there is an entitlement to training time shall be determined by statutory order.", + "(9) Civic education, continuing vocational training and training for volunteer work should also promote gender equality, equality between people with and without disabilities, participation and equal participation of people with disabilities. participation and equal participation of people with a migration migrant backgrounds and the culture of valuing diversity." + ], + "eligibility": [ + "(1) The entitlement to training leave shall amount to five working days within a calendar year, provided that the entitled person regularly works five days a week. In anticipation of the training time in the following calendar year, the entitlement may be combined to ten working days.", + "(2) If the person regularly works more or less than five days a week, the entitlement shall be increased or reduced accordingly in accordance with paragraph 1. Fractions of a day shall be rounded up in favor of the entitled person. rounded up.", + "(3) If the entitlement to training leave has not been exhausted within a calendar year, the remaining entitlement cannot be carried over to the following calendar year.", + "(4) If an entitled person falls ill during the training period, the days of illness evidenced by a medical certificate shall not be counted towards the training period.", + "(5) In the event of a change of employment, the training period granted by another employer in the same calendar year shall be taken into account. This shall also apply in the event of a change of employment with the same employer.", + "(6) As a rule, leave of absence for those entitled to it at schools and universities shall be granted during periods when there are no lessons or lectures.", + "(7) Persons similar to employees are also entitled to training time within the contractual period during periods without an obligation to perform. performance obligation.", + "(8) In the case of shift work, the entitlement to time off also exists if participation in the recognized educational event would be possible before or after a shift to be worked on that day." + ] + }, + { + "stateName": "smss.exe", + "id": 3, + "principles": [ + " (1) Employees in Baden-Württemberg are entitled to educational leave from their employer. During training leave,they shall be released from work by their employer with continued payment of remuneration.", + "(2) Educational leave may be claimed for vocational or political further training measures and for training for voluntary work.", + "(3) Continuing vocational training serves to maintain, renew, improve or expand job-related knowledge, skills, development opportunities or abilities.", + "(4) Continuing political education serves to provide information about political contexts and the opportunity to participate in political life.", + "(5) The qualification to carry out voluntary activities serves to strengthen voluntary commitment. The areas of voluntary activities for which qualification entitlement to training time exists shall be determined by statutory order. The state government shall be authorized to regulate the areas of voluntary activities for which qualification entitlement to training time exists by statutory order." + ], + "eligibility": [ + "(1) Employees", + "(2) Persons working from home and persons treated as such, as well as other persons who are to be regarded as employee-like persons due to their lack of independence. Persons similar to employees in this sense are also persons with disabilities in the work area of a recognized workshop for disabled persons", + "(3) Those employed for their training and students at the Baden-Württemberg Cooperative State University, insofar as the focus of their activities is in the state of Baden-Württemberg.", + ] + }, + // { + // "stateName": "smss.exe", + // "id": 4, + // "description": "Stark", + // }, + // { + // "stateName": "smss.exe", + // "id": 5, + // "description": "Stark", + // }, + // { + // "stateName": "smss.exe", + // "id": 6, + // "description": "Stark", + // }, + // { + // "stateName": "smss.exe", + // "id": 7, + // "description": "Stark", + // }, + // { + // "stateName": "smss.exe", + // "id": 8, + // "description": "Stark", + // }, + // { + // "stateName": "smss.exe", + // "id": 9, + // "description": "Stark", + // }, + ] + }; + } +} diff --git a/app/routes/home/template.hbs b/app/routes/home/template.hbs index 8c5a834..a316eb4 100644 --- a/app/routes/home/template.hbs +++ b/app/routes/home/template.hbs @@ -2,32 +2,135 @@
schema to employed until eligibility for bildungsurlaub
+

TODO:

- +

What is Bildungsurlaub?

+ +

In most federal states, employees are offered the opportunity to take time off work to take advantage of + opportunities + for further education. This is known as "Bildungsurlaub" or "Bildungsfreistellung". + + In the overview below, you will find a brief description of each federal state that offers such a scheme and + references + to sources that provide detailed information on requirements and further information. - InfoWeb Weiterbildung +

+ +

Educational leave is the legal entitlement of employees in [Germany] to time off work to participate in + recognized further education events with continued payment of remuneration. In September 2021, in Berlin, the Bildungsurlaubsgesetz + was replaced by the Bildungszeitgesetz [BiZeitG] (GVBl. p. 849). - Berlin.de

+ +

Definition from the German law

+ + For this definition, we will use the Berlin Education Leave Act. The text below is a translation of the Berlin Educational Leave Act. + + Please note that the definition might depend on the state your are working in. + + Berliner Bildungszeitgesetz (BiZeitG) vom 05.07.2021 - Berlin Educational Leave Act of 05.07.2021 + § 1 Principles + - Employees in the State of Berlin are entitled to time off work from their employer to participate in recognized + educational events (educational leave), with continued payment of wages. + - Employees within the meaning of this Act are also: +
    +
  1. persons employed for their vocational training,
  2. +
  3. persons working from home and persons treated as such,
  4. +
  5. other persons who are to be regarded as employee-like persons due to their economic independence, and
  6. +
  7. participants in measures in institutions for the integration of people with disabilities into working and + professional life.
  8. +
+ + - Educational time serves the purposes of political education, further vocational training and + qualification for the performance of voluntary activities. + - Political education is intended to promote the ability and motivation to assess political and social + social contexts and to perform political and social tasks. + social tasks. + - Continuing vocational training is intended to maintain, renew and improve professional knowledge, skills and + development opportunities, skills, abilities and development opportunities, as well as to renew, improve and expand as well as impart knowledge of operational and social contexts. Training content that is not directly related to a directly related to the work performed are included if they have at least an indirect at least an indirect benefit to the employer in the professional activity of the employer. + + + You are not located in Berlin? Here are the Bildungsurlaub rules per State: + {{!-- Flowbite accordion component --}} + {{!--
+

+ +

+ +
--}} + + {{log @model.data 'model.data'}} + +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • + +

    Are you eligible for Bildungsurlaub?

    + Anspruch auf Bildungszeit - Entitlement to training time + +

    Include complete schema of scenarios

    +

    Schema needs a complete alt text

    +

    How to apply for Bildungsurlaub

    +

    List or schema of actions

    +

    Create a request for Bildungsurlaub to HR

    +

    Copy text in English

    +

    Copy text in German

    +

    Create table of content

    +

    Add additional links

    +

    Replace Tailwind logo with Bildungsurlaub one (Canva logo creation? or ask ChatGPT for platform to create logos)

    +

    Verify pages are accessible with Colorblind extension + Lighthouse

    Weiterbildung:

    -