File "edit.blade.php"

Full Path: /home/isoftco/public_html/hrm/resources/views/admin/faq/edit.blade.php
File size: 2.28 KB
MIME-type: text/html
Charset: utf-8

{!! Form::open(array('url'=>"",'class'=>'form-horizontal edit_form','id'=>'add_edit_form')) !!}
<div class="form-body">

    <div class="form-group">
        <label class="col-md-3 control-label">{{trans('core.faqCategory')}}: <span class="required">
                        * </span>
        </label>
        <div class="col-md-8">
            <select class="form-control select2me" name="faq_category_id">
                <option value="" selected="selected">{{trans('core.selectFaqCategory')}}</option>
                @foreach($faqCategories as $faqCategory)
                    <option value="{{ $faqCategory->id }}" @if($faqCategory->id == $faq->faq_category_id) selected @endif>{{ $faqCategory->name }}</option>
                @endforeach
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label">{{trans('core.title')}}: <span class="required">
                        * </span>
        </label>
        <div class="col-md-8">
            <input type="text" class="form-control" id="title" name="title" placeholder="{{trans('core.title')}}"
                   value="{{$faq->title}}">
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label">{{trans('core.faqContent')}}: <span class="required">
                        * </span>
        </label>
        <div class="col-md-8">
            <textarea class="form-control" id="content_text" style="height: 150px;"
                      name="content_text">{{ $faq->content_text }}</textarea>
        </div>
    </div>
</div>

<div class="modal-footer">
    <div class="form-actions">
        <div class="row">
            <div class="col-md-offset-3 col-md-9">
                <button type="submit" id="submitbutton_update" onclick="updateData({{ $faq->id }});return false;"
                        class=" btn green"><i class="fa fa-edit"></i> {{trans('core.btnSubmit')}}</button>
                <button type="button" data-dismiss="modal"
                        class="btn dark btn-outline">{{trans('core.btnCancel')}}</button>
            </div>
        </div>
    </div>
</div>
{!!  Form::close()  !!}

<script type="text/javascript">
    $('.select2me').select2({
        placeholder: "Select",
        width: '100%',
        allowClear: false
    });
</script>