-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2772 from WikiWatershed/arr/subbasin-container
Add Subbasin Container; Refactor Result Models
- Loading branch information
Showing
11 changed files
with
257 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict"; | ||
|
||
var Backbone = require('../../../../shim/backbone'); | ||
|
||
var SubbasinTabModel = Backbone.Model.extend({ | ||
defaults: { | ||
displayName: '', | ||
name: '', | ||
}, | ||
}); | ||
|
||
var SubbasinTabCollection = Backbone.Collection.extend({ | ||
model: SubbasinTabModel, | ||
}); | ||
|
||
module.exports = { | ||
SubbasinTabModel: SubbasinTabModel, | ||
SubbasinTabCollection: SubbasinTabCollection, | ||
}; |
1 change: 1 addition & 0 deletions
1
src/mmw/js/src/modeling/gwlfe/subbasin/templates/huc12TotalsTable.html
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<h3>HUC-12 totals here</h3> |
18 changes: 8 additions & 10 deletions
18
src/mmw/js/src/modeling/gwlfe/subbasin/templates/result.html
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,11 +1,9 @@ | ||
<div class="result"> | ||
<div class="result-detail-header"> | ||
<a type="button" class="close" aria-label="Close" | ||
data-action="close-subbasin-view" | ||
id="close-subbasin-view"> | ||
<i class="fa fa-arrow-left black"></i> Exit subbasin attenuated results | ||
</a> | ||
</div> | ||
<div class="result-region"> | ||
</div> | ||
<div class="result-title"> | ||
{{ aoiDetails }} | ||
</div> | ||
<p class="result-description text-muted"> | ||
Displaying average annual loads from 30-years of fluxes | ||
</p> | ||
|
||
<div role="tabpanel" class="subbasin-tab-panel-region"></div> | ||
<div class="subbasin-tab-content-region"></div> |
1 change: 1 addition & 0 deletions
1
src/mmw/js/src/modeling/gwlfe/subbasin/templates/sourcesTable.html
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<h3>Source table here</h3> |
1 change: 1 addition & 0 deletions
1
src/mmw/js/src/modeling/gwlfe/subbasin/templates/tableTabContent.html
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="table-region"></div> |
3 changes: 3 additions & 0 deletions
3
src/mmw/js/src/modeling/gwlfe/subbasin/templates/tableTabPanel.html
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<a href="#{{ name }}" aria-controls="home" role="tab" data-toggle="tab"> | ||
<div class="sidebar-tab-header-label">{{ displayName }}</div> | ||
</a> |
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
Oops, something went wrong.