Sha256: 46ffd58b493f8437c005f8d0ecd34bbc7e9434e907fc5c40a1fb9a8cd7207f54

Contents?: true

Size: 1.97 KB

Versions: 9

Compression:

Stored size: 1.97 KB

Contents

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

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

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

      <%= theme_form_field(@career_opportunity, :title, form_style: "top-bottom", html_options: { placeholder: "e.g: Sales Support & Client Service Executive"}) %>
      
      <%= theme_form_field(@career_opportunity, :sub_title, required: false, form_style: "top-bottom", html_options: { placeholder: "e.g ABC Trading Company, Dubai Branch" }) %>

      <%= theme_form_field(@career_opportunity, :short_description, form_style: "top-bottom", html_options: { placeholder: "e.g: We have an urgent opening for a sales representative with the following requirements." }) %>
      
      <%= theme_form_field(@career_opportunity, :description, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css", placeholder: ""}, form_style: "top-bottom") %>

      <div class="row">
        <div class="col-md-3 pl-20">
          <%= theme_form_field(@career_opportunity, :reference_number, required: false, form_style: "top-bottom") %>
        </div>
        <div class="col-md-3 pl-20">
          <%= theme_form_field(@career_opportunity, :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: close_form_modal, class: "pull-right btn btn-white" %>
    </div>

    <%= clear_tag %>

<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/career_opportunities/_form.html.erb