
<div id="window_pollRegister" class="page-window">
  <form class="form-horizontal" method="POST" role="form" action="<?php echo e(url('/admin/pollsave')); ?>" id="pollRegister_form" style="width:100%; height: 100%">
    <input type="hidden" class="prev_window"/>
      <div class="row-fluid">
        <div class="span12">

          <div class="grid simple">
            <div class="grid-title">
              <h4><span class="semi-bold"><?php echo e(trans('resource.poll.register')); ?></span></h4>
            </div>
            <div class="grid-body">
                <!-- QUESTION -->

                <?php $__currentLoopData = $langs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                  <div class="row-fluid">

                    <div class="span8">
                      <div class="control-group">
                        <label class="control-label"><?php echo e(trans('resource.poll.question')); ?> /<?php echo e($lang->lang_key); ?>/</label>
                        <div class="controls">
                          <input type="text" class="span12" name="question[<?php echo e($lang->lang_key); ?>]" class="<?php echo e($lang->lang_key); ?>"/>
                        </div>
                      </div>
                    </div>

                  </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>

                <div class="answer-container">
                  <div class="sub-container row-fluid">
                    <?php $__currentLoopData = $langs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                      <div class="row-fluid answer-item">

                        <div class="span8">
                          <div class="control-group">
                            <label class="control-label"><?php echo e(trans('resource.poll.answer')); ?> /<?php echo e($lang->lang_key); ?>/</label>
                            <div class="controls">
                              <input type="text" class="span12" name="answer[0][<?php echo e($lang->lang_key); ?>]" lang="<?php echo e($lang->lang_key); ?>"/>
                            </div>
                          </div>
                        </div>

                      </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                    <div class="row-fluid">
                      <div class="span8">
                        <button type="button" class="btn btn-primary btn-cons pull-right remove-btn" style="display: none;" onclick="upoll.removeAnswer(this); return false;">-</button>
                      </div>
                    </div>
                  </div>
                </div>

                <div class="row-fluid">

                  <div class="span8">
                    <div class="control-group">
                      <div class="controls">
                        <button type="button" class="btn btn-primary btn-cons pull-right" onclick="upoll.addAnswer(); return false;">+</button>
                      </div>
                    </div>
                  </div>

                </div>

                <div class="row-fluid">

                  <div class="span8">
                    <div class="control-group">
                      <div class="controls">
                        <div class="checkbox check-default checkbox-circle">
                          <input id="checkbox_ismakeactive" name="active_flag" value="1" type="checkbox" />
                          <label for="checkbox_ismakeactive"><?php echo e(trans('resource.poll.makeactive')); ?></label>
                        </div>
                      </div>
                    </div>
                  </div>

                </div>



              </div>

              <!-- BUTTONS -->
              <div class="row-fluid">

                <div class="span8" style="text-align: center;">
                  <div class="control-group">
                    <div class="controls">
                      <button type="button" class="btn btn-primary btn-cons" onclick="uForm.register('pollRegister_form', function(data){ console.log(data); uPage.close('window_pollRegister'); baseGridFunc.reload('poll_grid') });return false;">Хадгалах</button>
                      <button type="button" class="btn btn-primary btn-cons" onclick="uPage.close('window_pollRegister');return false;">Хаах</button>
                    </div>
                  </div>
                </div>


              </div>
          </div>

        </div>
      </div>
  </form>
</div>
