| 12345678910111213141516171819202122232425262728293031323334 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:92:"F:\docker_www\cjq.wngluo.org.cn_YAZSE\vendor\skycaiji\app\admin\view\taskgroup\add_ajax.html";i:1750210657;s:92:"F:\docker_www\cjq.wngluo.org.cn_YAZSE\vendor\skycaiji\app\admin\view\taskgroup\add_form.html";i:1750210657;}*/ ?>
- <form id="form_item" method="post" ajax-submit="true" role="form" action="<?php echo url('taskgroup/'.($tgData?'edit':'add')); ?>">
- <?php echo html_usertoken(); ?>
- <input type="hidden" name="referer" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" />
- <?php if($tgData): ?>
- <input type="hidden" name="id" value="<?php echo $tgData['id']; ?>" />
- <?php endif; ?>
- <div class="form-group">
- <label><?php echo \think\Lang::get('taskgroup_name'); ?></label>
- <input type="text" class="form-control" name="name" value="<?php echo !empty($tgData)?$tgData['name']:''; ?>">
- </div>
- <div class="form-group">
- <label><?php echo \think\Lang::get('taskgroup_parent_id'); ?></label>
- <select name="parent_id" class="form-control">
- <option value="0"><?php echo \think\Lang::get('none'); ?></option>
- <?php if(is_array($parentTgList) || $parentTgList instanceof \think\Collection || $parentTgList instanceof \think\Paginator): if( count($parentTgList)==0 ) : echo "" ;else: foreach($parentTgList as $tgId=>$tgName): ?>
- <option value="<?php echo $tgId; ?>"><?php echo $tgName; ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </div>
- <div class="form-group">
- <label><?php echo \think\Lang::get('taskgroup_sort'); ?></label>
- <input type="number" class="form-control" name="sort" autocomplete="off" value="<?php echo !empty($tgData)?intval($tgData['sort']):0; ?>">
- <p class="help-block"><?php echo \think\Lang::get('taskgroup_sort_help'); ?></p>
- </div>
- <button type="submit" class="btn btn-primary btn-block"><?php echo \think\Lang::get('submit'); ?></button>
- </form>
- <script type="text/javascript">
- <?php if($tgData&&$tgData['parent_id']): ?>
- $('#form_item select[name="parent_id"]').val("<?php echo $tgData['parent_id']; ?>");
- <?php endif; if(input('parent_id')): ?>
- $('#form_item select[name="parent_id"]').val("<?php echo input('parent_id'); ?>");
- <?php endif; ?>
- </script>
|