<%
  row = cell(:elements, :row).new
  block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')
  code = cell(:elements, :code).new
%>

<!-- PRESENTATION -->
<%=raw row.open %>

  <%=raw block.open %>

    <%=raw cell(:elements, :title).new(label: 'General: Generators') %>

    <p>Generators are used to speed up your development with lato.</p>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Initialize project', size: 2) %>

    <p>To initialize your project with lato you can run:</p>

<%=raw code.open %>

$> rails generate lato_core:initializer

<%=raw code.close %>

    <p>
    This command should:
      <ul>
        <li>Create a application_controller.rb file inside app/controllers/lato path.</li>
        <li>Create a index.html.erb file inside app/views/lato/application path.</li>
        <li>Create some stylesheets files inside app/assets/stylesheets/lato path.</li>
        <li>Create a application.js file inside app/assets/javascripts/lato path.</li>
        <li>Create a logo.svg file inside app/assets/images/lato path.</li>
      </ul>
    </p>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create a scaffold', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:scaffold ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create a crud', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create only crud controller', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud_controller ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create only crud views', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud_views ModelName

<%=raw code.close %>

  <br>
  <%=raw block.close %>

<%=raw row.close %>
<!-- / PRESENTATION -->
