-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudinary-video.html
53 lines (49 loc) · 2.63 KB
/
cloudinary-video.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
<div class="cloudinary-image-field agility-attachment-field panel agility-field-panel">
<div class="panel-heading">
<div class="pull-right">
<!-- ko if: isImageSet() -->
<button class="special refresh btn btn-primary" data-bind="click: chooseImage">Replace</button>
<button class="special refresh btn btn-primary" data-bind="click: editImage">Edit</button>
<button class="trash btn btn-primary" data-bind="click: removeImage">Remove</button>
<!-- /ko -->
<!-- ko ifnot: isImageSet()-->
<button class="special refresh btn btn-primary" data-bind="click: chooseImage">Choose</button>
<!-- /ko -->
</div>
<div class="panel-title">
<!-- ko ifnot: isImageSet()-->
<i class="fa fa-file-Image-o"></i>
<img src="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164189/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_regular.svg" style="height: 1em"/>
No image selected yet from Cloudinary
<!-- /ko -->
<!-- ko if: isImageSet()-->
<img src="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164189/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_regular.svg" style="height: 1em"/>
<span data-bind="visible: fieldBinding().derived.raw_transformation()">An image (<a target="_blank" rel="noopener" data-bind="attr: { href: fieldBinding().derived.secure_url }">with transformations</a>) been selected from Cloudinary</span>
<span data-bind="visible: !fieldBinding().derived.raw_transformation()">An image been selected from Cloudinary</span>
<!-- /ko -->
</div>
</div>
<!-- ko if: isImageSet() -->
<div class="panel-body">
<!-- <span data-bind="text:fieldBinding().secure_url"></span> -->
<div style="display: flex;">
<div style="width: 220px; padding: 10px; min-width: 100px;">
<img data-bind="attr: { src: thmSrc }" style="max-width: 100%;" />
</div>
<div style="flex:1">
<div style="display: flex; align-items: center; margin-bottom: 8px;">
<div style="width: 70px;">
<strong>Alt text:</strong>
</div>
<input type="text" data-bind="value:fieldBinding().alt" class="form-control" />
</div>
<div><strong>Public ID:</strong> <span data-bind="text: fieldBinding().public_id"></span></div>
<div><strong>Original URL:</strong> <a target="_blank" rel="noopener" data-bind="attr:{ href: fieldBinding().secure_url }">View</a></div>
<!-- ko if: fieldBinding().derived.secure_url -->
<div><strong>Transformed URL:</strong> <a style="word-break: break-word;" target="_blank" rel="nofollow" data-bind="attr:{ href: fieldBinding().derived.secure_url}">View</a></div>
<!-- /ko -->
</div>
</div>
</div>
<!-- /ko -->
</div>