ucpengine 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da3fc2347e5716f9f549a545bd6cb3a9cde5e32b
4
- data.tar.gz: 78a135ad4902cd88f5adc3e97d5731fdb70be421
3
+ metadata.gz: e7ce4100226f9cdbb7b0d0eab85b308c73d53d19
4
+ data.tar.gz: a145a8a866bb4269ed82ca2c963d9b07ddf6ac57
5
5
  SHA512:
6
- metadata.gz: d1f8227352d67cb0432409aee74d2305258825696235df972e7814c86519d72e4946ce8b313d81a4c5dad5b6e812a61eb8851fe2368cc3ed6c14cd584dedce52
7
- data.tar.gz: df0c1fb82035d91a70eee4d32e829273fc3747aa388966dac758f9e22ef16a3ad185326003ff8d78305879d24b8c4c595437f87c2e77d9181e67e8121c206b76
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
- <% @entry.class.content_attributes.each do |attr_name, attr_type| %>
16
- <%= f.text_area attr_name, as: attr_type %>
17
- <% end %>
18
- <%= f.submit "Save" %>
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>Terms of Service Preview</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 %></h4></li>
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) %>
@@ -1,3 +1,3 @@
1
1
  module Ucpengine
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucpengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr