Sha256: e03f179555a1147c538779629cfc496ee88cd0d500e58a1eed79dd59a2aa8ab7

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

.form-group
  label for="name" = Kms::Variant.human_attribute_name(:name)
  input#name.form-control type="text" ng-model="variant.name" required=""
/ .form-group
/   label for="description" = Variant.human_attribute_name(:description)
/   textarea#description.form-control ng-model="variant.description" rows="15" ng-if="currentUser.admin" ui-codemirror="{lineNumbers: true, mode:'htmlmixed'}"
  / textarea#description.form-control ng-model="variant.description" rows="15" ng-if="!currentUser.admin" ckeditor='editorOptions'
.form-group
  label for="price" = Kms::Variant.human_attribute_name(:price)
  input#price.form-control type="text" ng-model="variant.price"
.form-group
  label for="image" = Kms::Variant.human_attribute_name(:image)
  div flow-init="{singleFile: true, headers: setHeaders, fileParameterName: 'variant[image]'}" flow-files-submitted="variant.image = $flow.files[0].file" flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]" flow-file-success="$file.msg = $message"
    input type="file" flow-btn="" ng-model='variant.image'
    div class="thumbnail" ng-show="!$flow.files.length"
      img ng-src="{{variant.image.url}}"
    div class="thumbnail" ng-show="$flow.files.length"
      img flow-img="$flow.files[0]"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kms_catalog-0.5.0 app/assets/javascripts/templates/products/variants/form.html.slim
kms_catalog-0.4.0 app/assets/javascripts/templates/products/variants/form.html.slim