Hide some non-changeable selections
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
<h2>Selektionsmerkmale</h2>
|
||||
<template v-for="selectionGroup in this.crmData.selectionGroups">
|
||||
<h3>{{ selectionGroup.name}}</h3>
|
||||
<div class="checkbox" v-for="selection in selectionGroup.selections">
|
||||
<div class="checkbox" v-for="selection in selectionGroup.selections"
|
||||
v-if="selection.changeable === true || selection.value === true">
|
||||
<label :class="{ disabled: !selection.changeable}">
|
||||
<input type="checkbox" class="form-control" v-model="selection.value"
|
||||
:disabled="!selection.changeable" @change="saveSelections()"/>
|
||||
@@ -25,9 +26,11 @@
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<h2>CRM Aktionen</h2>
|
||||
<div class="checkbox" v-for="action in this.crmData.actions">
|
||||
<div class="checkbox" v-for="action in this.crmData.actions"
|
||||
v-if="action.changeable === true || action.value === true">
|
||||
<label :class="{ disabled: !action.changeable}">
|
||||
<input type="checkbox" class="form-control" v-model="action.value" :disabled="!action.changeable"
|
||||
<input type="checkbox" class="form-control"
|
||||
v-model="action.value" :disabled="!action.changeable"
|
||||
@change="saveSelections()"/>
|
||||
<span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span>
|
||||
{{ action.name }}
|
||||
|
||||
Reference in New Issue
Block a user