Sha256: 57804a76c095ca0722d53546768d541d5864017e80ee222350e0dbff62d0f57e

Contents?: true

Size: 1.52 KB

Versions: 16

Compression:

Stored size: 1.52 KB

Contents

<script type="text/ng-template" id="promethee/components/collection/edit/inspect">
  <div class="form-group">
    <label class="label-control">Items per line (on desktop):</label>
    <div class="row">
      <div class="col-xs-2 col-2">
        <input ng-model="promethee.inspected.attributes.items_per_line.value" type="radio" ng-value="2"> 2
      </div>
      <div class="col-xs-2 col-2">
        <input ng-model="promethee.inspected.attributes.items_per_line.value" type="radio" ng-value="3"> 3
      </div>
      <div class="col-xs-2 col-2">
        <input ng-model="promethee.inspected.attributes.items_per_line.value" type="radio" ng-value="4"> 4
      </div>
      <div class="col-xs-2 col-2">
        <input ng-model="promethee.inspected.attributes.items_per_line.value" type="radio" ng-value="6"> 6
      </div>
    </div>
  </div>

  <hr>

  <div class="form-group">
    <div class="btn btn-default btn-light" ng-click="addComponentByType('collection_item', promethee.inspected.children)">Add item</div>
    <div ng-show="promethee.inspected.children.length">
      <br><br>
      <label class="label-control">Drag the items below to reorder them:</label>
      <ul ui-sortable ng-model="promethee.inspected.children" class="list-unstyled">
        <li ng-repeat="item in promethee.inspected.children">
          <div>
            <%= icon('fa', 'bars') %> Item {{$index + 1}}
            <span class="label label-info" ng-click="promethee.inspected = item">Edit</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</script>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
promethee-4.1.6 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.5 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.4 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.3 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.2 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.1 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.1.0 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.8 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.7 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.6 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.5 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.4 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.3 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.2 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.1 app/views/promethee/components/collection/_edit.inspect.html.erb
promethee-4.0.0 app/views/promethee/components/collection/_edit.inspect.html.erb