Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Fix notes edit template labels to select proper id #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/assets/templates/notes/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ <h1>Edit: {{note.title}}</h1>
</fieldset>

<fieldset class="form-group">
<label for="title">Category</label>
<select ng-options="category.id as category.name for category in categories" ng-model="note.categoryId"></select>
<label for="category">Category</label>
<select id="category" ng-options="category.id as category.name for category in categories" ng-model="note.categoryId"></select>
</fieldset>

<fieldset class="form-group">
<label for="title">User</label>
<select ng-options="user.id as user.name for user in users" ng-model="note.userId"></select>
<label for="user">User</label>
<select id="user" ng-options="user.id as user.name for user in users" ng-model="note.userId"></select>
</fieldset>

<fieldset class="form-group">
Expand All @@ -26,4 +26,4 @@ <h1>Edit: {{note.title}}</h1>
</fieldset>

<input type="submit" value="{{isSubmitting ? 'saving...' : 'Save'}}" class="btn btn-default" ng-click="saveNote(note)" ng-disabled="isSubmitting">
</form>
</form>