Sha256: f9383c9a5e6e90360e2da3cf7d4a3d64523dae268c55fa455a7799ec14f8393a

Contents?: true

Size: 1.68 KB

Versions: 24

Compression:

Stored size: 1.68 KB

Contents

<script type="text/ng-template" id="promethee/components/table/edit/inspect">
  <div class="form-group">
    <label class="label-control">Head</label><br/>
    <div  class="btn btn-default btn-light btn-sm"
          ng-click="promethee.inspected.attributes.head.push({searchable_text: 'Column'})">
      Add column
    </div><br/><br/>
    <div ng-repeat="th in promethee.inspected.attributes.head track by $index">
      <div class="form-row">
        <div class="col-10">
          <input type="text" ng-model="th.searchable_text" class="form-control" />
        </div>
        <div class="col-2">
          <a  class="btn btn-default btn-light btn-sm"
              ng-click="promethee.inspected.attributes.head.splice($index, 1)">
            <%= icon('fa', 'close') %>
          </a>
        </div>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="label-control">Body</label><br/>
    <div  class="btn btn-default btn-light btn-sm"
          ng-click="promethee.inspected.attributes.body.push([{searchable_text: 'Text'}])">
      Add row
    </div><br/><br/>
    <div ng-repeat="tr in promethee.inspected.attributes.body track by $index">
      <span class="small"><b>Row {{$index+1}}</b>
        <a  class="btn btn-default btn-light btn-sm float-right"
            ng-click="promethee.inspected.attributes.body.splice($index, 1)">
          <%= icon('fa', 'close') %>
        </a>
      </span><br/>
      <div ng-repeat="th in promethee.inspected.attributes.head track by $index">
        <span class="small">{{th.searchable_text}}</span><br/>
        <input type="text" ng-model="tr[$index].searchable_text" class="form-control" />
      </div>
      <hr/>
    </div>
  </div>
</script>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
promethee-1.11.29 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.28 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.27 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.26 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.25 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.24 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.23 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.22 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.21 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.20 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.19 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.18 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.17 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.16 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.15 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.14 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.13 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.12 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.11 app/views/promethee/components/table/_edit.inspect.html.erb
promethee-1.11.10 app/views/promethee/components/table/_edit.inspect.html.erb