Skip to content

Firefly III: a personal finances manager

1.2 KB
Raw Blame
<tr data-count="{{ $count }}" class="rule-action-holder">
    <td class="forty-px">
        <a href="#" class="btn btn-danger btn-sm remove-action"><span class="bi bi-trash"></span></a>
    </td>
    <td class="thirty">
        {{-- TODO error when invalid name --}}
        <select name="actions[{{ $count }}][type]" class="form-select">
            @foreach(all_rule_actions() as $key => $type)
                <option value="{{ $key }}" label="{{ $type }}" @if($key === $oldAction) selected @endif>{{ $type }}</option>
            @endforeach
        </select>
    </td>
    <td class="position-relative">

        <input autocomplete="off" type="text" value="{{ $oldValue }}" name="actions[{{ $count }}][value]"
               class="form-control">
        @if($errors->has('actions.' . $count . '.value'))
            <p class="text-danger">
                {{ $errors->first('actions.' . $count . '.value') }}
            </p>
        @endif
    </td>
    <td class="twenty">
        <div class="checkbox">
            <label>
                <input type="checkbox" name="actions[{{ $count }}][stop_processing]" value="1"
                       @if($oldChecked) checked @endif
                />
            </label>
        </div>
    </td>
</tr>