Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the table view sample.
- Loading branch information
Showing
5 changed files
with
70 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,246 +1,75 @@ | ||
<table border=1> | ||
<tr><td><b><%= t(:field_title) %></b></td> <td><%= h @table.title %></td></tr> | ||
<tr><td><b><%= t(:field_description) %></b></td> <td><%= h @table.description %></td></tr> | ||
<tr><td><b><%= t(:field_capacity) %></b></td> <td><%= h @table.capacity %></td></tr> | ||
<tr><td><b><%= t(:field_user_id) %></b></td> <td><%= h @table.user_id %></td></tr> | ||
<tr><td><b><%= t(:field_table_available) %></b></td><td><%= h @table.table_available %></td></tr> | ||
<tr><td><b><%= t(:field_theme) %></b></td> <td><%= h @table.theme %></td></tr> | ||
<tr><td><b><%= t(:field_created_at) %></b></td> <td><%= h @table.created_at %></td></tr> | ||
<tr><td><b><%= t(:field_updated_at) %></b></td> <td><%= h @table.updated_at %></td></tr> | ||
<tr><td><b><%= t(:field_main_image) %></b></td> <td><%= image_tag @table.main_image.url(:small) %></td></tr> | ||
<% if @table.address %> | ||
<tr><td><b><%= t(:field_address1) %></b></td> <td><%= @table.address.address1 %></td></tr> | ||
<tr><td><b><%= t(:field_address2) %></b></td> <td><%= @table.address.address2 %></td></tr> | ||
<tr><td><b><%= t(:field_city) %></b></td> <td><%= @table.address.city %></td></tr> | ||
<% else %> | ||
<tr><td><b><%= t(:field_no_address) %></b></td></tr> | ||
<% end %> | ||
|
||
|
||
<div id="content"> | ||
<div id="main"> | ||
|
||
<section id="table_sheet_menu"> | ||
|
||
<%= image_tag 'samples/SAMPLE_table_sheet_cover.jpg', :id=>'table_sheet_cover' %> | ||
|
||
<div id="table_sheet_intro"> | ||
<div id="table_sheet_intro_host"> | ||
<%= image_tag 'samples/SAMPLE_host_mini.jpg' %> | ||
<a href="#" class="calltoaction2">en savoir +</a> | ||
</div> | ||
<p>Julien vous propose</p> | ||
<h3>nom de la table forcément alambiqué</h3> | ||
<span id="table_sheet_format" class="diner">Diner</span> | ||
</div> | ||
|
||
<ul id="table_sheet_menu_list"> | ||
<li> | ||
<span class="format">Diner</span> | ||
<h2>Titre du menu 1</h2> | ||
</li> | ||
<li> | ||
<span class="format">Brunch</span> | ||
<h2>Titre du menu 2</h2> | ||
</li> | ||
</ul> | ||
|
||
<ul id="table_sheet_menu_dishes"> | ||
<li> | ||
<%= image_tag 'samples/SAMPLE_dish1.jpg' %> | ||
<span class="dish_type">Entrée</span> | ||
<h1>Nom du plat</h1> | ||
<p class="dish_desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquet congue elit eget varius. Nulla quis neque orci. Suspendisse metus ante.</p> | ||
</li> | ||
<li> | ||
<%= image_tag 'samples/SAMPLE_dish2.jpg' %> | ||
<span class="dish_type">Plat</span> | ||
<h1>Nom du plat</h1> | ||
<p class="dish_desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquet congue elit eget varius. Nulla quis neque orci. Suspendisse metus ante.</p> | ||
</li> | ||
<li> | ||
<%= image_tag 'samples/SAMPLE_dish3.jpg' %> | ||
<span class="dish_type">Dessert</span> | ||
<h1>Nom du plat</h1> | ||
<p class="dish_desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquet congue elit eget varius. Nulla quis neque orci. Suspendisse metus ante.</p> | ||
</li> | ||
</ul> | ||
|
||
</section> | ||
|
||
|
||
<section id="table_sheet_info" class="box"> | ||
<nav class="tabs"> | ||
<ul> | ||
<li>Vos hôtes</li> | ||
<li>Votre table</li> | ||
<li>Évaluation</li> | ||
</ul> | ||
</nav> | ||
|
||
<div id="table_sheet_info_hosts"> | ||
<div class="host_bio"> | ||
<%= image_tag 'samples/SAMPLE_host1.jpg' %> | ||
<h2>Julien P.</h2> | ||
<span class="host_bio_age">27 ans</span> | ||
<span class="host_bio_occupation">Designer</span> | ||
<ul class="host_bio_speak"> | ||
<li class="fr">French</li> | ||
<li class="en">English</li> | ||
</ul> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquet congue elit eget varius. Nulla quis neque orci. Suspendisse metus ante.</p> | ||
<ul class="host_bio_interests"> | ||
<li class="music">Music</li> | ||
<li class="design">Design</li> | ||
</ul> | ||
<ul class="host_bio_pets"> | ||
</ul> | ||
<a href="#">Learn more</a> | ||
</div> | ||
|
||
<div class="host_bio"> | ||
<%= image_tag 'samples/SAMPLE_host2.jpg' %> | ||
<h2>Alex S.</h2> | ||
<span class="host_bio_age">21 ans</span> | ||
<span class="host_bio_occupation">Engineer</span> | ||
<ul class="host_bio_speak"> | ||
<li class="fr">French</li> | ||
<li class="en">English</li> | ||
</ul> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse aliquet congue elit eget varius. Nulla quis neque orci. Suspendisse metus ante.</p> | ||
<ul class="host_bio_interests"> | ||
<li class="music">Music</li> | ||
<li class="design">Design</li> | ||
</ul> | ||
<ul class="host_bio_pets"> | ||
<li id="cat">Cat</li> | ||
</ul> | ||
<a href="#">Learn more</a> | ||
</div> | ||
</div> | ||
|
||
<div id="table_sheet_info_table"> | ||
<%= image_tag 'samples/SAMPLE_table_big.jpg', :class=>'main' %> | ||
<h3>Titre de la table</h3> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ante neque, rhoncus non gravida ac, viverra ut nisi. Aenean viverra velit at justo accumsan aliquam hendrerit mi malesuada. Aliquam vel tincidunt nunc. Donec sed dui sit amet elit laoreet congue ac vel enim. In ac malesuada dolor.</p> | ||
<ul> | ||
<li><%= image_tag 'samples/SAMPLE_table_mini1.jpg' %>My kitchen</li> | ||
<li><%= image_tag 'samples/SAMPLE_table_mini2.jpg' %>My dining room</li> | ||
</ul> | ||
</div> | ||
|
||
<div id="table_sheet_info_review"> | ||
<h3>Évaluation</h3> | ||
<p>Cette table a reçu <span class="big">2</span> commentaires :</p> | ||
<article> | ||
<%= image_tag 'samples/SAMPLE_author1.jpg' %> | ||
<h4>Nom de l'auteur</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ante neque, rhoncus non gravida ac, viverra ut nisi. Aenean viverra velit at justo accumsan aliquam hendrerit mi malesuada. Aliquam vel tincidunt nunc. Donec sed dui sit amet elit laoreet congue ac vel enim. In ac malesuada dolor.</p> | ||
<span class="date">18/02/2012</span> | ||
</article> | ||
<article> | ||
<%= image_tag 'samples/SAMPLE_author2.jpg' %> | ||
<h4>Nom de l'auteur</h4> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ante neque, rhoncus non gravida ac, viverra ut nisi. Aenean viverra velit at justo accumsan aliquam hendrerit mi malesuada. Aliquam vel tincidunt nunc. Donec sed dui sit amet elit laoreet congue ac vel enim. In ac malesuada dolor.</p> | ||
<span class="date">18/02/2012</span> | ||
</article> | ||
</div> | ||
|
||
|
||
</section> | ||
</div> | ||
|
||
<aside> | ||
|
||
<section class="box" id="table_sheet_aside_book"> | ||
<h3>Book</h3> | ||
<form action=""> | ||
<span> | ||
<label for="book_date">Date</label> <input id="book_date" class="form_input" placeholder="18/02/2012" /></span> | ||
<span> | ||
<label for="book_guests">Guests</label> | ||
<select id="book_guests"> | ||
<option>choose</option> | ||
<option>1</option> | ||
<option>2</option> | ||
</select> | ||
</span> | ||
<input type="submit" id="book_submit" class="calltoaction" value="Contact" /> | ||
</form> | ||
</section> | ||
|
||
<section class="box" id="table_sheet_aside_review"> | ||
<h3>Review</h3> | ||
</section> | ||
|
||
<section class="box" id="table_sheet_aside_map"> | ||
<h3>Map</h3> | ||
<%= image_tag 'samples/SAMPLE_map_aside.jpg' %> | ||
<p>rue d'Aboukir, Paris 75002 <a href="#">more table in the neighborhood</a></p> | ||
</section> | ||
|
||
<section class="box" id="table_sheet_aside_calendar"> | ||
<h3>Calendar</h3> | ||
<select> | ||
<option>February 2012</option> | ||
<option>March 2012</option> | ||
</select> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Sun</th> | ||
<th>Mon</th> | ||
<th>Tue</th> | ||
<th>Wed</th> | ||
<th>Thu</th> | ||
<th>Fri</th> | ||
<tH>Sat</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>29</td> | ||
<td>30</td> | ||
<td>31</td> | ||
<td>1</td> | ||
<td>2</td> | ||
<td>3</td> | ||
<td>4</td> | ||
</tr> | ||
<tr> | ||
<td><b><%= t(:field_menus) %></b></td> | ||
<td> | ||
<table border=1> | ||
<% @table.menus.each_with_index do |m,i| %> | ||
<% if i == 0 %> | ||
<tr> | ||
<td><b><%= t(:field_status) %></b></td> | ||
<td><b><%= t(:field_title) %></b></td> | ||
<td><b><%= t(:field_price) %></b></td> | ||
<td><b><%= t(:field_option) %></b></td> | ||
<td><b><%= t(:field_description) %></b></td> | ||
<td><b><%= t(:field_participation_cooking) %></b></td> | ||
<td><b><%= t(:field_main_image) %></b></td> | ||
<td><b><%= t(:field_category) %></b></td> | ||
<td><b><%= t(:field_max_guests) %></b></td> | ||
<td><b><%= t(:field_dishes) %></b></td> | ||
</tr> | ||
<% end %> | ||
<tr> | ||
<td><%= h m.status %></td> | ||
<td><%= h m.title %></td> | ||
<td><%= h m.price %></td> | ||
<td><%= h m.option %></td> | ||
<td><%= h m.description %></td> | ||
<td><%= h m.participation_cooking %></td> | ||
<td><%= image_tag m.main_image.url(:small) if m.main_image.present? %></td> | ||
<td><%= h m.category %></td> | ||
<td><%= h m.max_guests %></td> | ||
<td> | ||
<table border=1> | ||
<% m.dishes.each_with_index do |d,i| %> | ||
<% if i == 0 %> | ||
<tr> | ||
<td>5</td> | ||
<td>6</td> | ||
<td>7</td> | ||
<td>8</td> | ||
<td>9</td> | ||
<td>10</td> | ||
<td>11</td> | ||
<td><b><%= t(:field_title) %></b></td> | ||
<td><b><%= t(:field_image) %></b></td> | ||
<td><b><%= t(:field_description) %></b></td> | ||
<td><b><%= t(:field_position) %></b></td> | ||
<td><b><%= t(:field_category) %></b></td> | ||
</tr> | ||
<% end %> | ||
<tr> | ||
<td>12</td> | ||
<td class="off">13</td> | ||
<td class="off">14</td> | ||
<td class="off">15</td> | ||
<td class="off">16</td> | ||
<td class="off">17</td> | ||
<td class="off">18</td> | ||
<td><%= h d.title %></td> | ||
<td><%= image_tag d.image.url(:small) if d.image.present? %></td> | ||
<td><%= h d.description %></td> | ||
<td><%= h d.position %></td> | ||
<td><%= h d.category %></td> | ||
</tr> | ||
<tr> | ||
<td class="free">19</td> | ||
<td class="free">20</td> | ||
<td class="free">21</td> | ||
<td>22</td> | ||
<td>23</td> | ||
<td>24</td> | ||
<td>25</td> | ||
</tr> | ||
<tr> | ||
<td>26</td> | ||
<td>27</td> | ||
<td>28</td> | ||
<td>1</td> | ||
<td>2</td> | ||
<td>3</td> | ||
<td>4</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<span class="off">booked</span> | ||
<span class="free">available</span> | ||
<span class="unavailable">unavailable</span> | ||
</section> | ||
|
||
<section class="box" id="table_sheet_aside_informations"> | ||
<h3>Additional informations</h3> | ||
<ul> | ||
<li class="glutenfree">Gluten-free</li> | ||
<li class="veggie">Veggie</li> | ||
</ul> | ||
</section> | ||
|
||
</aside> | ||
|
||
</div> | ||
<% end %> | ||
</table> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> |
Oops, something went wrong.