forked from davidworkman9/meteor-editable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
editable.html
55 lines (51 loc) · 2.3 KB
/
editable.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
<template name="m_editable">
{{#with settings}}
{{> m_editable_main}}
{{/with}}
</template>
<template name="m_editable_handle_atag">
<a href="#" class="editable editable-click {{editableEmpty}}">{{displayVal}}</a>
</template>
<template name="m_editable_handle_span">
<span class="editable editable-click {{editableEmpty}}">{{displayVal}}</span>
</template>
<template name="m_editable_main">
{{> m_editable_handle displayVal=displayVal editableEmpty=editableEmpty handle=handle }}
<div class="popover {{position}} editable-popup m_editable-popup editable-container">
<div class="arrow"></div>
{{#if title}}
<h3 class="popover-title">{{title}}</h3>
{{/if}}
<div class="popover-content">
{{#unless loading}}
<div>
<div class="editableform-loading" style="display: none;"></div>
<form class="form-inline editableform" style="">
<div class="control-group form-group">
<div>
<div class="editable-input" style="position: relative;">
{{> inputTemplate}}
</div>
{{#if showbuttons}}
<div class="editable-buttons">
<button type="submit" class="btn btn-primary btn-sm editable-submit">
<i class="glyphicon glyphicon-ok"></i>
</button>
<button type="button" class="btn btn-default btn-sm editable-cancel">
<i class="glyphicon glyphicon-remove"></i>
</button>
</div>
{{/if}}
</div>
<div class="editable-error-block help-block" style="display: none;"></div>
</div>
</form>
</div>
{{else}}
<div class="editableform-loading">
Loading...
</div>
{{/unless}}
</div>
</div>
</template>