diff --git a/app/views/branded/plans/_show_details.html.erb b/app/views/branded/plans/_show_details.html.erb
index 2a1b17e..d2e1192 100644
--- a/app/views/branded/plans/_show_details.html.erb
+++ b/app/views/branded/plans/_show_details.html.erb
@@ -1,30 +1,112 @@
-<% meta_fragment = @plan.json_fragment().meta%>
-<% project_fragment = @plan.json_fragment().project%>
-
-
-
-
- <%= render(partial: 'shared/fragments/display', locals: {
- fragment: meta_fragment,
- schema: meta_fragment.madmp_schema,
- classname: "meta"
- } ) %>
-
-
- <%= render(partial: 'shared/fragments/display', locals: {
- fragment: project_fragment,
+<% dmp_fragment = @plan.json_fragment() %>
+<% meta_fragment = dmp_fragment.meta%>
+<% project_fragment = dmp_fragment.project%>
+<% anr_projects = Registry.find_by(name: "ANRProjects").registry_values %>
+<% locale = @plan.template.locale %>
+
+
+
+
+
+
+ <%= hidden_field_tag 'fragment-id', project_fragment.id, class: "fragment-id" %>
+
+ <% I18n.with_locale locale do %>
+ <%= form_for :madmp_fragment, url: madmp_fragment_path(id: project_fragment.id),
+ html: {
+ method: :put,
+ 'data-autosave': project_fragment.id,
+ class: "form-answer madmp-fragment",
+ id: nil
+ } do |f| %>
+
+
+ <%= render(partial: 'shared/dynamic_form/form', locals: {
+ f: f,
+ current_fragment: project_fragment,
schema: project_fragment.madmp_schema,
- classname: "project"
- } ) %>
+ question_id: nil,
+ readonly: true,
+ classname: "project",
+ template_locale: locale,
+ form_prefix: nil,
+ source: "form"
+ }) %>
+
+
+
+ <% end %>
+ <% end %>
+
+
+
+
+
+
+
+
+
+ <% meta_schema = MadmpSchema.find_by(name: "MetaStandard") %>
+ <%= hidden_field_tag 'fragment-id', project_fragment.id, class: "meta_fragment-id" %>
+
+ <% I18n.with_locale locale do %>
+ <%= form_for :madmp_fragment, url: madmp_fragment_path(id: meta_fragment.id),
+ html: {
+ method: :put,
+ 'data-autosave': meta_fragment.id,
+ class: "form-answer madmp-fragment",
+ id: nil
+ } do |f| %>
+
+
+ <%= render(partial: 'shared/dynamic_form/form', locals: {
+ f: f,
+ current_fragment: meta_fragment,
+ schema: meta_fragment.madmp_schema,
+ question_id: nil,
+ readonly: true,
+ classname: "meta",
+ template_locale: locale,
+ form_prefix: nil,
+ source: "form"
+ }) %>
+
+
+ <% end %>
+ <% end %>
+
+
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/app/views/branded/shared/dynamic_form/fields/_fragment_select_field.html.erb b/app/views/branded/shared/dynamic_form/fields/_fragment_select_field.html.erb
index 21daed3..e7f62a1 100644
--- a/app/views/branded/shared/dynamic_form/fields/_fragment_select_field.html.erb
+++ b/app/views/branded/shared/dynamic_form/fields/_fragment_select_field.html.erb
@@ -49,21 +49,23 @@
<% end %>
-
- <%= d_('dmpopidor', 'Selected value:') %> <%= selected_value.to_s %>
- (<%= link_to new_edit_linked_madmp_fragments_url(
- :fragment_id => selected_value.present? ? selected_value.id : 0000,
- :parent_id => parent_id,
- :schema_id => schema.id,
- :source => "select-modal",
- :template_locale => template_locale,
- :query_id => query_id
- ), {
- :remote => true,
- :target => "_self",
- 'data-toggle' => 'modal',
- 'data-target' => '#modal-window'
- } do %>
- <%= _('Edit') %>
- <% end %>)
-
\ No newline at end of file
+<% unless readonly %>
+
+ <%= d_('dmpopidor', 'Selected value:') %> <%= selected_value.to_s %>
+ (<%= link_to new_edit_linked_madmp_fragments_url(
+ :fragment_id => selected_value.present? ? selected_value.id : 0000,
+ :parent_id => parent_id,
+ :schema_id => schema.id,
+ :source => "select-modal",
+ :template_locale => template_locale,
+ :query_id => query_id
+ ), {
+ :remote => true,
+ :target => "_self",
+ 'data-toggle' => 'modal',
+ 'data-target' => '#modal-window'
+ } do %>
+ <%= _('Edit') %>
+ <% end %>)
+
+<% end %>
\ No newline at end of file
diff --git a/app/views/branded/shared/dynamic_form/fields/registry/_multiple_complex.html.erb b/app/views/branded/shared/dynamic_form/fields/registry/_multiple_complex.html.erb
index f7e140b..6291af6 100644
--- a/app/views/branded/shared/dynamic_form/fields/registry/_multiple_complex.html.erb
+++ b/app/views/branded/shared/dynamic_form/fields/registry/_multiple_complex.html.erb
@@ -15,47 +15,49 @@
data-schema-id="<%= schema_id %>"
data-readonly="<%= !overridable %>"
>
-
<%= intermediate_message %>
-
- <%= select_tag "#{f.object_name}[#{field_name}]",
- options_for_select(
- select_values.map {|v| [
- v.to_s(locale),
- select_value(v, locale)
- ]
- }
- ),
- disabled: readonly,
- multiple: false,
- include_blank: true,
- "data-toggle": "tooltip",
- title: ttip,
- class: "form-control #{field_class}",
- id: field_id %>
+ <% unless readonly %>
+
<%= intermediate_message %>
+
+ <%= select_tag "#{f.object_name}[#{field_name}]",
+ options_for_select(
+ select_values.map {|v| [
+ v.to_s(locale),
+ select_value(v, locale)
+ ]
+ }
+ ),
+ disabled: readonly,
+ multiple: false,
+ include_blank: true,
+ "data-toggle": "tooltip",
+ title: ttip,
+ class: "form-control #{field_class}",
+ id: field_id %>
- <% if parent_id.present? || overridable %>
-
- <%= link_to new_edit_linked_madmp_fragments_url(
- nil,
- :parent_id => parent_id,
- :schema_id => schema_id,
- :template_locale => locale,
- :source => "list-modal",
- :property_name => property_name,
- :query_id => query_id
- ), {
- :remote => true,
- :target => "_self",
- :class => "add-fragment",
- 'data-toggle' => "tooltip",
- 'data-original-title' => d_("dmpopidor", "Click here to add a new item")
- } do %>
-
- <% end %>
-
- <% end %>
-
-
+ <% if parent_id.present? || overridable %>
+
+ <%= link_to new_edit_linked_madmp_fragments_url(
+ nil,
+ :parent_id => parent_id,
+ :schema_id => schema_id,
+ :template_locale => locale,
+ :source => "list-modal",
+ :property_name => property_name,
+ :query_id => query_id
+ ), {
+ :remote => true,
+ :target => "_self",
+ :class => "add-fragment",
+ 'data-toggle' => "tooltip",
+ 'data-original-title' => d_("dmpopidor", "Click here to add a new item")
+ } do %>
+
+ <% end %>
+
+ <% end %>
+
+
+ <% end %>