Sha256: 928a1862380ecce4e66070d36ec84a27cf4e9133145e9ef4c336d05504340188

Contents?: true

Size: 1.71 KB

Versions: 24

Compression:

Stored size: 1.71 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-3 pr-20">
            <%= theme_form_field(@event, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
          </div>
          <div class="col-md-3 pl-20">
            <%= theme_form_field(@event, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
          </div>
          <div class="col-md-3 pl-20">
            <%= theme_form_field(@event, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, 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

24 entries across 24 versions & 1 rubygems

Version Path
dhatu-0.3.0.pre.materialize app/views/dhatu/events/_form.html.erb
dhatu-0.2.3 app/views/dhatu/events/_form.html.erb
dhatu-0.2.2 app/views/dhatu/events/_form.html.erb
dhatu-0.2.1 app/views/dhatu/events/_form.html.erb
dhatu-0.2.0 app/views/dhatu/events/_form.html.erb
dhatu-0.1.25 app/views/dhatu/events/_form.html.erb
dhatu-0.1.24 app/views/dhatu/events/_form.html.erb
dhatu-0.1.23 app/views/dhatu/events/_form.html.erb
dhatu-0.1.22 app/views/dhatu/events/_form.html.erb
dhatu-0.1.21 app/views/dhatu/events/_form.html.erb
dhatu-0.1.20 app/views/dhatu/events/_form.html.erb
dhatu-0.1.19 app/views/dhatu/events/_form.html.erb
dhatu-0.1.18 app/views/dhatu/events/_form.html.erb
dhatu-0.1.16 app/views/dhatu/events/_form.html.erb
dhatu-0.1.15 app/views/dhatu/events/_form.html.erb
dhatu-0.1.14 app/views/dhatu/events/_form.html.erb
dhatu-0.1.13 app/views/dhatu/events/_form.html.erb
dhatu-0.1.12 app/views/dhatu/events/_form.html.erb
dhatu-0.1.11 app/views/dhatu/events/_form.html.erb
dhatu-0.1.10 app/views/dhatu/events/_form.html.erb