Commit e174607d15eb495383dc91c652101521ff5308a6

Authored by Victor Costa
1 parent f4aebb18

virtuoso: stylesheet added

plugins/virtuoso/public/style.css 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +.virtuoso-triples-template .template {
  2 + margin: 10px 0;
  3 +}
... ...
plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb
1   -<%= required_fields_message %>
  1 +<div class="virtuoso-triples-template">
  2 + <%= required_fields_message %>
2 3  
3   -<%= render :file => 'shared/tiny_mce' %>
  4 + <%= render :file => 'shared/tiny_mce' %>
4 5  
5   -<%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %>
6   -<%= labelled_form_field(_('SPARQL Query'), text_area(:article, :query, :style => 'width: 98%; height: 120px;')) %>
7   -<%= labelled_form_field(_('Template'), text_area(:article, :template, :style => 'width: 98%; height: 200px;', :class => 'mceEditor')) %>
  6 + <%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %>
  7 + <%= labelled_form_field(_('SPARQL Query'), text_area(:article, :query, :style => 'width: 98%; height: 120px;')) %>
8 8  
9   -<%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %>
10   -<%= render :partial => 'general_fields' %>
  9 + <div class="template">
  10 + <span class="label"><%= _('Template') %></span>
  11 + <span class="reference" style="float: right;"><a href="https://github.com/Shopify/liquid/wiki/Liquid-for-Designers"><%= _('Template reference') %></a></span>
  12 + <span class="input">
  13 + <%= text_area(:article, :template, :style => 'width: 98%; height: 200px;', :class => 'mceEditor') %>
  14 + </span>
  15 + </div>
  16 +
  17 + <%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %>
  18 + <%= render :partial => 'general_fields' %>
  19 +</div>
... ...