facilmap/frontend/app/map/lines/view-line.html

15 wiersze
932 B
HTML
Czysty Wina Historia

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<div class="content container-fluid">
<h2>{{line.name}}</h2>
<dl class="row">
<dt class="col-sm-4 distance">Distance</dt>
<dd class="col-sm-8 distance">{{round(line.distance, 2)}} km <span ng-show="line.time != null">({{formatTime(line.time)}} h {{routingMode(line.mode)}})</span></dd>
<dt ng-repeat-start="field in types[line.typeId].fields" ng-show="field.type != 'dropdown' || field.options.length > 1" class="col-sm-4">{{field.name}}</dt>
<dd ng-repeat-end ng-show="field.type != 'dropdown' || field.options.length > 1" class="col-sm-8" fp-type-field-content="field" fp-type-field-model="line.data[field.name]"></dd>
</dl>
</div>
<div class="buttons">
<button class="btn btn-default" ng-click="edit()" ng-hide="readonly">Edit</button>
<button class="btn btn-default" ng-click="move()" ng-hide="readonly">Move</button>
<button class="btn btn-default" ng-click="delete()" ng-hide="readonly">Remove</button>
</div>