outl1ne / nova-simple-repeatable

A Laravel Nova simple repeatable rows field.
MIT License
73 stars 44 forks source link

* Missing on required fileds #45

Closed TNDJX closed 1 year ago

TNDJX commented 1 year ago

When setting fields as required * is missing from the field label.

Example:

image image

Field Text should have red * to indicate that field is required

TNDJX commented 1 year ago

I have also played around and only thing needed is that in FormField.vue we added something like this

<div
  v-for="(rowField, i) in fields"
  :key="i"
  class="nsr-font-bold nsr-text-90 nsr-text-md nsr-w-full nsr-ml-3 nsr-flex nsr-space-x-1"
  >
  <span>
    {{ rowField.name }}
  </span>
  <span v-if="rowField.required" class="nsr-text-red-500 nsr-text-sm">
    {{ __('*') }}
  </span>

I would open a PR but Its not letting me push to the branch I created

marttinnotta commented 1 year ago

Hi and thank you!

This will be available in the next release.