Sha256: 54219c7712ff039ca75adceaa05462cd0dfd22f9b182a46c509d123717775e55

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 KB

Contents

<%= form_for(@event,
            :url => (@event.new_record? ? dhatu.events_path : dhatu.event_path),
            :method => (@event.new_record? ? :post : :put),
            :remote => true,
            :html => {:id=>"form_event", :class=>"mb-0 form-horizontal"}) do |f| %>

      <div id="event_form_error">
        <%= @event.errors[:base].to_sentence %>
      </div>

      <div class="form-inputs m-15">

        <%= theme_form_field(@event, :title, form_style: "top-bottom") %>
        
        <%= theme_form_field(@event, :venue, required: false, form_style: "top-bottom") %>
        
        <%= theme_form_field(@event, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>

        <div class="row">
          <div class="col-md-4 pr-20">
            <%= theme_form_field(@event, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
          </div>
          <div class="col-md-4 pl-20">
            <%= theme_form_field(@event, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
          </div>
        </div>
        
      </div>

      <div>
        <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>

        <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
      </div>

      <%= clear_tag %>
  </div>

<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dhatu-0.1.5 app/views/dhatu/events/_form.html.erb
dhatu-0.1.4 app/views/dhatu/events/_form.html.erb
dhatu-0.1.3 app/views/dhatu/events/_form.html.erb
dhatu-0.1.2 app/views/dhatu/events/_form.html.erb
dhatu-0.1.1 app/views/dhatu/events/_form.html.erb
dhatu-0.1.0 app/views/dhatu/events/_form.html.erb