Sha256: 429af9f1b5ab7a04c265eeb288fb9dd4d8d3e12a259ef71403995224c5b61b5c

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

<% @breadcrumbs = [@connection] %>
<%= error_messages_for @connection %>
<form method="post" action="/connections">
  <table class="form">
    <tr>
      <td class="left"><label for="name">Name</label></td>
      <td>
        <input id="name" name="connection[name]" type="text" value="<%= @connection.name %>" />
      </td>
    </tr>
    <tr class="alt">
      <td class="left"><label for="adapter">Type</label></td>
      <td>
        <select id="adapter" name="connection[adapter]">
          <% Coupler::Models::Connection::ADAPTERS.each do |(value, label)| %>
            <option value="<%= value %>"<%= ' selected="selected"' if @connection.adapter == value %>><%= label %></option>
          <% end %>
        </select>
      </td>
    </tr>
    <tr>
      <td class="left"><label for="host">Host</label></td>
      <td>
        <input id="host" name="connection[host]" type="text" value="<%= @connection.host %>" />
      </td>
    </tr>
    <tr class="alt">
      <td class="left"><label for="port">Port</label></td>
      <td>
        <input id="port" name="connection[port]" type="text" value="<%= @connection.port %>" />
      </td>
    </tr>
    <tr>
      <td class="left"><label for="username">Username</label></td>
      <td>
        <input id="username" name="connection[username]" type="text" value="<%= @connection.username %>" />
      </td>
    </tr>
    <tr class="alt">
      <td class="left"><label for="password">Password</label><br/></td>
      <td>
        <input id="password" name="connection[password]" type="password" value="<%= @connection.password %>" />
      </td>
    </tr>
    <tr>
      <td class="left"><label for="database_name">Database</label></td>
      <td>
        <input id="database_name" name="connection[database_name]" type="text" value="<%= @connection.database_name %>" />
      </td>
    </tr>
  </table>
  <p>
    <input type="submit" value="Submit" /> or <a href="/connections">Cancel</a>
  </p>
</form>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coupler-0.0.4-java webroot/views/connections/new.erb
coupler-0.0.3-java webroot/views/connections/new.erb
coupler-0.0.2-java webroot/views/connections/new.erb
coupler-0.0.1-java webroot/views/connections/new.erb