Skip to content
Snippets Groups Projects
Commit 7d8e3d33 authored by Florent Lavelle's avatar Florent Lavelle
Browse files

remove color selectors on feature type create and edit

parent 7fe24dbc
No related branches found
No related tags found
No related merge requests found
...@@ -86,22 +86,6 @@ ...@@ -86,22 +86,6 @@
:selection.sync="selectedGeomType" :selection.sync="selectedGeomType"
/> />
</div> </div>
<div
v-if="selectedGeomType !== 'Point'"
class="required field"
>
<label :for="form.color.id_for_label">{{ form.color.label }}</label>
<input
:id="form.color.id_for_label"
v-model="form.color.value"
type="color"
required
style="width: 100%; height: 38px"
:name="form.color.html_name"
@blur="updateStore"
>
</div>
</div> </div>
<div class="field"> <div class="field">
<div class="ui checkbox"> <div class="ui checkbox">
...@@ -116,114 +100,8 @@ ...@@ -116,114 +100,8 @@
</div> </div>
</div> </div>
<!-- //* s'affiche après sélection d'option de type liste dans type de champ -->
<div
v-if="colorsStyleList.length > 0 && selectedGeomType !== 'Point'"
id="id_style_container"
class="custom_style"
>
<div
id="id_list_selection"
class="list_selection"
>
<Dropdown
:options="colorsStyleList"
:selected="selected_colors_style"
:selection.sync="selected_colors_style"
:placeholder="'Sélectionner la liste de valeurs'"
/>
</div>
<div
id="id_colors_selection"
class="colors_selection"
hidden
>
<div
v-for="(value, key, index) in form.colors_style.value.colors"
:key="'colors_style-' + index"
>
<div
v-if="key"
class="color-input"
>
<label>{{ key }}</label><input
:name="key"
type="color"
:value="value"
@input="setColorStyles"
>
</div>
</div>
</div>
</div>
<span v-if="action === 'duplicate' || action === 'edit'" /> <span v-if="action === 'duplicate' || action === 'edit'" />
<!-- <div
v-if="csvFields && csvFields.length"
id="csv-fields"
>
<table class="ui striped table">
<thead>
<tr>
<th>Champ</th>
<th>X</th>
<th>Y</th>
</tr>
</thead>
<tbody>
<tr
v-for="field in csvFields"
:key="field.field"
>
<td>
{{ field.field }}
</td>
<td>
<div
class="ui radio checkbox"
:class="{ disabled: field.y }"
>
<input
:disabled="field.y"
type="radio"
name="x"
@input="pickXcsvCoordField(field)"
>
<label />
</div>
</td>
<td>
<div
class="ui radio checkbox"
:class="{ disabled: field.x }"
>
<input
:disabled="field.x"
type="radio"
name="y"
@input="pickYcsvCoordField(field)"
>
<label />
</div>
</td>
</tr>
</tbody>
</table>
<button
class="ui teal icon button margin-25"
type="button"
:disabled="
!csvFields.some(el => el.x === true) ||
!csvFields.some(el => el.y === true)
"
@click="setCSVCoordsFields"
>
<i class="white save icon" />
Continuer
</button>
</div> -->
<div v-else> <div v-else>
<div id="formsets"> <div id="formsets">
<FeatureTypeCustomForm <FeatureTypeCustomForm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment