Sha256: 80a62730d15e67e321d9b4624b42d9f95cd21cbf13ad47cc47f2829aa3d5de78

Contents?: true

Size: 1.39 KB

Versions: 5

Compression:

Stored size: 1.39 KB

Contents

- url ||= manager_cities_path

.manager-cities--form
  = form_for @city, :url => url do |f|
    .row
      .small-6.columns
        .field
          %label= t('cities.name')
          = f.text_field :name
        .field
          = image_flag 'en'
          %label= t('cities.name_en')
          = f.text_field :name_en
        .field
          = image_flag 'ru'
          %label= t('cities.name')
          = f.text_field :name_ru
        .field
          = image_flag 'pt'
          %label= t('cities.name')
          = f.text_field :name_pt
        .field
          %label CityName
          = f.text_field :cityname
      .small-6.columns
        .field
          %label Feature?
          = f.check_box :is_feature
        .field
          = f.label :n_features
          = f.number_field :n_features

        .field
          = f.label :description
          = f.text_area :description, :class => [ :tinymce ]
          
        .field
          %label Calendar
          = f.text_area :calendar_frame
        .field
          %label coords
          = f.text_field :x
          = f.text_field :y
                    
        -# Only if editing 
        - unless @city.updated_at.blank?  
          .change-profile-pic
            %h2 Change profile pic
            - begin
              = image_tag @city.profile_photo.photo.url(:thumb)
            - rescue
              
        .actions
          = f.submit

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ish_manager-0.1.8.28 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.27 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.26 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.25 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.24 app/views/ish_manager/cities/_form.haml