Skip to content

Commit

Permalink
Fix issue #16
Browse files Browse the repository at this point in the history
  • Loading branch information
PGBI committed Dec 27, 2015
1 parent deb4275 commit 05e92c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/html/consumers/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="header">{{title}}</h3>
<tbody>
<tr ng-repeat="c in basic_auth.data">
<td>{{c.username}}</td>
<td>{{c.password}}</td>
<td>********</td>
<td>{{c.created_at | date}}</td>
<td>
<a class="btn-floating waves-effect waves-light red modal-trigger"
Expand All @@ -128,15 +128,18 @@ <h3 class="header">{{title}}</h3>
</table>
<form name="newBasicAuth" ng-if="basicAuthFormDisplayed" ng-submit="postNewExtension('basic_auth')">
<div class="row">
<p class="col s6 offset-s3">
Choose a username. Kong will auto-generate a password.
</p>
<div class="input-field col s6 offset-s3">
<input id="username" ng-model="new_basic_auth.username" type="text" class="validate"
ng-class="{invalid: error.new_basic_auth.username}">
<label for="username">Username</label>
<app-field-error error="error.new_basic_auth.username"></app-field-error>
</div>
<div class="input-field col s6 offset-s3">
<input id="password" ng-model="new_basic_auth.password" type="password" class="validate"
ng-class="{invalid: error.new_basic_auth.password}">
<label for="password">Password</label>
<app-field-error error="error.new_basic_auth.password"></app-field-error>
</div>
<div class="input-field col s6 offset-s3 right">
<a class="waves-effect waves-teal btn-flat" ng-click="hideForm('basic_auth')">Cancel</a>
<button class="waves-effect waves-light btn">Create</button>
Expand Down

0 comments on commit 05e92c5

Please sign in to comment.