Sha256: 0cc14e2a45f59bcb7d29043d534d4c2fb6e0d66f0d0e1275212be8d9b3e7f8e1

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

<%= erb :project_header, :locals => { :project => project } %>

<section id="config">
  <h2>Configuration</h2>

  <div class="well">
    <form method="POST" action="/projects/<%= project.basename %>">
    <div class="field">
      <label for="name">Name</label>
      <input type="text" name="name" value="<%= project.name %>" />
    </div>

    <div class="field">
      <label for="branch">Integration branch</label>
      <select name="branch">
        <option value="">...</option>
        <% project.integration_branches.each do |branch| %>
          <% branch_name = branch.gsub("origin/", "") %>
          <option value="<%= branch_name %>" <%= "selected" if branch_name == project.branch %>><%= branch %></option>
        <% end %>
      </select>
    </div>

    <br />
    <div class="btn-toolbar">
      <div class="btn-group">
        <a class="btn" href="/projects/<%= project.basename %>">&laquo; Cancel</a>
        <button class="btn" name="reset" type="reset" value="0">Reset</button>
      </div>

      <div class="btn-group">
        <button class="btn btn-success" name="submit" type="submit" value="1">Save &raquo;</button>
      </div>
    </div>
  </form>
</div>
</section>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heidi-0.4.0 lib/heidi/web/views/config.erb