1
1
import PixBlock from ' @1024pix/pix-ui/components/pix-block' ;
2
2
import PixButtonLink from ' @1024pix/pix-ui/components/pix-button-link' ;
3
3
import PixSelect from ' @1024pix/pix-ui/components/pix-select' ;
4
- import PageTitle from ' ../../ui/page-title' ;
5
4
import { action } from ' @ember/object' ;
6
5
import { service } from ' @ember/service' ;
7
6
import Component from ' @glimmer/component' ;
@@ -10,6 +9,8 @@ import { runTask } from 'ember-lifeline';
10
9
import ObjectRequirementForm from ' pix-admin/components/quests/requirements/object/form' ;
11
10
import { objectConfigurations } from ' pix-admin/components/quests/requirements/object/object-configuration.js' ;
12
11
12
+ import PageTitle from ' ../../ui/page-title' ;
13
+
13
14
export default class RequirementForm extends Component {
14
15
@tracked selectedRequirementType = null ;
15
16
@service router;
@@ -39,26 +40,31 @@ export default class RequirementForm extends Component {
39
40
<PageTitle >
40
41
<: title >Créer ou Éditer un "requirement" de quête</: title >
41
42
</PageTitle >
42
- <PixBlock @ variant =" admin" class =" quest-requirement-form" >
43
- <PixSelect
44
- @ onChange ={{this .updateRequirementType }}
45
- @ value ={{this .selectedRequirementType }}
46
- @ options ={{this .requirementTypeOptions }}
47
- @ placeholder =" Choisissez votre type de requirement"
48
- @ hideDefaultOption ={{ true }}
49
- >
50
- <: label >Sélectionner un type de requirement</: label >
51
- </PixSelect >
43
+ <section class =" quest-object-form" >
44
+ <PixBlock @ variant =" admin" class =" quest-requirement-form" >
45
+ <PixSelect
46
+ class =" quest-requirement-form__item-width-content"
47
+ @ onChange ={{this .updateRequirementType }}
48
+ @ value ={{this .selectedRequirementType }}
49
+ @ options ={{this .requirementTypeOptions }}
50
+ @ placeholder =" Choisissez votre type de requirement"
51
+ @ hideDefaultOption ={{ true }}
52
+ >
53
+ <: label >Sélectionner un type de requirement</: label >
54
+ </PixSelect >
52
55
53
- <div >
54
- {{#if this . selectedRequirementType }}
55
- <ObjectRequirementForm @ configuration ={{this .configurationForSelectedRequirement }} />
56
- {{/if }}
57
- </div >
56
+ <div >
57
+ {{#if this . selectedRequirementType }}
58
+ <ObjectRequirementForm @ configuration ={{this .configurationForSelectedRequirement }} />
59
+ {{/if }}
60
+ </div >
61
+ </PixBlock >
58
62
59
- <PixButtonLink @ route =" authenticated.quest-creator" @ size =" small" @ variant =" primary" >
60
- Revenir au formulaire de quête
61
- </PixButtonLink >
62
- </PixBlock >
63
+ <div class =" quest-button-edition__button" >
64
+ <PixButtonLink @ route =" authenticated.quest-creator" @ size =" small" @ variant =" primary" >
65
+ Revenir au formulaire de quête
66
+ </PixButtonLink >
67
+ </div >
68
+ </section >
63
69
</template >
64
70
}
0 commit comments