ucpengine 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7ce4100226f9cdbb7b0d0eab85b308c73d53d19
|
|
4
|
+
data.tar.gz: a145a8a866bb4269ed82ca2c963d9b07ddf6ac57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b58f0acd06619ff8a486734c1710d9ed35aea67893aa4dd6c44b8263391bb114cc0c8d771cde1b543062ae05aabe626e9bcd27b892d4f6fbc69315be5dd82d7a
|
|
7
|
+
data.tar.gz: ce5a30643bbbdc1822e1d01b6d1f4bd523c91ba41d08458cdfcee59c5f7c5fbaaf635efcdd7364a3e179c9fa4116e755f6db695011f60f70c616c44c850542bc
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<%= stylesheet_link_tag "ucpengine/application", media: "all" %>
|
|
6
6
|
<%= javascript_include_tag "ucpengine/application" %>
|
|
7
7
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
|
|
8
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
|
|
8
9
|
<%= csrf_meta_tags %>
|
|
9
10
|
</head>
|
|
10
11
|
<body>
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
<div class="row">
|
|
19
20
|
|
|
20
21
|
<div class="col s3 ucp-sidenav">
|
|
21
|
-
|
|
22
|
+
|
|
22
23
|
<p class="ucp-title">UCP cms Dashboard</p>
|
|
23
24
|
|
|
24
25
|
<ul class="collection">
|
|
@@ -12,14 +12,23 @@
|
|
|
12
12
|
-->
|
|
13
13
|
|
|
14
14
|
<p>Terms of Service</p>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
|
|
16
|
+
<div class="input-field col s12">
|
|
17
|
+
<% @entry.class.content_attributes.each do |attr_name, attr_type| %>
|
|
18
|
+
<%= f.text_area attr_name, as: attr_type, class: 'materialize-textarea' %>
|
|
19
|
+
<% end %>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<%= f.submit "Create and Save", class: 'btn' %>
|
|
19
23
|
<% end %>
|
|
20
24
|
</div>
|
|
21
25
|
<div class="col s5">
|
|
22
|
-
<p>
|
|
26
|
+
<p>Preview</p>
|
|
23
27
|
<div id="live-preview" data-preview-url="<%= preview_path %>"></div>
|
|
24
28
|
</div>
|
|
25
29
|
</div>
|
|
30
|
+
|
|
31
|
+
<script type="text/javascript">
|
|
32
|
+
$('#textarea1').val('New Text');
|
|
33
|
+
$('#textarea1').trigger('autoresize');
|
|
34
|
+
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<ul class="collection with-header">
|
|
2
|
-
<li class="collection-header"><h4>Recent Terms of Service <br><%= link_to "New #{content_class.titleize}", new_content_entry_path %></
|
|
2
|
+
<li class="collection-header"><h4>Recent Terms of Service</h4> <br><%= link_to "New #{content_class.titleize}", new_content_entry_path %></li>
|
|
3
3
|
<% @entries.each do |entry| %>
|
|
4
4
|
<li class="collection-item">
|
|
5
5
|
Version: <%= link_to entry.version, content_entry_path(entry) %>
|
data/lib/ucpengine/version.rb
CHANGED