addCase.html 1.71 KB
<div class="inmodal">
  <div class="modal-header">
    <h4 class="modal-title">添加案例</h4>
    <button type="button" class="close" data-dismiss="modal" ng-click="$dismiss()">
      <span aria-hidden="true">×</span> <span class="sr-only">Close</span>
    </button>
  </div>
  <div class="modal-body ofy-visible">
    <form class="form-inline col-lg-12 form-pushList" name="addForm">
        <div class="form-group" style="margin-left: 45px;margin-bottom: 30px;">
            <label class="name control-label required">标题:</label>
            <input type="text" style="width: 200px" name="title" class="form-control" maxlength="62" required ng-model="addCaseForm.title" placeholder="请输入">
            <div class="m-t-xs" style="margin-left: 50px" ng-show="addForm.title.$invalid && submitted">
                <small class="text-danger" ng-show="addForm.title.$error.required">请输入</small>
            </div>
        </div>
        <div class="form-group" style="margin-left: 45px;">
            <label class="name control-label required">链接:</label>
            <input type="text" style="width: 200px" name="url" class="form-control" required ng-model="addCaseForm.url" placeholder="请输入">
            <div class="m-t-xs" style="margin-left: 50px" ng-show="addForm.url.$invalid && submitted">
                <small class="text-danger" ng-show="addForm.url.$error.required">请输入</small>
            </div>
        </div>
    </form>
  </div>
  <div class="modal-footer">
      <button type="button" class="btn btn-primary" ng-click="submit()" ladda="submiting" data-style="expand-right">添加</button>
      <button type="button" class="btn btn-default" ng-click="$dismiss()">取消</button>
  </div>
</div>