-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bildungsurlaub): Add accordion and start populating state princi…
…ples and eligibility
- Loading branch information
1 parent
040dbb6
commit 29944c5
Showing
9 changed files
with
208 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
{{!-- Flowbite accordion component --}} | ||
<div id="accordion-flush" data-accordion="collapse" data-active-classes="bg-white dark:bg-gray-900 text-gray-900 dark:text-white" data-inactive-classes="text-gray-500 dark:text-gray-400"> | ||
{{#each this.states as |state index|}} | ||
<State @state={{state}} @index={{index}} /> | ||
{{/each}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<h2 id="accordion-flush-heading-{{@index}}"> | ||
<button type="button" class="flex items-center justify-between w-full py-5 font-medium rtl:text-right text-gray-500 border-b border-gray-200 dark:border-gray-700 dark:text-gray-400 gap-3" | ||
data-accordion-target="#accordion-flush-body-{{@index}}" aria-expanded="false" aria-controls="accordion-flush-body-{{@index}}"> | ||
<span>{{@state.stateName}}</span> | ||
<svg data-accordion-icon class="w-3 h-3 rotate-180 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
fill="none" viewBox="0 0 10 6"> | ||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5 5 1 1 5" /> | ||
</svg> | ||
</button> | ||
</h2> | ||
<div id="accordion-flush-body-{{@index}}" class="hidden" aria-labelledby="accordion-flush-heading-{{@index}}"> | ||
<div class="p-5 border border-b-0 border-gray-200 dark:border-gray-700 dark:bg-gray-900"> | ||
<h3>Principles</h3> | ||
{{#each @state.principles as |principle|}} | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
{{principle}} | ||
</p> | ||
{{/each}} | ||
<h3>Eligibility</h3> | ||
{{#each @state.eligibility as |elig|}} | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
{{elig}} | ||
</p> | ||
{{/each}} | ||
</div> | ||
</div> | ||
|
||
{{log @index 'index'}} | ||
{{log @state.eligibility}} | ||
{{log @state.principles}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
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": "Brandenburg (»Bildungsfreistellung«)", | ||
"id": 3, | ||
"principles": [ | ||
"(1) Continuing education is an integrated and equal part of the education system. Continuing education within the meaning of this Act shall include all forms of continuation, resumption or supplementation of organized learning outside the educational programmes of general education schools and vocational schools. Insofar as extracurricular youth education is not regulated elsewhere, it shall be included in continuing education within the meaning of this Act. Higher education and vocational training are not covered by this Act.", | ||
"(2) The providers and institutions of continuing education shall have the right to design their own curricula.", | ||
"(3) The continuing education of individual occupational groups regulated by special laws and legal provisions shall remain unaffected by this Act, as shall continuing vocational education and training related to the labor market on the basis of laws, legal provisions and public funding programs.", | ||
"(4) The promotion of political education by the Landeszentrale für politische Bildung shall remain unaffected.", | ||
], | ||
"eligibility": [ | ||
"(1) In accordance with this Act, employees shall be entitled to time off work from their place of employment to participate in recognized further training events in accordance with Section 24 for the purpose of professional, cultural or political further training, with continued payment of remuneration.", | ||
"(2) Employees within the meaning of this Act shall be workers, salaried employees and trainees whose place of work is in the Land, as well as persons working from home and persons treated as such who are to be regarded as employees due to their economic independence." | ||
] | ||
}, | ||
// { | ||
// "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", | ||
// }, | ||
] | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,5 +80,7 @@ | |
}, | ||
"ember": { | ||
"edition": "octane" | ||
}, | ||
"dependencies": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ['./app/**/*.{gjs,gts,hbs,html,js,ts}'], | ||
content: [ | ||
'./app/**/*.{gjs,gts,hbs,html,js,ts}', | ||
], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
plugins: [ | ||
], | ||
} | ||
|