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