Sha256: f946226a78dac2525011977785b89d51cb60fc45ef9d9e6b7bd8ecffaf63a075

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

%h4 Basic (required)
.form-group
  %label.col-lg-2.col-md-2.control-label Locale
  .col-lg-10.col-md-10
    = f.select :locale, I18n.available_locales, {}, {class: "form-control", placeholder: "en"}
.form-group
  %label.col-lg-2.col-md-2.control-label Key
  .col-lg-10.col-md-10
    = f.text_field :key, {class: "form-control", placeholder: "footer.middle"}
.form-group
  %label.col-lg-2.col-md-2.control-label Value
  .col-lg-10.col-md-10
    - if ::Weeler.use_rails_rich_text_editor && translation.html?
      = rich_text_area_tag 'i18n_backend_weeler_translation[value]', translation.value
    - else
      %textarea.form-control{class: "#{'html' if translation.html?}", name: 'i18n_backend_weeler_translation[value]', id: 'i18n_backend_weeler_translation_value'}
        = translation.value
%h4 Info
.form-group
  %label.col-lg-2.col-md-2.control-label Variables
  .col-lg-10.col-md-10
    %p.form-control-static
      %label= translation.interpolations.join(", ")
.form-group{style: "display: none;"}
  %label.col-lg-2.col-md-2.control-label Is a ruby procedure?
  .col-lg-10.col-md-10
    %p.form-control-static
      %label= translation.is_proc

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
weeler-2.1.0 app/views/weeler/translations/_form.html.haml
weeler-2.0.1 app/views/weeler/translations/_form.html.haml