Add link to demo google document

This commit is contained in:
bumi 2020-04-12 10:06:39 +02:00
parent b5027d9a07
commit 8b15aed445

View File

@ -5,8 +5,8 @@
<form class="form demo-form" id="demo-form" action="<%= submission_url(DEMO_FORM) %>" method="POST" enctype="multipart/form-data" data-tinyforms="true"> <form class="form demo-form" id="demo-form" action="<%= submission_url(DEMO_FORM) %>" method="POST" enctype="multipart/form-data" data-tinyforms="true">
<h3>Demo</h3> <h3>Demo</h3>
<p> <p>
This short form is connected to the embedded document on the right. <br> This short form is connected to the embedded <%= link_to 'document', DEMO_FORM.google_spreadsheet_url %> on the right. <br>
Submit the form and see the update of the document. Submit the form and see the update of the document in realtime.
</p> </p>
<div id="demo-success" style="display:none;"> <div id="demo-success" style="display:none;">
@ -77,6 +77,7 @@
<div class="column"> <div class="column">
<iframe id="demo-sheet" style="width:100%;height:100%;" src="https://docs.google.com/spreadsheets/d/<%= DEMO_FORM.google_spreadsheet_id %>/edit?usp=sharing&nocache=<%= Time.now.to_i %>#gid=0&range=<%= DEMO_FORM.submissions.count + 1 %>:<%= DEMO_FORM.submissions.count + 2 %>"></iframe> <iframe id="demo-sheet" style="width:100%;height:100%;" src="https://docs.google.com/spreadsheets/d/<%= DEMO_FORM.google_spreadsheet_id %>/edit?usp=sharing&nocache=<%= Time.now.to_i %>#gid=0&range=<%= DEMO_FORM.submissions.count + 1 %>:<%= DEMO_FORM.submissions.count + 2 %>"></iframe>
<p class="has-text-grey has-text-centered">Document not loading? <%= link_to 'Open it here', DEMO_FORM.google_spreadsheet_url %>.</p>
</div> </div>
</div> </div>
</div> </div>