Sha256: 4e7cd57793ae048572a4b0e492125b41ba16e454a2ac075bdfdad24081fda592

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

.form-group
  label for="name" = Kms::Product.human_attribute_name(:name)
  input#name.form-control type="text" ng-model="product.name" required=""
.form-group
  label for="description" = Kms::Product.human_attribute_name(:description)
  textarea#description.form-control ng-model="product.description" rows="15" ng-if="currentUser.admin" ui-codemirror="{lineNumbers: true, mode:'htmlmixed'}"
  textarea#description.form-control ng-model="product.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="product.master.price"
.form-group
  label for="category_ids" = Kms::Product.human_attribute_name(:categories)
  ui-select multiple="" ng-model="product.category_ids" theme="bootstrap" on-select="addCat($item, $model)" on-remove='removeCat($item, $model)'
    ui-select-match placeholder="Выберите категории..."
      | {{$item.name}}
    ui-select-choices repeat="category.id as category in categories"
      div ng-bind-html="category.name | highlight: $select.search"
.form-group
  label for="image" = Kms::Variant.human_attribute_name(:image)
  div flow-init="{singleFile: true, headers: setHeaders, fileParameterName: 'product[master][image]'}" flow-files-submitted="product.master.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='product.master.image'
    div class="thumbnail" ng-show="!$flow.files.length"
      img ng-src="{{product.master.image.url}}"
    div class="thumbnail" ng-show="$flow.files.length"
      img flow-img="$flow.files[0]"

Version data entries

1 entries across 1 versions & 1 rubygems

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