123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- {template 'common/header'}
- <div class="new-keyword">
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{url 'user/fields/display'}"><i class="wi wi-back-circle"></i> </a>
- <li><a href="{url 'user/fields/display'}">用户属性设置</a></li>
- <li>编辑字段</li>
- </ol>
- <div class="we7-form" id="js-field-post" ng-controller="FieldsPost" ng-cloak>
- <form action="" method="post">
- <input type="hidden" name="id" value="{$item['id']}">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">字段</label>
- <div class="form-controls col-sm-8">
- <input type="text" id="" name="field" class="form-control" ng-blur="verifyField()" ng-model="item.field" readonly ng-if="!item" placeholder="请使用字母或数字或下划线组合字段名">
- <input type="text" id="" name="field" class="form-control" ng-blur="verifyField()" ng-model="item.field" ng-if="item" placeholder="请使用字母或数字或下划线组合字段名">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">字段长度</label>
- <div class="form-controls col-sm-8">
- <select name="length" >
- <option value="64">64</option>
- <option value="128" ng-selected="item.field_length == 128">128</option>
- <option value="255" ng-selected="item.field_length == 255">255</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">排序</label>
- <div class="form-controls col-sm-8">
- <input type="text" name="displayorder" class="form-control" ng-model="item.displayorder">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">名称</label>
- <div class="form-controls col-sm-8">
- <input type="text" id="" name="title" class="form-control" ng-model="item.title">
- </div>
- </div>
-
- <div class="form-group">
- <label for="" class="control-label col-sm-2">描述</label>
- <div class="form-controls col-sm-8">
- <textarea name="description" rows="4" class="form-control" ng-bind="item.description"></textarea>
-
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">是否启用</label>
- <div class="form-controls col-sm-8">
- <input type="radio" name="available" id="radio-1" value="1" ng-checked="available">
- <label for="radio-1">是</label>
- <input type="radio" name="available" id="radio-2" value="0" ng-checked="!available">
- <label for="radio-2">否</label>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">是否必填</label>
- <div class="form-controls col-sm-8">
- <input id='radio-3' type="radio" name="required" value="1" ng-checked="required">
- <label for="radio-3">是</label>
- <input id='radio-4' type="radio" name="required" value="0" ng-checked="!required">
- <label for="radio-4">否</label>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">提交后不可修改</label>
- <div class="form-controls col-sm-8">
- <input id='radio-5' type="radio" name="unchangeable" value="1" ng-checked="unchangeable">
- <label for="radio-5">是</label>
- <input id='radio-6' type="radio" name="unchangeable" value="0" ng-checked="!unchangeable">
- <label for="radio-6">否</label>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">在注册页面显示</label>
- <div class="form-controls col-sm-8">
- <input id='radio-7' type="radio" name="showinregister" value="1" ng-checked="showinregister">
- <label for="radio-7">是</label>
- <input id='radio-8' type="radio" name="showinregister" value="0" ng-checked="!showinregister">
- <label for="radio-8">否</label>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="col-sm-offset-2">
- <input type="submit" name="submit" value="保存" class="btn btn-primary" ng-style="{'padding': '6px 50px'}"/>
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- </div>
- </div>
- <script>
- angular.module('userManageApp').value('config', {
- item: {php echo json_encode((array)$item)},
- });
- angular.bootstrap($('#js-field-post'), ['userManageApp']);
- </script>
- {template 'common/footer'}
|