From e174607d15eb495383dc91c652101521ff5308a6 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 12 Nov 2014 16:03:48 -0300 Subject: [PATCH] virtuoso: stylesheet added --- plugins/virtuoso/public/style.css | 3 +++ plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb | 23 ++++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 plugins/virtuoso/public/style.css diff --git a/plugins/virtuoso/public/style.css b/plugins/virtuoso/public/style.css new file mode 100644 index 0000000..9806464 --- /dev/null +++ b/plugins/virtuoso/public/style.css @@ -0,0 +1,3 @@ +.virtuoso-triples-template .template { + margin: 10px 0; +} diff --git a/plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb b/plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb index 18976d7..94513fb 100644 --- a/plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb +++ b/plugins/virtuoso/views/cms/virtuoso_plugin/_triples_template.html.erb @@ -1,10 +1,19 @@ -<%= required_fields_message %> +
+ <%= required_fields_message %> -<%= render :file => 'shared/tiny_mce' %> + <%= render :file => 'shared/tiny_mce' %> -<%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %> -<%= labelled_form_field(_('SPARQL Query'), text_area(:article, :query, :style => 'width: 98%; height: 120px;')) %> -<%= labelled_form_field(_('Template'), text_area(:article, :template, :style => 'width: 98%; height: 200px;', :class => 'mceEditor')) %> + <%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %> + <%= labelled_form_field(_('SPARQL Query'), text_area(:article, :query, :style => 'width: 98%; height: 120px;')) %> -<%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %> -<%= render :partial => 'general_fields' %> +
+ <%= _('Template') %> + <%= _('Template reference') %> + + <%= text_area(:article, :template, :style => 'width: 98%; height: 200px;', :class => 'mceEditor') %> + +
+ + <%= render :partial => 'shared/lead_and_body', :locals => {:tiny_mce => true} %> + <%= render :partial => 'general_fields' %> +
-- libgit2 0.21.2