Sha256: b27b253fccb7e59a4593485cb7d8c107b9659f965146757e629c2e29e2ea40cc

Contents?: true

Size: 1.28 KB

Versions: 28

Compression:

Stored size: 1.28 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
          %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

28 entries across 28 versions & 1 rubygems

Version Path
ish_manager-0.1.8.23 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.22 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.21 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.20 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.19 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.18 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.16 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.15 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.14 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.13 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.12 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.11 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.10 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.9 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.8 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.7 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.6 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.5 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.4 app/views/ish_manager/cities/_form.haml
ish_manager-0.1.8.3 app/views/ish_manager/cities/_form.haml