Make sure the example forms show fields even for empty spreadsheets

This commit is contained in:
bumi 2020-04-27 19:28:43 +02:00
parent add4a2f7f0
commit a6a7b6c8b2
2 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,16 @@
<%= text_field_tag header %>
</p>
<% end %>
<% if form.spreadsheet_headers.blank? %>
<p>
<label for="Name">Name</label>
<input type="text" name="Name">
</p>
<p>
<label for="Email">Email</label>
<input type="text" name="Email">
</p>
<% end %>
...
<input type="submit" value="Submit">
</form>

View File

@ -7,5 +7,4 @@
</p>
<% end %>
...
<input type="submit" value="Submit">
</form>