|
@@ -19,6 +19,7 @@ import { mdiRhombusOutline } from '@mdi/js';
|
|
import { mdiStickerPlusOutline } from '@mdi/js';
|
|
import { mdiStickerPlusOutline } from '@mdi/js';
|
|
|
|
|
|
import ContentEditable from '@components/editable/ContentEditable.vue';
|
|
import ContentEditable from '@components/editable/ContentEditable.vue';
|
|
|
|
+import SelectEditable from '@components/editable/SelectEditable.vue';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
props: ['cid'],
|
|
props: ['cid'],
|
|
@@ -158,7 +159,8 @@ export default {
|
|
components: {
|
|
components: {
|
|
CartoucheLayout,
|
|
CartoucheLayout,
|
|
SvgIcon,
|
|
SvgIcon,
|
|
- ContentEditable
|
|
|
|
|
|
+ ContentEditable,
|
|
|
|
+ SelectEditable
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -213,6 +215,23 @@ export default {
|
|
field: {field_name: 'body', value:'value'}
|
|
field: {field_name: 'body', value:'value'}
|
|
}"
|
|
}"
|
|
v-on:updated="reloadBesoins" />
|
|
v-on:updated="reloadBesoins" />
|
|
|
|
+
|
|
|
|
+ <SelectEditable
|
|
|
|
+ v-if="opened_concernement.can_update"
|
|
|
|
+ label="Confidentialité"
|
|
|
|
+ :value="besoin.confidentialite"
|
|
|
|
+ :options="{
|
|
|
|
+ 'confidentialite_prive': 'privé',
|
|
|
|
+ 'confidentialite_interne': 'interne',
|
|
|
|
+ 'confidentialite_public': 'public'
|
|
|
|
+ }"
|
|
|
|
+ :data="{
|
|
|
|
+ entitytype: 'node',
|
|
|
|
+ bundle: 'besoin',
|
|
|
|
+ nid: besoin.id,
|
|
|
|
+ field: 'field_confidentialite'
|
|
|
|
+ }"
|
|
|
|
+ v-on:updated="reloadBesoins" />
|
|
</header>
|
|
</header>
|
|
<ul class="reponses">
|
|
<ul class="reponses">
|
|
<li
|
|
<li
|
|
@@ -251,7 +270,7 @@ export default {
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<a
|
|
<a
|
|
- v-if="isloggedin"
|
|
|
|
|
|
+ v-if="isloggedin && !opened_concernement.can_update"
|
|
:href="'/api/node/add/reponse?besoin_id='+besoin.id"
|
|
:href="'/api/node/add/reponse?besoin_id='+besoin.id"
|
|
target="_blank"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
rel="noopener noreferrer"
|