|
@@ -19,6 +19,7 @@ import { mdiRhombusOutline } from '@mdi/js';
|
|
|
import { mdiStickerPlusOutline } from '@mdi/js';
|
|
|
|
|
|
import ContentEditable from '@components/editable/ContentEditable.vue';
|
|
|
+import SelectEditable from '@components/editable/SelectEditable.vue';
|
|
|
|
|
|
export default {
|
|
|
props: ['cid'],
|
|
@@ -158,7 +159,8 @@ export default {
|
|
|
components: {
|
|
|
CartoucheLayout,
|
|
|
SvgIcon,
|
|
|
- ContentEditable
|
|
|
+ ContentEditable,
|
|
|
+ SelectEditable
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -213,6 +215,23 @@ export default {
|
|
|
field: {field_name: 'body', value:'value'}
|
|
|
}"
|
|
|
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>
|
|
|
<ul class="reponses">
|
|
|
<li
|
|
@@ -251,7 +270,7 @@ export default {
|
|
|
</li>
|
|
|
</ul>
|
|
|
<a
|
|
|
- v-if="isloggedin"
|
|
|
+ v-if="isloggedin && !opened_concernement.can_update"
|
|
|
:href="'/api/node/add/reponse?besoin_id='+besoin.id"
|
|
|
target="_blank"
|
|
|
rel="noopener noreferrer"
|