-
Notifications
You must be signed in to change notification settings - Fork 272
/
layout.erb
31 lines (26 loc) · 1.12 KB
/
layout.erb
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
<!DOCTYPE html>
<html>
<head>
<title>Shrine Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Shrine demo featuring multiple file uploads to S3 with Uppy" />
<script src="https://unpkg.com/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/whatwg-fetch@2.0.3/fetch.js"></script>
<script src="https://transloadit.edgly.net/releases/uppy/v0.25.2/dist/uppy.min.js"></script>
<link href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css" media="screen" rel="stylesheet" />
<link href="https://transloadit.edgly.net/releases/uppy/v0.25.2/dist/uppy.min.css" rel="stylesheet" />
<%= assets(:css) %>
<script type="text/template" id="template-photo">
<% f = Forme::Form.new(Album.new, labeler: :explicit) %>
<% f.with_obj(Photo.new, ["photos_attributes", "{{index}}"]) do %>
<%= partial("albums/photo", locals: { f: f }) %>
<% end %>
</script>
</head>
<body>
<div class="container">
<%= yield %>
</div>
<%= assets(:js) %>
</body>
</html>