Sha256: b8e848ae1352ecd2a42572fc2aa850a4e62374cb0d74740b1fbd7a41264250e5

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 Bytes

Contents

<h2>Models</h2>
<p>Drawing the State Machine Diagram</p>

<div class='schemas'>
  <%= form_tag({}, method: :get, name: 'form_schema') do %>
  <table id='schema_table' class='schema_table'>
    <thead>
      <tr class='bottom'>
        <th>
          <%= submit_tag :draw, class: 'bottom' %>
        </th>
      </tr>
    </thead>
    <tbody>
      <% @schemas.each do |schema| %>
      <tr>
        <td>
          <%= radio_button 'check', 'schema', schema, {id: "check_#{schema}", checked: @schema == schema,
              onclick: 'check_schema()'} %>
          <%= label_tag "check[#{schema}]", schema %>
        </td>
      </tr>
      <% end %>
    </tbody>
  </table>
  <% end %>
</div>

<div class='draw'>
  <% if @schema.present? %>
  <%= image_tag(@image_file) %>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
draw_smd-0.1.2 app/views/draw_smd/diagram/index.html.erb