Merge pull request #16 from bumi/forms-show-page
Add some styling classes in the table
This commit is contained in:
commit
b8277a7023
@ -53,3 +53,11 @@ body {
|
||||
background: rgb(225, 98, 89);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.button {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
}
|
@ -1,11 +1,33 @@
|
||||
<h1><%= @form.title %></h1>
|
||||
<div class="section">
|
||||
<div class="container">
|
||||
<div class="content is-paddingless">
|
||||
<h1 class="is-family-secondary"><%= @form.title %></h1>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<p>
|
||||
<button class="button">
|
||||
<span class="icon is-small">
|
||||
<i class="fas fa-link"></i>
|
||||
</span>
|
||||
</button>
|
||||
<%= submission_url(@form) %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p>
|
||||
<%= link_to 'Google spreadsheet', @form.spreadsheet_url %>
|
||||
<button class="button is-success">
|
||||
<span class="icon is-small">
|
||||
<i class="fas fa-file-excel"></i>
|
||||
</span>
|
||||
</button>
|
||||
<%= link_to 'Google spreadsheet', @form.spreadsheet_url, { :class => "has-text-dark"} %>
|
||||
</p>
|
||||
<table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box table-wrapper">
|
||||
<table class="table is-fullwidth is-striped is-hoverable">
|
||||
<thead>
|
||||
<tr>
|
||||
<% @form.spreadsheet_headers.each do |value| %>
|
||||
@ -23,3 +45,6 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user