Skip to content
Snippets Groups Projects
Commit 930d8b60 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

prevent error in feature_detail special field

parent ebb3b556
No related branches found
No related tags found
No related merge requests found
......@@ -51,31 +51,37 @@
<div class="row">
<div class="seven wide column">
<table class="ui very basic table">
<tbody>test
<tr v-for="field in feature.feature_data" :key="field.label">
<td>
<b>{{ field.label }}</b>
</td>
<td>
<b>
<i
v-if="
field.field_type === 'boolean' && field.value === true
"
class="olive check icon"
></i>
<i
v-else-if="
field.field_type === 'boolean' && field.value === false
"
class="red times icon"
></i>
<span v-else>
{{ field.value }}
</span>
</b>
</td>
</tr>
<tbody>
<div
v-frag
v-for="(field, index) in feature.feature_data"
:key="'field' + index"
>
<tr v-if="field">
<td>
<b>{{ field.label }}</b>
</td>
<td>
<b>
<i
v-if="
field.field_type === 'boolean' && field.value === true
"
class="olive check icon"
></i>
<i
v-else-if="
field.field_type === 'boolean' && field.value === false
"
class="red times icon"
></i>
<span v-else>
{{ field.value }}
</span>
</b>
</td>
</tr>
</div>
<tr>
<td>Auteur</td>
<td>{{ feature.display_creator }}</td>
......@@ -300,7 +306,7 @@
: "Sélectionner un fichier ..."
}}</span>
</label>
<!-- // todo : get image from "C:\\fakepath\..." -->
<!-- // todo : get image from "C:\\fakepath\..." -->
<input
type="file"
accept="application/pdf, image/jpeg, image/png"
......
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