Sha256: 5d0f67ae9f296711b1fd06074fa9d4cc15bb0ac803c8953c0cb96ae0bdf8f1c1

Contents?: true

Size: 934 Bytes

Versions: 3

Compression:

Stored size: 934 Bytes

Contents

<div class="row">
  <div class="col-md-12">
    <div class="panel">
      <div class="panel-body">
        <%= simple_form_for @object, html: { class: "form-horizontal", role: "form"} do |f| %>

          <%= f.input :title %>
          <%= f.input :local %>
          <%= f.input :date, as: :string, :input_html => { class: "datepicker", data: { "date-format" => "dd/mm/yyyy" }} %>

          <hr>
          <div class="form-actions">
            <%= f.submit 'Salvar', class: "btn btn-success" %>
            <%= link_to 'Apagar', @object, method: :delete, data: {confirm: 'Tem certeza que deseja remover esse registro?'}, class: 'btn btn-danger' if f.object.persisted? %>
            <%= link_to "Adicionar imagens", @object, class: 'btn btn-primary'  if f.object.persisted? %>
            <%= link_to 'Cancelar', albums_path, class: 'btn btn-primary' %>
          </div>
        <% end %>
      </div>
    </div>
  </div>

</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
web_admin-0.1.0 app/views/web_admin/albums/_form.html.erb
web_admin-0.0.2 app/views/web_admin/albums/_form.html.erb
web_admin-0.0.1 app/views/web_admin/albums/_form.html.erb