-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed creates to return json body with resource in addition to location Updated docs to reflect create change Basic work on landing page for UI though it's far from robust at this point.
- Loading branch information
Showing
9 changed files
with
197 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,54 @@ | ||
<div class="text-center"> | ||
[[ hello ]] | ||
<div ng-if="loading"> | ||
<div class="col-sm-6 col-sm-offset-3"> | ||
<div class="panel panel-default panel-nsot notification-box"> | ||
<div class="panel-heading"><strong> | ||
Loading... | ||
</strong></div> | ||
<div class="panel-body text-center"> | ||
<i class="fa fa-spinner fa-spin fa-2x"></i> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="!loading"> | ||
<div ng-if="!sites.length" class="col-sm-6 col-sm-offset-3"> | ||
<div class="panel panel-default panel-nsot notification-box"> | ||
<div class="panel-heading"><strong> | ||
Welcome | ||
</strong></div> | ||
<div class="panel-body"> | ||
Welcome to the Network Source of Truth. It looks like you're new | ||
here. Lets start by creating a <em>site</em> which will be a namespace | ||
for all of your data. | ||
<hr> | ||
<form novalidate class="nsot-form"> | ||
<div class="form-group"> | ||
<input type="text" | ||
class="form-control"i | ||
placeholder="Name" | ||
ng-model="site.name" | ||
required | ||
> | ||
</div> | ||
<div class="form-group"> | ||
<textarea style="resize: vertical;" | ||
class="form-control" | ||
rows="5" | ||
placeholder="Description" | ||
ng-model="site.description" | ||
> | ||
</textarea> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="panel-footer text-right"> | ||
<button type="submit" | ||
ng-click="createSite(site)" | ||
class="btn btn-primary" | ||
>Create</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="sites.length" ng-repeat="site in sites" class="col-sm-6 col-sm-offset-3">[[site.name]] | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters