Commit 3051a37a authored by o's avatar o

resource schema changed

text is now more precise, e.g. email_alias. for now we avoid the complexity
in the frontend, allow any text and rely on the errors from the backend.
parent e8d44984
Pipeline #5673 passed with stages
in 17 minutes and 24 seconds
......@@ -26,10 +26,10 @@
<div class="form-group">
<%= label_tag n %>
<%= case v
when 'text'
text_field_tag('data_'+n, "", class: 'form-control')
when Array
select_tag('data_'+n, options_for_select(v), class: 'form-control')
else
text_field_tag('data_'+n, "", class: 'form-control')
end %>
</div>
<% end %>
......
......@@ -5,10 +5,10 @@
<div class="form-group">
<%= label_tag 'data_'+n, n %>
<%= case v
when 'text'
text_field_tag('data_'+n, "", class: 'form-control')
when Array
select_tag('data_'+n, options_for_select(v), class: 'form-control')
else
text_field_tag('data_'+n, "", class: 'form-control')
end %>
</div>
<% end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment