Files
shortio/static/js/app/views/url.html
2014-04-17 23:10:41 +01:00

10 lines
565 B
HTML

<div ng-controller="UrlCtrl" class="login-popup">
<input type="text" class="form-control text-center text" id="url" placeholder="URL to shorten"
ng-enter="shortenUrl()" ng-model="url">
<button type="submit" class="btn btn-default submit" ng-click="shortenUrl()">Do It</button>
<div class="alert alert-success" ng-show="shortened_url.length">
<a ng-href="{{shortened_url}}" ng-bind="shortened_url"></a>
</div>
<div class="alert alert-danger" ng-show="error.length" ng-bind="error">This is what an error looks like</div>
</div>