Sha256: a875a5e43c58295d0a359d123306791d26edc8b838425d89090bf7c01a08cd51

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

<section class="section">
  <div class="container">
    <h1 class="title">
      Edit Link #<%= @link.id %>
    </h1>

    <h2 class="subtitle">
      <%= link_to 'Show', admin_link_path(@link.id) %>
      |
      <%= link_to 'Delete', admin_link_path(@link), :method => :delete, :data => { :confirm => 'Are you sure you want to delete this Link?' } %>
    </h2>

    <%= form_for @link, url: admin_link_path(@link), method: :patch do |f| %>
      <div class="field">
        <div class="control">
          <%= f.label :url, class: 'label' %>
          <%= f.text_field :url, class: 'input' %>
        </div>
      </div>

      <div class="field">
        <div class="control">
          <%= f.label :description, class: 'label' %>
          <%= f.text_field :description, class: 'input' %>
        </div>
      </div>

      <div class="field is-grouped">
        <div class="control">
          <%= f.submit 'Update Link', class: 'button is-link' %>
        </div>
        <div class="control">
          <%= link_to('Back', admin_link_path(@link.id), class: 'button is-text') %>
        </div>
      </div>
    <% end %>
  </div>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stenographer-rails-0.7.4 app/views/stenographer/admin/links/edit.html.erb
stenographer-rails-0.7.3 app/views/stenographer/admin/links/edit.html.erb
stenographer-rails-0.7.1 app/views/stenographer/admin/links/edit.html.erb
stenographer-rails-0.7.0 app/views/stenographer/admin/links/edit.html.erb