diff --git a/plugins/virtuoso/public/style.css b/plugins/virtuoso/public/style.css index 9806464..d843f92 100644 --- a/plugins/virtuoso/public/style.css +++ b/plugins/virtuoso/public/style.css @@ -1,3 +1,27 @@ .virtuoso-triples-template .template { margin: 10px 0; } + +#virtuoso-triples-management input[type="text"] { + width: 100% +} + +#virtuoso-triples-management textarea { + width: 99%; +} + +#virtuoso-triples-management ul { + list-style-type: none; + padding: 0; +} + +#virtuoso-triples-management #triples-list { + border-top: 1px solid #CCC; + padding-top: 15px; +} + +#triples-list > li + li { + border-top: 1px solid #CCC; + margin-top: 20px; + padding-top: 15px; +} diff --git a/plugins/virtuoso/views/virtuoso_plugin_admin/triple_management.html.erb b/plugins/virtuoso/views/virtuoso_plugin_admin/triple_management.html.erb index e72d0b3..255e1e4 100644 --- a/plugins/virtuoso/views/virtuoso_plugin_admin/triple_management.html.erb +++ b/plugins/virtuoso/views/virtuoso_plugin_admin/triple_management.html.erb @@ -1,63 +1,50 @@ -

<%= _('Virtuoso settings : Triples Management')%>

+
+

<%= _('Virtuoso settings » Triples Management')%>

-<%= form_tag('/admin/plugin/virtuoso/triple_management', :method => 'post') do %> - - <%= labelled_form_field(_('Default Graph IRI:'), text_field_tag(:graph_uri, @graph_uri, :style => 'width: 100%' ) ) %> - - <%= labelled_form_field(_('Query SPARQL:'), text_area_tag(:query, @query, { :rows => 7, :style => 'width: 99%' } )) %> - - <% button_bar do %> - <%= submit_button(:search, _('Search')) %> + <%= form_tag('/admin/plugin/virtuoso/triple_management', :method => 'post') do %> + <%= labelled_form_field(_('Default Graph IRI:'), text_field_tag(:graph_uri, @graph_uri) ) %> + <%= labelled_form_field(_('Query SPARQL:'), text_area_tag(:query, @query, :rows => 7)) %> + <% button_bar do %> + <%= submit_button(:search, _('Search')) %> + <% end %> <% end %> -<% end %> - - - -<% unless @triples.empty? %> - -
+ <% unless @triples.empty? %> <%= form_tag('/admin/plugin/virtuoso/triple_update', :method => 'post') do %> - <%= hidden_field_tag(:graph_uri, @graph_uri) %> - <% @triples.each { |triple| %> - -
- -
- - <%= hidden_field_tag('triples[][from[subject]]', triple[:s].to_s) %> - <%= text_field_tag('triples[][to[subject]]', triple[:s].to_s, :style => 'width: 99%;') %> -
- -
- - <%= hidden_field_tag('triples[][from[predicate]]', triple[:p].to_s) %> - <%= text_field_tag('triples[][to[predicate]]', triple[:p].to_s, :style => 'width: 99%;') %> -
+
+
  • + +
  • <% } %> + + <% button_bar do %> <%= submit_button(:save, _('Save')) %> <% end %> <% end %> -<% end %> + <% end %> + +
    -- libgit2 0.21.2