Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing inner repeater repeater exactly like the first outer repeater in edit case #23

Open
wasif-iqbal opened this issue May 6, 2016 · 1 comment

Comments

@wasif-iqbal
Copy link

I am using your plugin for outer and inner repeater and its working great. But in my inner repeater edit case its showing me the inner-repeater first loop elements. Although its working fine in the create process. Can you please let me know where I am doing mistake or what i am doing wrong.

`



@if(isset($questionaire))
@foreach($questionaire->questions as $question)








{{Form::label('text', 'Text')}}
{{ Form::text('text',$question->text,['class'=>'form-control']) }}


        <div class="option-value">
            <div class="form-group">
                <div class='row' >

                    <div class='col-md-6'>
                        {{Form::label('scope', 'Scope')}}
                        {{ Form::select('scope',$scope,$question->scope,['class'=>'form-control']) }}
                    </div>
                    <div class='col-md-6'>
                        {{Form::label('type', 'Type')}}
                        {{ Form::select('type',$type,$question->type,['class'=>'form-control type']) }}
                    </div>

                </div> <!-- row -->
            </div>


            <!--Text value repeater start-->  


            <div class="inner-repeater">
                <div data-repeater-list="options"> 
                      <div data-repeater-item>
                        <div class="form-group">
                        <div class="row">

                                <div class="col-md-6">
                                    {{Form::label('text','Text')}}
                                    {{Form::text('text',null,['class'=>'form-control'])}}
                                </div>
                                <div class="col-md-5">
                                    {{Form::label('value','Value')}}
                                    {{Form::text('value',null,['class'=>'form-control'])}}
                                </div>
                                <div class="col-sm-1">
                                    {{Form::label('delete', 'Delete',['class'=>'white'])}}
                                    <span data-repeater-delete="" class="btn btn-danger btn-sm">
                                        <span class="glyphicon glyphicon-remove"></span>
                                    </span>
                                </div>

                          </div> <!-- row -->

                        </div> <!-- form-group -->

                    </div>  <!-- data-repeater-list -->


                </div> <!-- Data repeater list -->
                <input data-repeater-create type="button" value="Add"/>
            </div> <!-- inner repeater -->
            <!--Text value repeater ends-->
        </div>

        <div class="form-group">
            <div class="row">
                <div class='col-md-6'>
                    {{Form::label('description', 'Description')}}
                    {{ Form::textarea('description',$question->description,['class'=>'form-control','placeholder'=>'Enter quantity']) }}
                </div>

                <div class='col-md-6'>
                    {{Form::label('extra', 'Extra')}}
                    {{ Form::textarea('extra',$question->extra,['class'=>'form-control','placeholder'=>'Enter quantity']) }}
                </div>
            </div>

         </div>


    </div> <!-- Data-repeater-item-->
    @endforeach
    @endif`

Thanks.

@tungltdev
Copy link

I also got the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants