123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- @extends('admin/layout')
- @section('header')
- <link href="{{asset('css/plugins/chosen/chosen.css?v=1')}}" rel="stylesheet">
- <link href="{{asset('css/plugins/switchery/switchery.css?v=1')}}" rel="stylesheet">
- <link href="{{asset('js/plugins/bootstrap-select-1.13.5/css/bootstrap-select.min.css')}}" rel="stylesheet">
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="get" class="form-horizontal" id="form">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="type">外链类型:</label>
- <div class="col-sm-8 ">
- <select class=" form-control"
- id="type" name="type" data-live-search="true"
- title="请选择外链类型" autocomplete="off">
- @foreach ($typeList as $key=>$item)
- <option value="{{$key}}"
- @if(($data->type??null)==$key) selected @endif>{{$item}}</option>
- @endforeach
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="url">平台链接:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="url" name="url"
- value="{{$data->url??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="username_history">用户名:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="username_history" name="username_history"
- value="{{$data->username_history??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="email_history">邮箱:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="email_history" name="email_history"
- value="{{$data->email_history??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="url">密码:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="password_history" name="password_history"
- value="{{$data->password_history??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="url_history">profile演示地址:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="url_history" name="url_history"
- value="{{$data->url_history??''}}">
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary" type="button"
- onclick="units.save({{$data->id??0}})">
- 保存
- </button>
- <button class="btn btn-white closeLayer" type="button">取消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script src="{{asset('js/plugins/switchery/switchery.js?v=1')}}"></script>
- <script src="{{asset('js/plugins/bootstrap-select-1.13.9/dist/js/bootstrap-select.min.js')}}"></script>
- <script>
- var units = {
- save: function (id) {
- var url = '/admin/link/case/' + id + '/save';
- var data = tips.getFormValues('#form');
- // if ($("#business_ids").val()) {
- // data.business_ids = $("#business_ids").val().toLocaleString();
- // }
- // if ($("#cost").val()) {
- // data.cost = $("#cost").val().toLocaleString();
- // }
- var ajaxConfig = {
- url: url,
- type: 'put',
- data: data,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- tips.closeParentLayer();
- window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- }
- };
- </script>
- @endsection
|