-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
62 lines (48 loc) · 1.82 KB
/
admin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div class="editor-box">
<div class="row top">
<div class="col-md-3 title">修改简历</div>
<div class="col-md-9 action"><a ng-href="#/resume">返回首页</a></div>
</div>
<div ng-show="resume.show==0" class="pad40">
<center>
<p>请返回首页,输入阅读密码后再编辑</p>
</center>
</div>
<form role="form" ng-show="resume.show==1">
<div class="settings form-inline">
<div class="form-group">
<input type="text" class="form-control" id="title" name="title" placeholder="简历标题" ng-model="resume.title">
</div>
<div class="form-group">
<input type="text" class="form-control" id="subtitle" name="subtitle" placeholder="简历小标题" ng-model="resume.subtitle">
</div>
<div class="form-group">
<label for="admin_password">管理密码</label>
<input type="password" class="form-control" id="admin_password" name="admin_password" placeholder="" ng-model="resume.admin_password">
</div>
<div class="form-group">
<label for="view_password">阅读密码</label>
<input type="password" class="form-control" id="view_password" name="view_password" placeholder="为空则公开可见" ng-model="resume.view_password">
</div>
<button type="submit" class="btn btn-default" ng-click="save(resume)">保存</button>
</div>
<div class="row earea">
<div class="col-md-6">
<textarea class="editor" ng-model="resume.content" id="edit_area" >
</textarea>
</div>
<div class="col-md-6">
<div class="preview yue" id="editor-preview" ng-bind-html="resume.content | wizMarkdownFltr"></div>
</div>
</div>
</form>
</div>
<script type="text/javascript">
$(document).ready(function()
{
var h = $(window).height() - 135 + 'px';
$('#edit_area').css('height', h );
$('#editor-preview').css('height', h );
console.log(h);
});
</script>