ffffng/app/views/directives/tokenForm.html

21 lines
1,002 B
HTML
Raw Normal View History

<form name="tokenForm" method="post" role="form" ng-submit="doSubmit(token)" ng-disabled="hasError()" novalidate>
2014-05-12 20:08:19 +02:00
<div class="main-error" ng-if="error">{{error}}</div>
<fieldset>
<div class="token">
<label for="token">Token</label>
<input type="text" name="token" id="token" placeholder="Dein 16-stelliger Token" ng-model="token" ng-pattern="constraints.token.regex" ng-required="!constraints.token.optional" />
<span class="feedback" ng-if="tokenForm.token.$invalid && submitted">
2014-05-12 20:08:19 +02:00
Das Token ist ein 16-stelliger Wert bestehend aus 0-9 und a-f.
</span>
</div>
<div class="buttons">
<button class="submit" type="submit">
2016-05-16 18:27:03 +02:00
<i class="fa {{submitIcon}}"></i> {{submitLabel}}
2014-05-12 20:08:19 +02:00
</button>
<button class="cancel" type="reset" ng-click="onCancel()">
<i class="fa fa-times"></i> Abbrechen
</button>
</div>
</fieldset>
</form>