Sha256: 648bfa747b726aade8b4cbe9196d328ca561a4e32cbe2e8113b5f702f9451e24

Contents?: true

Size: 577 Bytes

Versions: 12

Compression:

Stored size: 577 Bytes

Contents

- for_context ||= context

- fields.each do |field|
  - name = "#{for_context.resource.name}[#{field.name}]"
  - id = "#{for_context.resource.name}_#{field.name}"
  - if field.visible?
    div class="form-group"
      label for="#{id}" class="col-sm-2 control-label"
        = field.display_name
      div class="col-sm-10"
        input(
          type="text"
          class="form-control"
          id==id
          name==name
          value==field.read(for_context.entity)
        )
  - else
    input type="hidden" name==name id==id value==field.read(for_context.entity)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
admin_it-1.1.0 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.11 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.10 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.9 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.8 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.7 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.6 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.5 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.4 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.3 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.2 app/views/admin_it/shared/_fields.html.slim
admin_it-1.0.1 app/views/admin_it/shared/_fields.html.slim