Skip to content

Commit

Permalink
12494: add orx:meta section to ODK XML
Browse files Browse the repository at this point in the history
to fix ODK Central importing
  • Loading branch information
cooperka committed Oct 18, 2023
1 parent ae0fe55 commit 936614a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/views/forms/odk/_instances.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<%= tag(ODK::FormDecorator::IR_QUESTION) %>
<%= tag(ODK::FormDecorator::IR_CODE) %>
<% end %>

<orx:meta>
<orx:instanceID/>
</orx:meta>
<% end %>
</instance>

Expand Down
8 changes: 7 additions & 1 deletion app/views/forms/show.xml.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:jr="http://openrosa.org/javarosa"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:orx="https://openrosa.org/xforms"
>
<h:head>
<h:title><%= @form.full_name %></h:title>
<model>
Expand Down

0 comments on commit 936614a

Please sign in to comment.