Skip to content

Commit

Permalink
temp changes frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jan 6, 2025
1 parent 06936d7 commit a17184e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontend/src/views/PurchasesImporter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,20 @@
<tr v-for="(field, idx) in documentation" :key="idx">
<td>{{ field.name }}</td>
<td>{{ field.title }}</td>
<td v-html="field.description"></td>
<td>
<p>{{ field.description }}</p>
<p v-if="field.constraints && field.constraints.enum">
Options acceptées : {{ field.constraints.enum.join(", ") }}.
</p>
<p v-if="field.constraints && field.constraints.enum && field.constraints.enum_multiple">
Spécifiez plusieurs options en séparant avec un
<em>,</em>
.
</p>
</td>
<td style="min-width: 150px;">{{ field.type }}</td>
<td>{{ field.example }}</td>
<td class="text-center">{{ field.constraints ?? required ? "✔" : "✘" }}</td>
<td class="text-center">{{ field.constraints && field.constraints.required ? "✔" : "✘" }}</td>
</tr>
</tbody>
</template>
Expand Down

0 comments on commit a17184e

Please sign in to comment.