westdc-zf1/application/admin/views/scripts/data/ref-mdref-form.phtml

53 lines
2.6 KiB
PHTML

<!-- Modal -->
<div class="modal fade" id="mdref-form" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">添加数据文献</h4>
</div>
<div class="modal-body">
<form id="mdref" method="post" class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label" for="inputRefid">文献ID</label>
<div class="col-sm-8">
<input type="text" name="refid" id="inputfid" placeholder="文献ID" class="form-control" value="<?= empty($this->refid) ? "":$this->refid ?>" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="inputUuid">元数据UUID</label>
<div class="col-sm-8">
<input type="text" name="uuid" id="inputUuid" placeholder="UUID" class="form-control">
<span class="help-block"><a href="javascript:void(0);" onclick="$(this).parent('span').prev('input').val('e31f5ea7-a4af-4ae3-9ac1-1a84132c4338')">设为数据中心文献</a></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="inputPlace">排序数值(数字)</label>
<div class="col-sm-8">
<input type="text" name="place" id="inputPlace" placeholder="排序" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文献类型</label>
<div class="col-sm-8">
<?php foreach($this->referenceType as $k=>$v) { ?>
<label class="radio">
<input type="radio" name="reftype" value="<?= $k ?>" /> <?= $v ?>
</label>
<?php } ?>
</div>
</div>
<input type="hidden" name="id" value="" />
</form>
</div>
<div class="modal-footer">
<div class="progress progress-striped active" id="submit-loading" style="display:none;">
<div class="bar" style="width:100%;"></div>
</div>
<button onclick="$('#mdref')[0].reset();" class="btn">重置</button>
<button onclick="$('#mdref-form').modal('hide');" class="btn">关闭</button>
<button onclick="mdref.create()" class="btn btn-primary" id="submit_btn">保存</button>
</div>
</div>
</div>
</div>