Commit 2b4fb31511fd4aeccd5f053714e4dcfd890b172c

Authored by Karpikau Andrei
1 parent b352087e

small check

@@ -18,6 +18,10 @@ @@ -18,6 +18,10 @@
18 } 18 }
19 } 19 }
20 20
  21 +.dd3-disabled {
  22 + .dd3-handle, .dd3-content {opacity:0.5;}
  23 +}
  24 +
21 .dd-full-width{ 25 .dd-full-width{
22 max-width:100% !important; 26 max-width:100% !important;
23 } 27 }
1 <% collection.each do |page| %> 1 <% collection.each do |page| %>
2 - <li class="dd-item dd3-item" data-id="<%= page.id %>"> 2 + <li class="dd-item dd3-item <%= page.active? ? '' : 'dd3-disabled' %>" data-id="<%= page.id %>">
3 <div class="dd-handle dd3-handle dd3-page-list-handle">&nbsp;</div> 3 <div class="dd-handle dd3-handle dd3-page-list-handle">&nbsp;</div>
4 <div class="dd3-content"> 4 <div class="dd3-content">
5 <div class="text-in-one-string">Page Name: <%= page.lang_attributes(Kanjai::PageLang.default, :title) %></div> 5 <div class="text-in-one-string">Page Name: <%= page.lang_attributes(Kanjai::PageLang.default, :title) %></div>
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <div class="form-group row"> 4 <div class="form-group row">
5 <%= form.label :meta_title, Kanjai::PageDatum.human_attribute_name(:meta_title), :class => "col-md-2 col-form-label" %> 5 <%= form.label :meta_title, Kanjai::PageDatum.human_attribute_name(:meta_title), :class => "col-md-2 col-form-label" %>
6 <div class="col-md-10"> 6 <div class="col-md-10">
7 - <%= form.text_field :meta_title, :class => "form-control #{@page_data.errors.include?(:meta_title) ? 'parsley-error' : ''}" %> 7 + <%= form.text_field :meta_title, :class => "form-control #{@page_data.errors.include?(:meta_title) ? 'parsley-error' : ''}", data: {toggle: 'popover', placement: 'top', content: 'Content', original_title: 'Title'} %>
8 <%= error_messages(@page_data, :meta_title) %> 8 <%= error_messages(@page_data, :meta_title) %>
9 </div> 9 </div>
10 </div> 10 </div>
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <div class="form-group row"> 12 <div class="form-group row">
13 <%= form.label :meta_description, Kanjai::PageDatum.human_attribute_name(:meta_description), :class => "col-md-2 col-form-label" %> 13 <%= form.label :meta_description, Kanjai::PageDatum.human_attribute_name(:meta_description), :class => "col-md-2 col-form-label" %>
14 <div class="col-md-10"> 14 <div class="col-md-10">
15 - <%= form.text_field :meta_description, :class => "form-control" %> 15 + <%= form.text_field :meta_description, :class => "form-control", data: {toggle: 'popover', placement: 'top', content: 'Content', original_title: 'Title'} %>
16 <%= error_messages(@page_data, :meta_description) %> 16 <%= error_messages(@page_data, :meta_description) %>
17 </div> 17 </div>
18 </div> 18 </div>
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <div class="form-group row"> 20 <div class="form-group row">
21 <%= form.label :meta_keywords, Kanjai::PageDatum.human_attribute_name(:meta_keywords), :class => "col-md-2 col-form-label" %> 21 <%= form.label :meta_keywords, Kanjai::PageDatum.human_attribute_name(:meta_keywords), :class => "col-md-2 col-form-label" %>
22 <div class="col-md-10"> 22 <div class="col-md-10">
23 - <%= form.text_field :meta_keywords, :class => "form-control" %> 23 + <%= form.text_field :meta_keywords, :class => "form-control", data: {toggle: 'popover', placement: 'top', content: 'Content', original_title: 'Title'} %>
24 <%= error_messages(@page_data, :meta_keywords) %> 24 <%= error_messages(@page_data, :meta_keywords) %>
25 </div> 25 </div>
26 </div> 26 </div>
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.142" 2 + VERSION = "0.0.143"
3 end 3 end