-
@@ -89,21 +86,18 @@
v-for="position in positions"
>
{{ position.label.fr }}
-
+
+
-
- {{ $t('household_members_editor.drop_persons_here', {'position': position.label.fr }) }}
-
+
+
+
+
{{ $t('household_members_editor.concerned.no_person_in_position') }}
@@ -120,22 +114,6 @@ div.person {
}
}
-.drag-icon {
- height: 1.1em;
- margin-right: 0.5em;
-}
-
-.droppable_zone {
- background-color: var(--chill-llight-gray);
- color: white;
- font-size: large;
- text-align: center;
- display: table-cell;
- vertical-align: middle;
- padding: 1em;
- background: linear-gradient(to top, var(--chill-light-gray), 30%, var(--chill-llight-gray));
-}
-
.move_to {
.move_hint {
text-align: center;
@@ -194,18 +172,8 @@ export default {
this.$refs.addPersons.resetSearch(); // to cast child method
modal.showModal = false;
},
- onStartDragConcern(evt, person_id) {
- evt.dataTransfer.dropEffect = 'move'
- evt.dataTransfer.effectAllowed = 'move'
- evt.dataTransfer.setData('application/x.person', person_id)
- },
- onDropConcern(evt, position_id) {
- const person_id = Number(evt.dataTransfer.getData('application/x.person'));
- this.moveToPosition(person_id, position_id);
- },
moveToPosition(person_id, position_id) {
this.$store.dispatch('markPosition', { person_id, position_id });
-
},
removeConcerned(conc) {
this.$store.dispatch('removeConcerned', conc);
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/js/i18n.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/js/i18n.js
index 6e2f395c7..a058a976a 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/js/i18n.js
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/js/i18n.js
@@ -19,6 +19,7 @@ const appMessages = {
move_to: "Déplacer vers",
persons_to_positionnate: 'Usagers à positionner',
persons_leaving: "Usagers quittant leurs ménages",
+ no_person_in_position: "Aucun usager ne sera ajouté à cette position",
},
drop_persons_here: "Glissez-déposez ici les usagers pour la position \"{position}\"",
all_positionnated: "Tous les usagers sont positionnés",